mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 21:00:50 +00:00
Bug 1010681 part 2 - Make SVG animation elements call SetIsDisabled on the corresponding timed element; r=longsonr
This patch makes use of the SetIsDisabled method added to nsSMILTimedElement in the previous patch to "turn off" the associated timed element of an animation element that has failing conditional processing tests.
This commit is contained in:
parent
8a73e62d98
commit
d9aa3fdc4c
@ -313,6 +313,11 @@ SVGAnimationElement::AfterSetAttr(int32_t aNamespaceID, nsIAtom* aName,
|
||||
SVGAnimationElementBase::AfterSetAttr(aNamespaceID, aName, aValue,
|
||||
aNotify);
|
||||
|
||||
if (SVGTests::IsConditionalProcessingAttribute(aName) &&
|
||||
mTimedElement.SetIsDisabled(!PassesConditionalProcessingTests())) {
|
||||
AnimationNeedsResample();
|
||||
}
|
||||
|
||||
if (aNamespaceID != kNameSpaceID_XLink || aName != nsGkAtoms::href)
|
||||
return rv;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user