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..5653d24c54ce3a4616f4da7d7f8960dcebabdef1 100644 |
--- a/Source/core/rendering/svg/SVGRenderTreeAsText.cpp |
+++ b/Source/core/rendering/svg/SVGRenderTreeAsText.cpp |
@@ -343,7 +343,7 @@ static TextStream& operator<<(TextStream& ts, const RenderSVGShape& shape) |
writeNameValuePair(ts, "x2", element->x2CurrentValue().value(lengthContext)); |
writeNameValuePair(ts, "y2", element->y2CurrentValue().value(lengthContext)); |
} else if (svgElement->hasTagName(SVGNames::ellipseTag)) { |
- SVGEllipseElement* element = static_cast<SVGEllipseElement*>(svgElement); |
+ SVGEllipseElement* element = toSVGEllipseElement(svgElement); |
writeNameValuePair(ts, "cx", element->cxCurrentValue().value(lengthContext)); |
writeNameValuePair(ts, "cy", element->cyCurrentValue().value(lengthContext)); |
writeNameValuePair(ts, "rx", element->rxCurrentValue().value(lengthContext)); |