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

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

Issue 1588993005: Extended error reporting for SVG attribute parsing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add PLATFORM_EXPORT 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 6e9007612ce0e9113e41dba086f40645955f019d..b5c95f261e88a60a60e91f3cbec758272f2e28ce 100644
--- a/third_party/WebKit/Source/core/svg/SVGNumberOptionalNumber.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGNumberOptionalNumber.cpp
@@ -76,9 +76,9 @@ String SVGNumberOptionalNumber::valueAsString() const
SVGParsingError SVGNumberOptionalNumber::setValueAsString(const String& value)
{
float x, y;
- SVGParsingError parseStatus = NoError;
+ SVGParsingError parseStatus;
if (!parseNumberOptionalNumber(value, x, y)) {
- parseStatus = ParsingAttributeFailedError;
+ parseStatus = SVGParseStatus::ParsingFailed;
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