Index: Source/core/svg/SVGAnimateElement.cpp |
diff --git a/Source/core/svg/SVGAnimateElement.cpp b/Source/core/svg/SVGAnimateElement.cpp |
index 4d171f298a8c4e0695e4874e193ba57701138408..b0a0a154d8a2ab70f7fe5ea4f9b530bc188ce210 100644 |
--- a/Source/core/svg/SVGAnimateElement.cpp |
+++ b/Source/core/svg/SVGAnimateElement.cpp |
@@ -238,10 +238,8 @@ void SVGAnimateElement::resetAnimatedType() |
computeCSSPropertyValue(targetElement, cssPropertyID(attributeName.localName()), baseValue); |
} |
- if (!m_animatedType) |
+ if (!m_animatedType || !m_animatedType->setValueAsString(attributeName, baseValue)) |
m_animatedType = animator->constructFromString(baseValue); |
- else |
- m_animatedType->setValueAsString(attributeName, baseValue); |
} |
static inline void applyCSSPropertyToTarget(SVGElement* targetElement, CSSPropertyID id, const String& value) |