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

Unified Diff: third_party/WebKit/Source/core/svg/SVGIntegerOptionalInteger.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
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGInteger.cpp ('k') | third_party/WebKit/Source/core/svg/SVGLength.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b064168d72a4b5e2afdc0a79b1cd35c27b872d55..689c2c0648d4a346480ce9360028cbdbf1153443 100644
--- a/third_party/WebKit/Source/core/svg/SVGIntegerOptionalInteger.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGIntegerOptionalInteger.cpp
@@ -79,9 +79,9 @@ String SVGIntegerOptionalInteger::valueAsString() const
SVGParsingError SVGIntegerOptionalInteger::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/SVGInteger.cpp ('k') | third_party/WebKit/Source/core/svg/SVGLength.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698