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; |