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

Unified Diff: Source/core/svg/SVGPathParser.cpp

Issue 1016023002: Move 'closePath' handling to the consumers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: closePath() Created 5 years, 9 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 | « Source/core/svg/SVGPathParser.h ('k') | Source/core/svg/SVGPathSegListBuilder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGPathParser.cpp
diff --git a/Source/core/svg/SVGPathParser.cpp b/Source/core/svg/SVGPathParser.cpp
index 26bae8496138974fb4869310854c87ec66c0396a..f9a258b5881f6d124e754543c7dd8b97f8eef6e6 100644
--- a/Source/core/svg/SVGPathParser.cpp
+++ b/Source/core/svg/SVGPathParser.cpp
@@ -43,7 +43,6 @@ void SVGPathParser::parseClosePathSegment()
// Reset m_currentPoint for the next path.
if (m_pathParsingMode == NormalizedParsing)
m_currentPoint = m_subPathPoint;
- m_closePath = true;
m_consumer->closePath();
}
@@ -54,8 +53,7 @@ bool SVGPathParser::parseMoveToSegment()
return false;
if (m_pathParsingMode == UnalteredParsing) {
- m_consumer->moveTo(targetPoint, m_closePath, m_mode);
- m_closePath = false;
+ m_consumer->moveTo(targetPoint, m_mode);
return true;
}
if (m_mode == RelativeCoordinates)
@@ -63,8 +61,7 @@ bool SVGPathParser::parseMoveToSegment()
else
m_currentPoint = targetPoint;
m_subPathPoint = m_currentPoint;
- m_consumer->moveTo(m_currentPoint, m_closePath, AbsoluteCoordinates);
- m_closePath = false;
+ m_consumer->moveTo(m_currentPoint, AbsoluteCoordinates);
return true;
}
@@ -291,7 +288,6 @@ bool SVGPathParser::parsePathDataFromSource(PathParsingMode pathParsingMode, boo
m_controlPoint = FloatPoint();
m_currentPoint = FloatPoint();
m_subPathPoint = FloatPoint();
- m_closePath = true;
// Skip any leading spaces.
if (!m_source->moveToNextToken())
« no previous file with comments | « Source/core/svg/SVGPathParser.h ('k') | Source/core/svg/SVGPathSegListBuilder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698