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

Unified Diff: Source/core/paint/LayerClipRecorderTest.cpp

Issue 1157653005: Move use of DisplayItemList's vector behind an explicit DisplayItems interface. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: DisplayItems must be noncopyable (Windows build fix) Created 5 years, 6 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/paint/LayerClipRecorderTest.cpp
diff --git a/Source/core/paint/LayerClipRecorderTest.cpp b/Source/core/paint/LayerClipRecorderTest.cpp
index 87e3679f159f7a42d1b85374aebb020bcc7060e5..77449e5af986a5fb3841d9dbd2740104746f02c0 100644
--- a/Source/core/paint/LayerClipRecorderTest.cpp
+++ b/Source/core/paint/LayerClipRecorderTest.cpp
@@ -67,9 +67,9 @@ TEST_F(LayerClipRecorderTest, Single)
drawRectInClip(context, layoutView(), PaintPhaseForeground, bound);
rootDisplayItemList().commitNewDisplayItems();
EXPECT_EQ((size_t)3, rootDisplayItemList().displayItems().size());
- EXPECT_TRUE(rootDisplayItemList().displayItems()[0]->isClip());
- EXPECT_TRUE(rootDisplayItemList().displayItems()[1]->isDrawing());
- EXPECT_TRUE(rootDisplayItemList().displayItems()[2]->isEndClip());
+ EXPECT_TRUE(DisplayItem::isClipType(rootDisplayItemList().displayItems()[0].type()));
+ EXPECT_TRUE(DisplayItem::isDrawingType(rootDisplayItemList().displayItems()[1].type()));
+ EXPECT_TRUE(DisplayItem::isEndClipType(rootDisplayItemList().displayItems()[2].type()));
}
TEST_F(LayerClipRecorderTest, Empty)

Powered by Google App Engine
This is Rietveld 408576698