| 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 eb915deaae0bfbcfba087d24b208e0c90dc2c5fa..b3c29143acc73b1f878c105add5ef1a1f7b1e6e6 100644
|
| --- a/third_party/WebKit/Source/core/svg/SVGLength.cpp
|
| +++ b/third_party/WebKit/Source/core/svg/SVGLength.cpp
|
| @@ -134,11 +134,11 @@ SVGParsingError SVGLength::setValueAsString(const String& string)
|
| }
|
|
|
| CSSParserContext svgParserContext(SVGAttributeMode, nullptr);
|
| - CSSValue* parsed = CSSParser::parseSingleValue(CSSPropertyX, string, svgParserContext);
|
| + const CSSValue* parsed = CSSParser::parseSingleValue(CSSPropertyX, string, svgParserContext);
|
| if (!parsed || !parsed->isPrimitiveValue())
|
| return SVGParseStatus::ExpectedLength;
|
|
|
| - CSSPrimitiveValue* newValue = toCSSPrimitiveValue(parsed);
|
| + const CSSPrimitiveValue* newValue = toCSSPrimitiveValue(parsed);
|
| // TODO(fs): Enable calc for SVG lengths
|
| if (newValue->isCalculated() || !isSupportedCSSUnitType(newValue->typeWithCalcResolved()))
|
| return SVGParseStatus::ExpectedLength;
|
|
|