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 1fde0eb9ecc63e5904b810b67c911b40f5801b11..74a868d10df416453b3078c03898b412b982e15d 100644 |
--- a/third_party/WebKit/Source/core/svg/SVGPathUtilities.cpp |
+++ b/third_party/WebKit/Source/core/svg/SVGPathUtilities.cpp |
@@ -62,11 +62,11 @@ String buildStringFromByteStream(const SVGPathByteStream& stream) |
return builder.result(); |
} |
-bool buildByteStreamFromString(const String& d, SVGPathByteStream& result) |
+SVGParsingError buildByteStreamFromString(const String& d, SVGPathByteStream& result) |
{ |
result.clear(); |
if (d.isEmpty()) |
- return true; |
+ return SVGParseStatus::NoError; |
// The string length is typically a minor overestimate of eventual byte stream size, so it avoids us a lot of reallocs. |
result.reserveInitialCapacity(d.length()); |
@@ -74,9 +74,9 @@ bool buildByteStreamFromString(const String& d, SVGPathByteStream& result) |
SVGPathByteStreamBuilder builder(result); |
SVGPathStringSource source(d); |
SVGPathParser parser(&source, &builder); |
- bool ok = parser.parsePathDataFromSource(); |
+ parser.parsePathDataFromSource(); |
result.shrinkToFit(); |
- return ok; |
+ return source.parseError(); |
} |
} // namespace blink |