Index: Source/core/svg/SVGAnimateMotionElement.cpp |
diff --git a/Source/core/svg/SVGAnimateMotionElement.cpp b/Source/core/svg/SVGAnimateMotionElement.cpp |
index 73a3ee64ca76bcfef53bb5c6f38e7cc3a028f8aa..f8a929b6d861be29c2ddc38d2edad2e6f3e3c03a 100644 |
--- a/Source/core/svg/SVGAnimateMotionElement.cpp |
+++ b/Source/core/svg/SVGAnimateMotionElement.cpp |
@@ -137,7 +137,7 @@ void SVGAnimateMotionElement::updateAnimationPath() |
for (Node* child = firstChild(); child; child = child->nextSibling()) { |
if (child->hasTagName(SVGNames::mpathTag)) { |
- SVGMPathElement* mPath = static_cast<SVGMPathElement*>(child); |
+ SVGMPathElement* mPath = toSVGMPathElement(child); |
SVGPathElement* pathElement = mPath->pathElement(); |
if (pathElement) { |
updatePathFromGraphicsElement(pathElement, m_animationPath); |