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

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

Issue 1774943003: blink: Rename platform/ methods to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-platform: rebase-yayyyyyyyy Created 4 years, 9 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/paint/LayerClipRecorderTest.cpp
diff --git a/third_party/WebKit/Source/core/paint/LayerClipRecorderTest.cpp b/third_party/WebKit/Source/core/paint/LayerClipRecorderTest.cpp
index d72f4836062b13b9c1f41734c6144d65f993f1d5..11538857455000c76dab1f170ea70eb78b2a9bfe 100644
--- a/third_party/WebKit/Source/core/paint/LayerClipRecorderTest.cpp
+++ b/third_party/WebKit/Source/core/paint/LayerClipRecorderTest.cpp
@@ -24,7 +24,7 @@ public:
protected:
LayoutView& layoutView() { return *m_layoutView; }
- PaintController& rootPaintController() { return layoutView().layer()->graphicsLayerBacking()->paintController(); }
+ PaintController& rootPaintController() { return layoutView().layer()->graphicsLayerBacking()->getPaintController(); }
private:
void SetUp() override
@@ -62,25 +62,25 @@ TEST_F(LayerClipRecorderTest, Single)
rootPaintController().invalidateAll();
GraphicsContext context(rootPaintController());
LayoutRect bound = layoutView().viewRect();
- EXPECT_EQ((size_t)0, rootPaintController().displayItemList().size());
+ EXPECT_EQ((size_t)0, rootPaintController().getDisplayItemList().size());
drawRectInClip(context, layoutView(), PaintPhaseForeground, bound);
rootPaintController().commitNewDisplayItems();
- EXPECT_EQ((size_t)3, rootPaintController().displayItemList().size());
- EXPECT_TRUE(DisplayItem::isClipType(rootPaintController().displayItemList()[0].getType()));
- EXPECT_TRUE(DisplayItem::isDrawingType(rootPaintController().displayItemList()[1].getType()));
- EXPECT_TRUE(DisplayItem::isEndClipType(rootPaintController().displayItemList()[2].getType()));
+ EXPECT_EQ((size_t)3, rootPaintController().getDisplayItemList().size());
+ EXPECT_TRUE(DisplayItem::isClipType(rootPaintController().getDisplayItemList()[0].getType()));
+ EXPECT_TRUE(DisplayItem::isDrawingType(rootPaintController().getDisplayItemList()[1].getType()));
+ EXPECT_TRUE(DisplayItem::isEndClipType(rootPaintController().getDisplayItemList()[2].getType()));
}
TEST_F(LayerClipRecorderTest, Empty)
{
rootPaintController().invalidateAll();
GraphicsContext context(rootPaintController());
- EXPECT_EQ((size_t)0, rootPaintController().displayItemList().size());
+ EXPECT_EQ((size_t)0, rootPaintController().getDisplayItemList().size());
drawEmptyClip(context, layoutView(), PaintPhaseForeground);
rootPaintController().commitNewDisplayItems();
- EXPECT_EQ((size_t)0, rootPaintController().displayItemList().size());
+ EXPECT_EQ((size_t)0, rootPaintController().getDisplayItemList().size());
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698