return NS_ERROR_FAILURE; } if (stopCount == 0 && !stopElement && checkURITarget()) { rv = mNextGrad->GetStopColor(aIndex, aStopColor); } else { NS_ASSERTION(stopFrame, "No stop frame found!"); if (!stopFrame) { *aStopColor = 0; rv = NS_ERROR_FAILURE; } else { *aStopColor = stopFrame->GetStyleSVGReset()->mStopColor.mPaint.mColor; }
rv = NS_ERROR_FAILURE;
nsSVGGradientFrame::GetStopColor(PRInt32 aIndex, nscolor *aStopColor) {  nsIDOMSVGStopElement *stopElement = nsnull;  nsIFrame *stopFrame = nsnull;  nsresult rv = NS_OK;  PRInt32 stopCount = GetStopElement(aIndex, &stopElement, &stopFrame);  if (stopCount && !stopElement) {    *aStopColor = 0;    return NS_ERROR_FAILURE;  }  if (stopCount == 0 && !stopElement && checkURITarget()) {      rv = mNextGrad->GetStopColor(aIndex, aStopColor);  } else {    NS_ASSERTION(stopFrame, "No stop frame found!");    if (!stopFrame) {      *aStopColor = 0;      rv = NS_ERROR_FAILURE;    } else {      *aStopColor = stopFrame->GetStyleSVGReset()->mStopColor.mPaint.mColor;    }  }  mLoopFlag = PR_FALSE;  return rv;}