Index: Source/core/rendering/svg/SVGRenderTreeAsText.cpp |
diff --git a/Source/core/rendering/svg/SVGRenderTreeAsText.cpp b/Source/core/rendering/svg/SVGRenderTreeAsText.cpp |
index fc5b9a68bd0737f041b548d2f77a99338761a1e6..9cae67f235e41b0cc544d1ce8f1e5acd3362994b 100644 |
--- a/Source/core/rendering/svg/SVGRenderTreeAsText.cpp |
+++ b/Source/core/rendering/svg/SVGRenderTreeAsText.cpp |
@@ -331,7 +331,7 @@ static TextStream& operator<<(TextStream& ts, const RenderSVGShape& shape) |
SVGLengthContext lengthContext(svgElement); |
if (svgElement->hasTagName(SVGNames::rectTag)) { |
- SVGRectElement* element = static_cast<SVGRectElement*>(svgElement); |
+ SVGRectElement* element = toSVGRectElement(svgElement); |
writeNameValuePair(ts, "x", element->xCurrentValue().value(lengthContext)); |
writeNameValuePair(ts, "y", element->yCurrentValue().value(lengthContext)); |
writeNameValuePair(ts, "width", element->widthCurrentValue().value(lengthContext)); |