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

Unified Diff: third_party/WebKit/Source/core/svg/SVGPathBuilder.cpp

Issue 1605943002: Remove tracking of 'closed subpath' state from SVGPathBuilder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | « third_party/WebKit/Source/core/svg/SVGPathBuilder.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/svg/SVGPathBuilder.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGPathBuilder.cpp b/third_party/WebKit/Source/core/svg/SVGPathBuilder.cpp
index ceacd0fd9bfcd467f1cacd202f5d3964c9acb853..acbce1d157bfbfd9be74f0a519449046e57aff21 100644
--- a/third_party/WebKit/Source/core/svg/SVGPathBuilder.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGPathBuilder.cpp
@@ -32,17 +32,13 @@ void SVGPathBuilder::emitSegment(const PathSegmentData& segment)
{
switch (segment.command) {
case PathSegMoveToAbs:
- if (m_closed && !m_path.isEmpty())
- m_path.closeSubpath();
m_path.moveTo(segment.targetPoint);
- m_closed = false;
break;
case PathSegLineToAbs:
m_path.addLineTo(segment.targetPoint);
break;
case PathSegClosePath:
m_path.closeSubpath();
- m_closed = true;
break;
case PathSegCurveToCubicAbs:
m_path.addBezierCurveTo(segment.point1, segment.point2, segment.targetPoint);
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGPathBuilder.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698