Index: third_party/WebKit/Source/core/svg/SVGLengthTearOff.cpp |
diff --git a/third_party/WebKit/Source/core/svg/SVGLengthTearOff.cpp b/third_party/WebKit/Source/core/svg/SVGLengthTearOff.cpp |
index 4b998361a0c8199db7290a9d47dbedadf85818fe..caa2591b456a3c5c97b487e0057674b6e246d9bf 100644 |
--- a/third_party/WebKit/Source/core/svg/SVGLengthTearOff.cpp |
+++ b/third_party/WebKit/Source/core/svg/SVGLengthTearOff.cpp |
@@ -158,11 +158,11 @@ void SVGLengthTearOff::setValueAsString(const String& str, ExceptionState& excep |
SVGParsingError status = target()->setValueAsString(str); |
- if (status == NoError && !hasExposedLengthUnit()) { |
+ if (status == SVGParseStatus::NoError && !hasExposedLengthUnit()) { |
target()->setValueAsString(oldValue); // rollback to old value |
- status = ParsingAttributeFailedError; |
+ status = SVGParseStatus::ParsingFailed; |
} |
- if (status != NoError) { |
+ if (status != SVGParseStatus::NoError) { |
exceptionState.throwDOMException(SyntaxError, "The value provided ('" + str + "') is invalid."); |
return; |
} |