it->mPresShell = aPresShell;
NS_NewSVGOuterSVGFrame(nsIPresShell* aPresShell, nsIContent* aContent, nsIFrame** aNewFrame){  *aNewFrame = nsnull;    nsCOMPtr<nsIDOMSVGSVGElement> svgElement = do_QueryInterface(aContent);  if (!svgElement) {#ifdef DEBUG    printf("warning: trying to construct an SVGOuterSVGFrame for a content element that doesn't support the right interfaces\n");#endif    return NS_ERROR_FAILURE;  }  nsSVGOuterSVGFrame* it = new (aPresShell) nsSVGOuterSVGFrame;  if (nsnull == it)    return NS_ERROR_OUT_OF_MEMORY;  *aNewFrame = it;  // XXX is this ok?  it->mPresShell = aPresShell;    return NS_OK;}