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

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

Issue 1588993005: Extended error reporting for SVG attribute parsing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: TestExpectations 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/SVGLengthList.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGLengthList.cpp b/third_party/WebKit/Source/core/svg/SVGLengthList.cpp
index 433d9aeb0f6a7f0c572159590a6d53e218efa15c..ae972e4e6b5f02b2e805bd25509e3f5545012690 100644
--- a/third_party/WebKit/Source/core/svg/SVGLengthList.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGLengthList.cpp
@@ -84,19 +84,19 @@ SVGParsingError SVGLengthList::parseInternal(const CharType*& ptr, const CharTyp
RefPtrWillBeRawPtr<SVGLength> length = SVGLength::create(m_mode);
SVGParsingError lengthParseStatus = length->setValueAsString(valueString);
- if (lengthParseStatus != NoError)
+ if (lengthParseStatus != SVGStatus::NoError)
return lengthParseStatus;
append(length);
skipOptionalSVGSpacesOrDelimiter(ptr, end);
}
- return NoError;
+ return SVGStatus::NoError;
}
SVGParsingError SVGLengthList::setValueAsString(const String& value)
{
if (value.isEmpty()) {
clear();
- return NoError;
+ return SVGStatus::NoError;
}
SVGParsingError parseStatus;

Powered by Google App Engine
This is Rietveld 408576698