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