mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 21:05:36 +00:00
Bug 758505, Part 1: Avoid unnecessary invalidations on repeated calls to set the same animated value (nsSVGLength2 part). r=dholbert
This commit is contained in:
parent
f1803c5e39
commit
714c391777
@ -460,6 +460,9 @@ void
|
||||
nsSVGLength2::SetAnimValueInSpecifiedUnits(float aValue,
|
||||
nsSVGElement* aSVGElement)
|
||||
{
|
||||
if (mAnimVal == aValue && mIsAnimated) {
|
||||
return;
|
||||
}
|
||||
mAnimVal = aValue;
|
||||
mIsAnimated = true;
|
||||
aSVGElement->DidAnimateLength(mAttrEnum);
|
||||
|
Loading…
Reference in New Issue
Block a user