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

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

Issue 1471943003: Introduce SVGPathQuery to hold SVG path query methods (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Const-qualify. Created 5 years, 1 month 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
Index: third_party/WebKit/Source/core/svg/SVGPathParser.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGPathParser.cpp b/third_party/WebKit/Source/core/svg/SVGPathParser.cpp
index 93dd5b8f0e6e5c61e1e6baf87da7fda6ca8a0ebb..989ba011f263c4144af57e8680073f292c9030ab 100644
--- a/third_party/WebKit/Source/core/svg/SVGPathParser.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGPathParser.cpp
@@ -50,12 +50,6 @@ bool SVGPathParser::parsePath()
return false;
m_consumer->emitSegment(segment);
-
- if (!m_consumer->continueConsuming())
- return true;
-
- if (m_source->hasMoreData())
- m_consumer->incrementPathSegmentCount();
}
return true;
}
@@ -314,12 +308,6 @@ bool SVGPathParser::parseAndNormalizePath()
return false;
normalizer.emitSegment(segment);
-
- if (!m_consumer->continueConsuming())
- return true;
-
- if (m_source->hasMoreData())
- m_consumer->incrementPathSegmentCount();
}
return true;
}

Powered by Google App Engine
This is Rietveld 408576698