Index: Source/core/rendering/svg/SVGRenderTreeAsText.cpp |
diff --git a/Source/core/rendering/svg/SVGRenderTreeAsText.cpp b/Source/core/rendering/svg/SVGRenderTreeAsText.cpp |
index 980fa195a64778abddcfb96e58439c0fe0d551bd..8379f41b28c574a8326a52dfe9bf313d792a215a 100644 |
--- a/Source/core/rendering/svg/SVGRenderTreeAsText.cpp |
+++ b/Source/core/rendering/svg/SVGRenderTreeAsText.cpp |
@@ -357,7 +357,7 @@ static TextStream& operator<<(TextStream& ts, const RenderSVGShape& shape) |
SVGPolyElement* element = static_cast<SVGPolyElement*>(svgElement); |
writeNameAndQuotedValue(ts, "points", element->pointList().valueAsString()); |
} else if (svgElement->hasTagName(SVGNames::pathTag)) { |
- SVGPathElement* element = static_cast<SVGPathElement*>(svgElement); |
+ SVGPathElement* element = toSVGPathElement(svgElement); |
String pathString; |
// FIXME: We should switch to UnalteredParsing here - this will affect the path dumping output of dozens of tests. |
buildStringFromByteStream(element->pathByteStream(), pathString, NormalizedParsing); |