зеркало из https://github.com/mozilla/gecko-dev.git
Bug 974710 - Stop incorrectly reporting errors with values attribute on the animateMotion element. r=dholbert
This commit is contained in:
Родитель
9b0403088f
Коммит
9117b71e33
|
@ -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,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче