Index: Source/core/svg/SVGAnimationElement.cpp |
diff --git a/Source/core/svg/SVGAnimationElement.cpp b/Source/core/svg/SVGAnimationElement.cpp |
index 6e7f664525d22ddec5bb96db72dcb7e91c99fb30..0934a39a2968cf72d21b33f50efc42a2fdcec118 100644 |
--- a/Source/core/svg/SVGAnimationElement.cpp |
+++ b/Source/core/svg/SVGAnimationElement.cpp |
@@ -507,8 +507,7 @@ void SVGAnimationElement::currentValuesForValuesAnimation(float percent, float& |
CalcMode calcMode = this->calcMode(); |
if (hasTagName(SVGNames::animateTag) || hasTagName(SVGNames::animateColorTag)) { |
- SVGAnimateElement* animateElement = static_cast<SVGAnimateElement*>(this); |
- AnimatedPropertyType attributeType = animateElement->determineAnimatedPropertyType(targetElement()); |
+ AnimatedPropertyType attributeType = toSVGAnimateElement(this)->determineAnimatedPropertyType(targetElement()); |
// Fall back to discrete animations for Strings. |
if (attributeType == AnimatedBoolean |
|| attributeType == AnimatedEnumeration |