Index: Source/core/svg/SVGAnimationElement.cpp |
diff --git a/Source/core/svg/SVGAnimationElement.cpp b/Source/core/svg/SVGAnimationElement.cpp |
index e2a27a7ab7313302fb8b8ee61274063a0c03a709..7c707fdd786bfb0ff9d30ed1a7aafd2f921fc111 100644 |
--- a/Source/core/svg/SVGAnimationElement.cpp |
+++ b/Source/core/svg/SVGAnimationElement.cpp |
@@ -572,6 +572,9 @@ void SVGAnimationElement::startedActiveInterval() |
String by = byValue(); |
if (animationMode == NoAnimation) |
return; |
+ if ((animationMode == FromToAnimation || animationMode == FromByAnimation || animationMode == ToAnimation || animationMode == ByAnimation) |
+ && (fastHasAttribute(SVGNames::keyPointsAttr) && fastHasAttribute(SVGNames::keyTimesAttr) && (m_keyTimes.size() < 2 || m_keyTimes.size() != m_keyPoints.size()))) |
+ return; |
if (animationMode == FromToAnimation) |
m_animationValid = calculateFromAndToValues(from, to); |
else if (animationMode == ToAnimation) { |