| Index: third_party/WebKit/Source/core/svg/SVGPathElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/svg/SVGPathElement.cpp b/third_party/WebKit/Source/core/svg/SVGPathElement.cpp
|
| index 36f5179ccdd8f17ac2ae0be51185d6ef2b7a7f71..b21d54b4fe04c914bab5a2e8d04a3417dcfb51dd 100644
|
| --- a/third_party/WebKit/Source/core/svg/SVGPathElement.cpp
|
| +++ b/third_party/WebKit/Source/core/svg/SVGPathElement.cpp
|
| @@ -36,13 +36,14 @@ public:
|
| return adoptRefWillBeNoop(new SVGAnimatedPathLength(contextElement));
|
| }
|
|
|
| - void setBaseValueAsString(const String& value, SVGParsingError& parseError) override
|
| + SVGParsingError setBaseValueAsString(const String& value) override
|
| {
|
| - SVGAnimatedNumber::setBaseValueAsString(value, parseError);
|
| + SVGParsingError parseStatus = SVGAnimatedNumber::setBaseValueAsString(value);
|
|
|
| ASSERT(contextElement());
|
| - if (parseError == NoError && baseValue()->value() < 0)
|
| + if (parseStatus == NoError && baseValue()->value() < 0)
|
| contextElement()->document().accessSVGExtensions().reportError("A negative value for path attribute <pathLength> is not allowed");
|
| + return parseStatus;
|
| }
|
|
|
| private:
|
|
|