Index: third_party/WebKit/Source/core/svg/SVGFitToViewBox.cpp |
diff --git a/third_party/WebKit/Source/core/svg/SVGFitToViewBox.cpp b/third_party/WebKit/Source/core/svg/SVGFitToViewBox.cpp |
index 9346b9825e98700a5b243b97c5cbc44e26b226d5..d3dbd9d4cad3a7f96fe705ba1b93e4f5a65ea0ec 100644 |
--- a/third_party/WebKit/Source/core/svg/SVGFitToViewBox.cpp |
+++ b/third_party/WebKit/Source/core/svg/SVGFitToViewBox.cpp |
@@ -51,8 +51,8 @@ SVGParsingError SVGAnimatedViewBoxRect::setBaseValueAsString(const String& value |
{ |
SVGParsingError parseStatus = baseValue()->setValueAsString(value); |
- if (parseStatus == NoError && (baseValue()->width() < 0 || baseValue()->height() < 0)) { |
- parseStatus = NegativeValueForbiddenError; |
+ if (parseStatus == SVGStatus::NoError && (baseValue()->width() < 0 || baseValue()->height() < 0)) { |
+ parseStatus = SVGStatus::NegativeValue; |
baseValue()->setInvalid(); |
} |
return parseStatus; |