nsSVGGradientFrame::GetStopOpacity(PRInt32 aIndex, float *aStopOpacity) { PRInt32 stopCount = 0;
nsSVGGradientFrame::GetStopOpacity(PRInt32 aIndex, float *aStopOpacity) { nsIDOMSVGStopElement *stopElement = nsnull;
nsSVGGradientFrame::GetStopOpacity(PRInt32 aIndex, float *aStopOpacity) {  PRInt32 stopCount = 0;  nsIFrame *stopFrame = nsnull;  for (stopFrame = mFrames.FirstChild(); stopFrame;       stopFrame = stopFrame->GetNextSibling()) {    nsIDOMSVGStopElement *stopElement;    stopFrame->GetContent()->QueryInterface(NS_GET_IID(nsIDOMSVGStopElement),(void**)&stopElement);    if (stopElement) {      // Is this the one we're looking for?      if (stopCount == aIndex)        break; // Yes, break out of the loop      stopCount++;    }  }  if (stopCount == 0) {    // No stops?  check for URI target    if (checkURITarget())      return mNextGrad->GetStopOpacity(aIndex, aStopOpacity);  }  if (!stopFrame) {    *aStopOpacity = 1.0f;    return NS_ERROR_FAILURE;  }  *aStopOpacity = stopFrame->GetStyleSVG()->mStopOpacity;  return NS_OK;}