Index: Source/core/svg/properties/SVGAnimatedPathSegListPropertyTearOff.h |
diff --git a/Source/core/svg/properties/SVGAnimatedPathSegListPropertyTearOff.h b/Source/core/svg/properties/SVGAnimatedPathSegListPropertyTearOff.h |
index 404406d02f23b29b4084c5179adf01b4d27f5f73..dfdb6d431649cd9a1dc41f8a41410ca9a036b151 100644 |
--- a/Source/core/svg/properties/SVGAnimatedPathSegListPropertyTearOff.h |
+++ b/Source/core/svg/properties/SVGAnimatedPathSegListPropertyTearOff.h |
@@ -88,7 +88,7 @@ public: |
void animValDidChange() |
{ |
ASSERT(m_animatedPathByteStream); |
- SVGPathElement* pathElement = static_cast<SVGPathElement*>(contextElement()); |
+ SVGPathElement* pathElement = toSVGPathElement(contextElement()); |
// If the animVal is observed from JS, we have to update it on each animation step. |
// This is an expensive operation and only done, if someone actually observes the animatedPathSegList() while an animation is running. |