nsIURI *aServer; aServer = GetStyleSVG()->mStroke.mPaint.mPaintServer; if (aServer == nsnull) return NS_ERROR_FAILURE;  return NS_GetSVGGradient(aGrad, aServer, mContent, nsSVGGlyphFrameBase::GetPresContext()->PresShell());
nsresult rv = NS_OK; if (!mStrokeGradient) { nsIURI *aServer; aServer = GetStyleSVG()->mStroke.mPaint.mPaintServer; if (aServer == nsnull) return NS_ERROR_FAILURE;  rv = NS_GetSVGGradient(getter_AddRefs(mStrokeGradient), aServer, mContent, nsSVGGlyphFrameBase::GetPresContext()->PresShell()); NS_ADD_SVGVALUE_OBSERVER(mStrokeGradient); } *aGrad = mStrokeGradient; return rv;
nsSVGGlyphFrame::GetStrokeGradient(nsISVGGradient **aGrad){  nsIURI *aServer;  aServer = GetStyleSVG()->mStroke.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());}