| Index: third_party/WebKit/Source/core/svg/SVGAnimatedLength.cpp
|
| diff --git a/third_party/WebKit/Source/core/svg/SVGAnimatedLength.cpp b/third_party/WebKit/Source/core/svg/SVGAnimatedLength.cpp
|
| index a22e1f5014faf7a4e62e3fa45c0fcbbe3ef8543b..4ed90e356960c4901cd895f75dcf4b7a6243feb7 100644
|
| --- a/third_party/WebKit/Source/core/svg/SVGAnimatedLength.cpp
|
| +++ b/third_party/WebKit/Source/core/svg/SVGAnimatedLength.cpp
|
| @@ -33,6 +33,7 @@
|
| #include "core/svg/SVGAnimatedLength.h"
|
|
|
| #include "core/svg/SVGElement.h"
|
| +#include "core/svg/SVGLength.h"
|
|
|
| namespace blink {
|
|
|
| @@ -50,7 +51,7 @@ void SVGAnimatedLength::setBaseValueAsString(const String& value, SVGParsingErro
|
| if (es.hadException()) {
|
| parseError = ParsingAttributeFailedError;
|
| baseValue()->newValueSpecifiedUnits(CSSPrimitiveValue::UnitType::UserUnits, 0);
|
| - } else if (m_negativeValuesMode == ForbidNegativeLengths && baseValue()->valueInSpecifiedUnits() < 0) {
|
| + } else if (SVGLength::negativeValuesForbiddenForAnimatedLengthAttribute(attributeName()) && baseValue()->valueInSpecifiedUnits() < 0) {
|
| parseError = NegativeValueForbiddenError;
|
| }
|
| }
|
|
|