return NS_ERROR_FAILURE;
return nsnull;
nsresult NS_NewSVGPatternFrame(nsIPresShell* aPresShell,                                nsIContent*   aContent,                                nsIFrame**    aNewFrame){  *aNewFrame = nsnull;    nsCOMPtr<nsIDOMSVGPatternElement> pattern = do_QueryInterface(aContent);  NS_ASSERTION(pattern,                "NS_NewSVGPatternFrame -- Content doesn't support nsIDOMSVGPattern");  if (!pattern)    return NS_ERROR_FAILURE;    nsSVGPatternFrame* it = new (aPresShell) nsSVGPatternFrame;  if (nsnull == it)    return NS_ERROR_OUT_OF_MEMORY;  nsCOMPtr<nsIDOMSVGURIReference> aRef = do_QueryInterface(aContent);  NS_ASSERTION(aRef,                "NS_NewSVGPatternFrame -- Content doesn't support nsIDOMSVGURIReference");  if (!aRef) {    it->mNextPattern = nsnull;  } else {    // Get the hRef    nsCOMPtr<nsIDOMSVGAnimatedString> aHref;    aRef->GetHref(getter_AddRefs(aHref));    nsAutoString aStr;    aHref->GetAnimVal(aStr);    it->mNextPatternStr = aStr;    it->mNextPattern = nsnull;#ifdef DEBUG_scooter    printf("NS_NewSVGPatternFrame\n");#endif  }  *aNewFrame = it;  return NS_OK;}