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

Unified Diff: third_party/WebKit/Source/core/svg/SVGPathUtilities.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
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGPathStringSource.cpp ('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/SVGPathUtilities.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGPathUtilities.cpp b/third_party/WebKit/Source/core/svg/SVGPathUtilities.cpp
index 74a868d10df416453b3078c03898b412b982e15d..c84d1d426e7f945ed6427fbed21f746a1e02f8b0 100644
--- a/third_party/WebKit/Source/core/svg/SVGPathUtilities.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGPathUtilities.cpp
@@ -35,8 +35,7 @@ bool buildPathFromString(const String& d, Path& result)
SVGPathBuilder builder(result);
SVGPathStringSource source(d);
- SVGPathParser parser(&source, &builder);
- return parser.parsePathDataFromSource();
+ return SVGPathParser::parsePath(source, builder);
}
bool buildPathFromByteStream(const SVGPathByteStream& stream, Path& result)
@@ -46,8 +45,7 @@ bool buildPathFromByteStream(const SVGPathByteStream& stream, Path& result)
SVGPathBuilder builder(result);
SVGPathByteStreamSource source(stream);
- SVGPathParser parser(&source, &builder);
- return parser.parsePathDataFromSource();
+ return SVGPathParser::parsePath(source, builder);
}
String buildStringFromByteStream(const SVGPathByteStream& stream)
@@ -57,8 +55,7 @@ String buildStringFromByteStream(const SVGPathByteStream& stream)
SVGPathStringBuilder builder;
SVGPathByteStreamSource source(stream);
- SVGPathParser parser(&source, &builder);
- parser.parsePathDataFromSource();
+ SVGPathParser::parsePath(source, builder);
return builder.result();
}
@@ -73,8 +70,7 @@ SVGParsingError buildByteStreamFromString(const String& d, SVGPathByteStream& re
SVGPathByteStreamBuilder builder(result);
SVGPathStringSource source(d);
- SVGPathParser parser(&source, &builder);
- parser.parsePathDataFromSource();
+ SVGPathParser::parsePath(source, builder);
result.shrinkToFit();
return source.parseError();
}
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGPathStringSource.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698