Index: Source/core/rendering/svg/SVGPathData.cpp |
diff --git a/Source/core/rendering/svg/SVGPathData.cpp b/Source/core/rendering/svg/SVGPathData.cpp |
index 707f5488a8732c70ec861d1830f6c1d13e4cc878..60305024a2ab1db200b9c91abb9c774322cb2c09 100644 |
--- a/Source/core/rendering/svg/SVGPathData.cpp |
+++ b/Source/core/rendering/svg/SVGPathData.cpp |
@@ -47,8 +47,7 @@ static void updatePathFromCircleElement(SVGElement* element, Path& path) |
static void updatePathFromEllipseElement(SVGElement* element, Path& path) |
{ |
- ASSERT(element->hasTagName(SVGNames::ellipseTag)); |
- SVGEllipseElement* ellipse = static_cast<SVGEllipseElement*>(element); |
+ SVGEllipseElement* ellipse = toSVGEllipseElement(element); |
SVGLengthContext lengthContext(element); |
float rx = ellipse->rxCurrentValue().value(lengthContext); |