Index: Source/core/rendering/svg/RenderSVGRect.cpp |
diff --git a/Source/core/rendering/svg/RenderSVGRect.cpp b/Source/core/rendering/svg/RenderSVGRect.cpp |
index 6ad7ff918c53d2c180a7bbd630c8367218ed6b92..9d1457ef843dff9b8302f9e128edb7f2d94c6771 100644 |
--- a/Source/core/rendering/svg/RenderSVGRect.cpp |
+++ b/Source/core/rendering/svg/RenderSVGRect.cpp |
@@ -50,7 +50,7 @@ void RenderSVGRect::updateShapeFromElement() |
m_fillBoundingBox = FloatRect(); |
m_innerStrokeRect = FloatRect(); |
m_outerStrokeRect = FloatRect(); |
- SVGRectElement* rect = static_cast<SVGRectElement*>(node()); |
+ SVGRectElement* rect = toSVGRectElement(node()); |
ASSERT(rect); |
SVGLengthContext lengthContext(rect); |