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

Unified Diff: third_party/WebKit/Source/core/svg/SVGParsingError.h

Issue 1636503003: Error reporting for SVGLength and SVGLengthList (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/SVGParsingError.h
diff --git a/third_party/WebKit/Source/core/svg/SVGParsingError.h b/third_party/WebKit/Source/core/svg/SVGParsingError.h
index 6eff092cb95b3520641966b80aad584201ae73d4..c66710afcbe299c03aa24ed38275905fec607c73 100644
--- a/third_party/WebKit/Source/core/svg/SVGParsingError.h
+++ b/third_party/WebKit/Source/core/svg/SVGParsingError.h
@@ -41,6 +41,7 @@ enum class SVGParseStatus {
TrailingGarbage,
ExpectedBoolean,
ExpectedEnumeration,
+ ExpectedLength,
ExpectedNumber,
// Semantic errors
@@ -65,6 +66,9 @@ public:
bool hasLocus() const { return m_locus != kNoLocus; }
unsigned locus() const { return m_locus; }
+ // Move the locus of this error by |offset|, returning in a new error.
+ SVGParsingError offsetWith(size_t offset) const { return SVGParsingError(status(), offset + locus()); }
+
// Generates a string describing this error for |value| in the context of
// an <element, attribute>-name pair.
String format(const String& tagName, const QualifiedName&, const AtomicString& value) const;
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGLengthList.cpp ('k') | third_party/WebKit/Source/core/svg/SVGParsingError.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698