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 16:24:22 +01:00
Родитель 9b0403088f
Коммит 9117b71e33
1 изменённых файлов: 6 добавлений и 7 удалений

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

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