Index: Source/core/rendering/svg/RenderSVGText.cpp |
diff --git a/Source/core/rendering/svg/RenderSVGText.cpp b/Source/core/rendering/svg/RenderSVGText.cpp |
index 14bc52fa03e5da085b6acbd3ca4dd0a7ea16757f..6552c0bc917c795adbdac0aa8c33bd6cd5baf1b1 100644 |
--- a/Source/core/rendering/svg/RenderSVGText.cpp |
+++ b/Source/core/rendering/svg/RenderSVGText.cpp |
@@ -350,8 +350,7 @@ void RenderSVGText::layout() |
bool updateCachedBoundariesInParents = false; |
if (m_needsTransformUpdate) { |
- SVGTextElement* text = static_cast<SVGTextElement*>(node()); |
- m_localTransform = text->animatedLocalTransform(); |
+ m_localTransform = toSVGTextElement(node())->animatedLocalTransform(); |
m_needsTransformUpdate = false; |
updateCachedBoundariesInParents = true; |
} |