Index: Source/core/rendering/svg/RenderSVGEllipse.cpp |
diff --git a/Source/core/rendering/svg/RenderSVGEllipse.cpp b/Source/core/rendering/svg/RenderSVGEllipse.cpp |
index 3c559f6b6da8293c8026da28ff376da45ed20377..55facbf6186d0e043f25ec8e3bb9300ff5db0c15 100644 |
--- a/Source/core/rendering/svg/RenderSVGEllipse.cpp |
+++ b/Source/core/rendering/svg/RenderSVGEllipse.cpp |
@@ -87,8 +87,7 @@ void RenderSVGEllipse::calculateRadiiAndCenter() |
return; |
} |
- ASSERT(node()->hasTagName(SVGNames::ellipseTag)); |
- SVGEllipseElement* ellipse = static_cast<SVGEllipseElement*>(node()); |
+ SVGEllipseElement* ellipse = toSVGEllipseElement(node()); |
SVGLengthContext lengthContext(ellipse); |
m_radii = FloatSize(ellipse->rxCurrentValue().value(lengthContext), ellipse->ryCurrentValue().value(lengthContext)); |