Index: Source/core/rendering/svg/SVGPathData.cpp |
diff --git a/Source/core/rendering/svg/SVGPathData.cpp b/Source/core/rendering/svg/SVGPathData.cpp |
index b15fe3df90f452ab97064dc092700c50316646cb..e9b13ef121f2a31d4c61688ed7b8030919663505 100644 |
--- a/Source/core/rendering/svg/SVGPathData.cpp |
+++ b/Source/core/rendering/svg/SVGPathData.cpp |
@@ -111,8 +111,7 @@ static void updatePathFromPolylineElement(SVGElement* element, Path& path) |
static void updatePathFromRectElement(SVGElement* element, Path& path) |
{ |
- ASSERT(element->hasTagName(SVGNames::rectTag)); |
- SVGRectElement* rect = static_cast<SVGRectElement*>(element); |
+ SVGRectElement* rect = toSVGRectElement(element); |
SVGLengthContext lengthContext(element); |
float width = rect->widthCurrentValue().value(lengthContext); |