Bug 620413 useless check of stopFrame in nsSVGGradientFrame::GetStopInformation

r=longsonr a=dbaron
This commit is contained in:
timeless@mozdev.org 2011-02-15 23:53:02 -08:00
parent 886e6baebe
commit c2b1a0c153

View File

@ -128,20 +128,8 @@ nsSVGGradientFrame::GetStopInformation(PRInt32 aIndex,
*aOffset = 1.0f;
}
if (stopFrame) {
*aStopColor = stopFrame->GetStyleSVGReset()->mStopColor;
*aStopOpacity = stopFrame->GetStyleSVGReset()->mStopOpacity;
}
#ifdef DEBUG
// One way or another we have an implementation problem if we get here
else if (stopElement) {
NS_WARNING("We *do* have a stop but can't use it because it doesn't have "
"a frame - we need frame free gradients and stops!");
}
else {
NS_ERROR("Don't call me with an invalid stop index!");
}
#endif
*aStopColor = stopFrame->GetStyleSVGReset()->mStopColor;
*aStopOpacity = stopFrame->GetStyleSVGReset()->mStopOpacity;
}
gfxMatrix