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

Unified Diff: third_party/WebKit/Source/core/svg/SVGPointList.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/SVGPointList.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGPointList.cpp b/third_party/WebKit/Source/core/svg/SVGPointList.cpp
index 117969e37d2f0cf160b167134c0fe688b623c31f..e7f67b8bf7635bf6707258b47e149823a4e67c58 100644
--- a/third_party/WebKit/Source/core/svg/SVGPointList.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGPointList.cpp
@@ -92,7 +92,7 @@ SVGParsingError SVGPointList::setValueAsString(const String& value)
{
if (value.isEmpty()) {
clear();
- return NoError;
+ return SVGParseStatus::NoError;
}
bool valid = false;
@@ -105,7 +105,7 @@ SVGParsingError SVGPointList::setValueAsString(const String& value)
const UChar* end = ptr + value.length();
valid = parse(ptr, end);
}
- return valid ? NoError : ParsingAttributeFailedError;
+ return valid ? SVGParseStatus::NoError : SVGParseStatus::ParsingFailed;
}
void SVGPointList::add(PassRefPtrWillBeRawPtr<SVGPropertyBase> other, SVGElement* contextElement)
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGPoint.cpp ('k') | third_party/WebKit/Source/core/svg/SVGPreserveAspectRatio.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698