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

Unified Diff: third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp

Issue 1642463004: Extended error reporting for SVG path parsing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: "path flag" -> "arc flag" 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/css/parser/CSSPropertyParser.cpp
diff --git a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp b/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
index 0d0289de215d787aff3cce61cc940094fc764aff..d4d70efa9efd8cb3881687b8c3e008fdb7e11f95 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
@@ -1927,7 +1927,8 @@ static PassRefPtrWillBeRawPtr<CSSValue> consumePath(CSSParserTokenRange& range)
String pathString = functionArgs.consumeIncludingWhitespace().value();
RefPtr<SVGPathByteStream> byteStream = SVGPathByteStream::create();
- if (!buildByteStreamFromString(pathString, *byteStream) || !functionArgs.atEnd())
+ if (buildByteStreamFromString(pathString, *byteStream) != SVGParseStatus::NoError
+ || !functionArgs.atEnd())
return nullptr;
range = functionRange;

Powered by Google App Engine
This is Rietveld 408576698