mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-02 22:37:50 +00:00
Bug 620413 useless check of stopFrame in nsSVGGradientFrame::GetStopInformation
r=longsonr a=dbaron
This commit is contained in:
parent
886e6baebe
commit
c2b1a0c153
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user