Index: Source/core/rendering/svg/SVGRenderTreeAsText.cpp |
diff --git a/Source/core/rendering/svg/SVGRenderTreeAsText.cpp b/Source/core/rendering/svg/SVGRenderTreeAsText.cpp |
index 1eaf384472f5754eba421ce097a5e9e6bed37e4b..d5311c530bd7d247f276b43f9fe8f69bf5160ef8 100644 |
--- a/Source/core/rendering/svg/SVGRenderTreeAsText.cpp |
+++ b/Source/core/rendering/svg/SVGRenderTreeAsText.cpp |
@@ -349,7 +349,7 @@ static TextStream& operator<<(TextStream& ts, const RenderSVGShape& shape) |
writeNameValuePair(ts, "rx", element->rxCurrentValue().value(lengthContext)); |
writeNameValuePair(ts, "ry", element->ryCurrentValue().value(lengthContext)); |
} else if (svgElement->hasTagName(SVGNames::circleTag)) { |
- SVGCircleElement* element = static_cast<SVGCircleElement*>(svgElement); |
+ SVGCircleElement* element = toSVGCircleElement(svgElement); |
writeNameValuePair(ts, "cx", element->cxCurrentValue().value(lengthContext)); |
writeNameValuePair(ts, "cy", element->cyCurrentValue().value(lengthContext)); |
writeNameValuePair(ts, "r", element->rCurrentValue().value(lengthContext)); |