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

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

Issue 1193433004: Blink-side contiguous allocation of display items. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Minor tweaks to make reviewing easier 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/LayoutObjectDrawingRecorderTest.cpp
diff --git a/Source/core/paint/LayoutObjectDrawingRecorderTest.cpp b/Source/core/paint/LayoutObjectDrawingRecorderTest.cpp
index 104f075d45d39c4af10c38451fcb240d08608eb6..7d61195b282983b85c9cb044f27684ac3985bce0 100644
--- a/Source/core/paint/LayoutObjectDrawingRecorderTest.cpp
+++ b/Source/core/paint/LayoutObjectDrawingRecorderTest.cpp
@@ -68,12 +68,12 @@ void drawRect(GraphicsContext& context, LayoutView& layoutView, PaintPhase phase
context.drawRect(rect);
}
-bool isDrawing(const DisplayItems::ItemHandle& item)
+bool isDrawing(const DisplayItem& item)
{
return DisplayItem::isDrawingType(item.type());
}
-bool isCached(const DisplayItems::ItemHandle& item)
+bool isCached(const DisplayItem& item)
{
return DisplayItem::isCachedType(item.type());
}
@@ -89,7 +89,7 @@ TEST_F(LayoutObjectDrawingRecorderTest, Nothing)
EXPECT_EQ((size_t)1, rootDisplayItemList().displayItems().size());
const auto& item = rootDisplayItemList().displayItems()[0];
ASSERT_TRUE(isDrawing(item));
- EXPECT_FALSE(item.picture());
+ EXPECT_FALSE(static_cast<const DrawingDisplayItem&>(item).picture());
}
TEST_F(LayoutObjectDrawingRecorderTest, Rect)

Powered by Google App Engine
This is Rietveld 408576698