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

Unified Diff: third_party/WebKit/Source/core/css/parser/SizesCalcParserTest.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/css/parser/SizesCalcParserTest.cpp
diff --git a/third_party/WebKit/Source/core/css/parser/SizesCalcParserTest.cpp b/third_party/WebKit/Source/core/css/parser/SizesCalcParserTest.cpp
index c003c73d3a9551ff0053e4b6351eed59de156b4a..bb3f2c39891b3679caad7094fa0f404c0ccd06dd 100644
--- a/third_party/WebKit/Source/core/css/parser/SizesCalcParserTest.cpp
+++ b/third_party/WebKit/Source/core/css/parser/SizesCalcParserTest.cpp
@@ -23,8 +23,8 @@ struct TestCase {
static void verifyCSSCalc(String text, double value, bool valid, unsigned fontSize, unsigned viewportWidth, unsigned viewportHeight)
{
CSSLengthArray lengthArray;
- CSSValue* cssValue = CSSParser::parseSingleValue(CSSPropertyLeft, text);
- CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(cssValue);
+ const CSSValue* cssValue = CSSParser::parseSingleValue(CSSPropertyLeft, text);
+ const CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(cssValue);
if (primitiveValue)
primitiveValue->accumulateLengthArray(lengthArray);
else

Powered by Google App Engine
This is Rietveld 408576698