Index: Source/core/rendering/svg/RenderSVGTextPath.cpp |
diff --git a/Source/core/rendering/svg/RenderSVGTextPath.cpp b/Source/core/rendering/svg/RenderSVGTextPath.cpp |
index 96a9ad295e3ccfa96f2c68e0e062708939688049..022afad907acec03a296e53401d66cadeb00a0f6 100644 |
--- a/Source/core/rendering/svg/RenderSVGTextPath.cpp |
+++ b/Source/core/rendering/svg/RenderSVGTextPath.cpp |
@@ -40,7 +40,7 @@ Path RenderSVGTextPath::layoutPath() const |
if (!targetElement || !targetElement->hasTagName(SVGNames::pathTag)) |
return Path(); |
- SVGPathElement* pathElement = static_cast<SVGPathElement*>(targetElement); |
+ SVGPathElement* pathElement = toSVGPathElement(targetElement); |
Path pathData; |
updatePathFromGraphicsElement(pathElement, pathData); |