| Index: third_party/WebKit/Source/core/svg/SVGLength.cpp
|
| diff --git a/third_party/WebKit/Source/core/svg/SVGLength.cpp b/third_party/WebKit/Source/core/svg/SVGLength.cpp
|
| index c9902d1eba954339145e8d2dde69dfa3b97fa8e7..f1e1be0baa36fae6d8c37953c2970db635671b56 100644
|
| --- a/third_party/WebKit/Source/core/svg/SVGLength.cpp
|
| +++ b/third_party/WebKit/Source/core/svg/SVGLength.cpp
|
| @@ -142,12 +142,12 @@ SVGParsingError SVGLength::setValueAsString(const String& string)
|
| CSSParserContext svgParserContext(SVGAttributeMode, 0);
|
| RefPtrWillBeRawPtr<CSSValue> parsed = CSSParser::parseSingleValue(CSSPropertyX, string, svgParserContext);
|
| if (!parsed || !parsed->isPrimitiveValue())
|
| - return SVGParseStatus::ParsingFailed;
|
| + return SVGParseStatus::ExpectedLength;
|
|
|
| CSSPrimitiveValue* newValue = toCSSPrimitiveValue(parsed.get());
|
| // TODO(fs): Enable calc for SVG lengths
|
| if (newValue->isCalculated() || !isSupportedCSSUnitType(newValue->typeWithCalcResolved()))
|
| - return SVGParseStatus::ParsingFailed;
|
| + return SVGParseStatus::ExpectedLength;
|
|
|
| m_value = newValue;
|
| return SVGParseStatus::NoError;
|
|
|