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

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

Issue 1644293003: Error reporting for SVGInteger and SVGIntegerOptionalInteger (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: TestExpectations; Drop redundant test. 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/SVGIntegerOptionalInteger.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGIntegerOptionalInteger.cpp b/third_party/WebKit/Source/core/svg/SVGIntegerOptionalInteger.cpp
index 421ff12481606ff447b6c5f0842024d6bb40d60d..762939af48926d3ef77627902392e1ecd72f8e96 100644
--- a/third_party/WebKit/Source/core/svg/SVGIntegerOptionalInteger.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGIntegerOptionalInteger.cpp
@@ -81,7 +81,7 @@ SVGParsingError SVGIntegerOptionalInteger::setValueAsString(const String& value)
float x, y;
SVGParsingError parseStatus;
if (!parseNumberOptionalNumber(value, x, y)) {
- parseStatus = SVGParseStatus::ParsingFailed;
+ parseStatus = SVGParseStatus::ExpectedInteger;
x = y = 0;
}
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGInteger.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