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

Unified Diff: third_party/WebKit/Source/core/svg/SVGInteger.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/SVGInteger.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGInteger.cpp b/third_party/WebKit/Source/core/svg/SVGInteger.cpp
index 8ccddc5a855811e026c11055afdbce620dac8881..5587629153f5ff79e2b7d67a62c99540c090b4b1 100644
--- a/third_party/WebKit/Source/core/svg/SVGInteger.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGInteger.cpp
@@ -54,7 +54,7 @@ SVGParsingError SVGInteger::setValueAsString(const String& string)
{
if (string.isEmpty()) {
m_value = 0;
- return NoError;
+ return SVGParseStatus::NoError;
}
bool valid = true;
@@ -62,9 +62,9 @@ SVGParsingError SVGInteger::setValueAsString(const String& string)
if (!valid) {
m_value = 0;
- return ParsingAttributeFailedError;
+ return SVGParseStatus::ParsingFailed;
}
- return NoError;
+ return SVGParseStatus::NoError;
}
void SVGInteger::add(PassRefPtrWillBeRawPtr<SVGPropertyBase> other, SVGElement*)

Powered by Google App Engine
This is Rietveld 408576698