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

Unified Diff: Source/core/css/parser/CSSPropertyParserTest.cpp

Issue 1164573002: CSSValue Immediates: Change CSSValue to an object instead of a pointer (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Some small fixes to (hopefully) fix some broken tests Created 5 years, 7 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: Source/core/css/parser/CSSPropertyParserTest.cpp
diff --git a/Source/core/css/parser/CSSPropertyParserTest.cpp b/Source/core/css/parser/CSSPropertyParserTest.cpp
index 4b19f349aee20d762eb7d5e316a7567b58a6cdc7..be2e5420298f2e84e42f85c455131b6419c092e4 100644
--- a/Source/core/css/parser/CSSPropertyParserTest.cpp
+++ b/Source/core/css/parser/CSSPropertyParserTest.cpp
@@ -16,7 +16,7 @@ static unsigned computeNumberOfTracks(CSSValueList* valueList)
{
unsigned numberOfTracks = 0;
for (auto& value : *valueList) {
- if (value->isGridLineNamesValue())
+ if (value.isGridLineNamesValue())
continue;
++numberOfTracks;
}
@@ -49,10 +49,10 @@ TEST(CSSPropertyParserTest, GridTrackLimits)
};
for (unsigned i = 0; i < WTF_ARRAY_LENGTH(testCases); ++i) {
- RefPtrWillBeRawPtr<CSSValue> value = CSSParser::parseSingleValue(testCases[i].propertyID, testCases[i].input);
+ NullableCSSValue value = CSSParser::parseSingleValue(testCases[i].propertyID, testCases[i].input);
ASSERT_TRUE(value);
ASSERT_TRUE(value->isValueList());
- EXPECT_EQ(computeNumberOfTracks(toCSSValueList(value.get())), testCases[i].output);
+ EXPECT_EQ(computeNumberOfTracks(toCSSValueList(value)), testCases[i].output);
}
}

Powered by Google App Engine
This is Rietveld 408576698