nsresult rv; rv = nsSVGOuterSVGFrameBase::Init(aPresContext, aContent, aParent, aContext, aPrevInFlow);
nsCOMPtr<nsIDOMSVGSVGElement> svgElement = do_QueryInterface(mContent); NS_ASSERTION(svgElement, "wrong content element");  { nsCOMPtr<nsIDOMSVGAnimatedLength> animLength; svgElement->GetWidth(getter_AddRefs(animLength)); NS_ENSURE_TRUE(animLength, NS_ERROR_FAILURE); nsCOMPtr<nsIDOMSVGLength> length; animLength->GetAnimVal(getter_AddRefs(length)); NS_ENSURE_TRUE(length, NS_ERROR_FAILURE); nsCOMPtr<nsISVGValue> value = do_QueryInterface(length); if (value) value->AddObserver(this); }
nsSVGOuterSVGFrame::Init(nsIPresContext*  aPresContext,                  nsIContent*      aContent,                  nsIFrame*        aParent,                  nsIStyleContext* aContext,                  nsIFrame*        aPrevInFlow){  nsresult rv;  rv = nsSVGOuterSVGFrameBase::Init(aPresContext, aContent, aParent,                                    aContext, aPrevInFlow);  Init();  return rv;}