Bug 974710 - Stop incorrectly reporting errors with values attribute on the animateMotion element. r=dholbert

This commit is contained in:
Robert Longson 2014-04-16 10:43:36 +01:00
parent 434d722551
commit 94c55edbc0

View File

@ -72,15 +72,18 @@ SVGMotionSMILAnimationFunction::SetAttr(nsIAtom* aAttribute,
}
} else if (aAttribute == nsGkAtoms::path) {
aResult.SetTo(aValue);
MarkStaleIfAttributeAffectsPath(aAttribute);
if (aParseResult) {
*aParseResult = NS_OK;
}
MarkStaleIfAttributeAffectsPath(aAttribute);
} else if (aAttribute == nsGkAtoms::by ||
aAttribute == nsGkAtoms::from ||
aAttribute == nsGkAtoms::to ||
aAttribute == nsGkAtoms::values) {
MarkStaleIfAttributeAffectsPath(aAttribute);
if (aParseResult) {
*aParseResult = NS_OK;
}
} else {
// Defer to superclass method
return nsSMILAnimationFunction::SetAttr(aAttribute, aValue,