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

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

Issue 1646543004: Refactor away SVGPathSource (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use namespace 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
Index: third_party/WebKit/Source/core/svg/SVGPathParserTest.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGPathParserTest.cpp b/third_party/WebKit/Source/core/svg/SVGPathParserTest.cpp
index 3a27ca62b37ecc2830272683e95adc79357a8dbc..4a39b28fef930ca8e9ac5c67d7eea2f5b5f73e31 100644
--- a/third_party/WebKit/Source/core/svg/SVGPathParserTest.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGPathParserTest.cpp
@@ -17,8 +17,7 @@ bool parsePath(const char* input, String& output)
String inputString(input);
SVGPathStringSource source(inputString);
SVGPathStringBuilder builder;
- SVGPathParser parser(&source, &builder);
- bool hadError = parser.parsePathDataFromSource();
+ bool hadError = SVGPathParser::parsePath(source, builder);
output = builder.result();
// Coerce a null result to empty.
if (output.isNull())
@@ -146,8 +145,7 @@ SVGParsingError parsePathWithError(const char* input)
String inputString(input);
SVGPathStringSource source(inputString);
SVGPathStringBuilder builder;
- SVGPathParser parser(&source, &builder);
- parser.parsePathDataFromSource();
+ SVGPathParser::parsePath(source, builder);
return source.parseError();
}
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGPathParser.cpp ('k') | third_party/WebKit/Source/core/svg/SVGPathSource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698