Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1925)

Unified Diff: Source/core/rendering/svg/SVGPathData.cpp

Issue 23583011: Add toSVGPolylineElement(), and use it (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/svg/SVGPolylineElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/svg/SVGPathData.cpp
diff --git a/Source/core/rendering/svg/SVGPathData.cpp b/Source/core/rendering/svg/SVGPathData.cpp
index f6ccd9523ce72a78c2b3440c489679dca27e378d..d9085d668814f183a656f59db645d798afe2f30b 100644
--- a/Source/core/rendering/svg/SVGPathData.cpp
+++ b/Source/core/rendering/svg/SVGPathData.cpp
@@ -89,10 +89,7 @@ static void updatePathFromPolygonElement(SVGElement* element, Path& path)
static void updatePathFromPolylineElement(SVGElement* element, Path& path)
{
- ASSERT(element->hasTagName(SVGNames::polylineTag));
- SVGPolylineElement* polyline = static_cast<SVGPolylineElement*>(element);
-
- SVGPointList& points = polyline->pointList();
+ SVGPointList& points = toSVGPolylineElement(element)->pointList();
if (points.isEmpty())
return;
« no previous file with comments | « no previous file | Source/core/svg/SVGPolylineElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698