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:
Brian Birtles 2014-05-28 14:14:02 +09:00
parent 8a73e62d98
commit d9aa3fdc4c

View File

@ -313,6 +313,11 @@ SVGAnimationElement::AfterSetAttr(int32_t aNamespaceID, nsIAtom* aName,
SVGAnimationElementBase::AfterSetAttr(aNamespaceID, aName, aValue, SVGAnimationElementBase::AfterSetAttr(aNamespaceID, aName, aValue,
aNotify); aNotify);
if (SVGTests::IsConditionalProcessingAttribute(aName) &&
mTimedElement.SetIsDisabled(!PassesConditionalProcessingTests())) {
AnimationNeedsResample();
}
if (aNamespaceID != kNameSpaceID_XLink || aName != nsGkAtoms::href) if (aNamespaceID != kNameSpaceID_XLink || aName != nsGkAtoms::href)
return rv; return rv;