Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(197)

Unified Diff: third_party/WebKit/Source/core/svg/SVGLength.cpp

Issue 2038363002: Make CSSPropertyParser::parseSingleValue return a const CSSValue* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@_remove_const_cast_in_interpolation_type
Patch Set: Rebase Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698