return NS_ERROR_FAILURE;
return nsnull;
nsresult NS_NewSVGLinearGradientFrame(nsIPresShell* aPresShell,                                       nsIContent*   aContent,                                       nsIFrame**    aNewFrame){  *aNewFrame = nsnull;    nsCOMPtr<nsIDOMSVGLinearGradientElement> grad = do_QueryInterface(aContent);  NS_ASSERTION(grad, "NS_NewSVGLinearGradientFrame -- Content doesn't support nsIDOMSVGLinearGradient");  if (!grad)    return NS_ERROR_FAILURE;    nsSVGLinearGradientFrame* it = new (aPresShell) nsSVGLinearGradientFrame;  if (nsnull == it)    return NS_ERROR_OUT_OF_MEMORY;  nsCOMPtr<nsIDOMSVGURIReference> aRef = do_QueryInterface(aContent);  NS_ASSERTION(aRef, "NS_NewSVGLinearGradientFrame -- Content doesn't support nsIDOMSVGURIReference");  if (!aRef) {    it->mNextGrad = nsnull;  } else {    // Get the hRef    nsCOMPtr<nsIDOMSVGAnimatedString> aHref;    aRef->GetHref(getter_AddRefs(aHref));    nsAutoString aStr;    aHref->GetAnimVal(aStr);    it->mNextGradStr = aStr;    it->mNextGrad = nsnull;  }  it->mLoopFlag = PR_FALSE;  *aNewFrame = it;  return NS_OK;}