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