nsIURI *aServer; aServer = GetStyleSVG()->mFill.mPaint.mPaintServer; if (aServer == nsnull) return NS_ERROR_FAILURE;  return NS_GetSVGGradient(aGrad, aServer, mContent, nsSVGGlyphFrameBase::GetPresContext()->PresShell());
nsresult rv = NS_OK; if (!mFillGradient) { nsIURI *aServer; aServer = GetStyleSVG()->mFill.mPaint.mPaintServer; if (aServer == nsnull) return NS_ERROR_FAILURE;  rv = NS_GetSVGGradient(getter_AddRefs(mFillGradient), aServer, mContent, nsSVGGlyphFrameBase::GetPresContext()->PresShell()); NS_ADD_SVGVALUE_OBSERVER(mFillGradient); } *aGrad = mFillGradient; return rv;
nsSVGGlyphFrame::GetFillGradient(nsISVGGradient **aGrad){  nsIURI *aServer;  aServer = GetStyleSVG()->mFill.mPaint.mPaintServer;  if (aServer == nsnull)    return NS_ERROR_FAILURE;  // Now have the URI.  Get the gradient   return NS_GetSVGGradient(aGrad, aServer, mContent, nsSVGGlyphFrameBase::GetPresContext()->PresShell());}