зеркало из https://github.com/mozilla/pjs.git
Fix for bug 319107 - One SVG file crashes firefox 1.5 [@ nsSVGGradientFrame::GetNextGradient]
r=tor
This commit is contained in:
Родитель
dbbc444239
Коммит
c3ce0d8eb0
|
@ -618,6 +618,10 @@ nsSVGGradientFrame::PrivateGetSpreadMethod(nsIDOMSVGAnimatedEnumeration * *aEnum
|
|||
NS_IMETHODIMP
|
||||
nsSVGGradientFrame::GetNextGradient(nsISVGGradient * *aNextGrad, PRUint32 aType) {
|
||||
PRUint32 nextType;
|
||||
if (!mNextGrad) {
|
||||
*aNextGrad = nsnull;
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
mNextGrad->GetGradientType(&nextType);
|
||||
if (nextType == aType) {
|
||||
*aNextGrad = mNextGrad;
|
||||
|
|
Загрузка…
Ссылка в новой задаче