*aNewFrame = nsnull;
NS_NewSVGImageFrame(nsIPresShell* aPresShell, nsIContent* aContent, nsIFrame** aNewFrame){  *aNewFrame = nsnull;  nsCOMPtr<nsIDOMSVGImageElement> Rect = do_QueryInterface(aContent);  if (!Rect) {#ifdef DEBUG    printf("warning: trying to construct an SVGImageFrame for a content element that doesn't support the right interfaces\n");#endif    return NS_ERROR_FAILURE;  }  nsSVGImageFrame* it = new (aPresShell) nsSVGImageFrame;  if (nsnull == it)    return NS_ERROR_OUT_OF_MEMORY;  *aNewFrame = it;  return NS_OK;}