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

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

Issue 1620203002: Extended error reporting for SVGNumber/Point/Rect and related types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Blind is blind. 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/SVGNumberOptionalNumber.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGNumberOptionalNumber.cpp b/third_party/WebKit/Source/core/svg/SVGNumberOptionalNumber.cpp
index b5c95f261e88a60a60e91f3cbec758272f2e28ce..a41eb2e4de9078ae48181e9bc8fd15f73095fc10 100644
--- a/third_party/WebKit/Source/core/svg/SVGNumberOptionalNumber.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGNumberOptionalNumber.cpp
@@ -78,7 +78,7 @@ SVGParsingError SVGNumberOptionalNumber::setValueAsString(const String& value)
float x, y;
SVGParsingError parseStatus;
if (!parseNumberOptionalNumber(value, x, y)) {
- parseStatus = SVGParseStatus::ParsingFailed;
+ parseStatus = SVGParseStatus::ExpectedNumber;
x = y = 0;
}
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGNumberList.cpp ('k') | third_party/WebKit/Source/core/svg/SVGParsingError.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698