Bug 579017 - Fix crash calling nsSVGAngle::NewValueSpecifiedUnits. r=jwatt

This commit is contained in:
Robert Longson 2010-07-18 10:51:30 +01:00
Родитель 4fc12f82be
Коммит b771d2d1d3
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -302,7 +302,9 @@ nsSVGAngle::NewValueSpecifiedUnits(PRUint16 unitType,
aSVGElement->AnimationNeedsResample();
}
#endif
aSVGElement->DidChangeAngle(mAttrEnum, PR_TRUE);
if (aSVGElement) {
aSVGElement->DidChangeAngle(mAttrEnum, PR_TRUE);
}
return NS_OK;
}
@ -381,7 +383,7 @@ nsSVGAngle::SetBaseValue(float aValue, nsSVGElement *aSVGElement)
mAnimVal = mBaseVal;
}
#ifdef MOZ_SMIL
else if (aSVGElement) {
else {
aSVGElement->AnimationNeedsResample();
}
#endif