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

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

Issue 1401363003: Rename DisplayItemList to PaintController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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/TableCellPainterTest.cpp
diff --git a/third_party/WebKit/Source/core/paint/TableCellPainterTest.cpp b/third_party/WebKit/Source/core/paint/TableCellPainterTest.cpp
index 5fce23ab7a3d1ff89d5c5ef2420913353dfe73c8..353abc1f0d7408228d23672b04224dbe10a90866 100644
--- a/third_party/WebKit/Source/core/paint/TableCellPainterTest.cpp
+++ b/third_party/WebKit/Source/core/paint/TableCellPainterTest.cpp
@@ -4,13 +4,13 @@
#include "config.h"
-#include "core/paint/DisplayItemListPaintTest.h"
+#include "core/paint/PaintControllerPaintTest.h"
#include "core/paint/PaintLayerPainter.h"
#include "platform/graphics/GraphicsContext.h"
namespace blink {
-using TableCellPainterTest = DisplayItemListPaintTest;
+using TableCellPainterTest = PaintControllerPaintTest;
// TODO(wangxianzhu): Create a version for slimming paint v2 when it supports interest rect
TEST_F(TableCellPainterTest, TableCellBackgroundInterestRect)
@@ -31,20 +31,20 @@ TEST_F(TableCellPainterTest, TableCellBackgroundInterestRect)
LayoutObject& cell1 = *document().getElementById("cell1")->layoutObject();
LayoutObject& cell2 = *document().getElementById("cell2")->layoutObject();
- GraphicsContext context(&rootDisplayItemList());
+ GraphicsContext context(&rootPaintController());
PaintLayerPaintingInfo paintingInfo(&rootLayer, LayoutRect(0, 0, 200, 200), GlobalPaintNormalPhase, LayoutSize());
PaintLayerPainter(rootLayer).paintLayerContents(&context, paintingInfo, PaintLayerPaintingCompositingAllPhases);
- rootDisplayItemList().commitNewDisplayItems();
+ rootPaintController().commitNewDisplayItems();
- EXPECT_DISPLAY_LIST(rootDisplayItemList().displayItems(), 2,
+ EXPECT_DISPLAY_LIST(rootPaintController().displayItems(), 2,
TestDisplayItem(layoutView, DisplayItem::BoxDecorationBackground),
TestDisplayItem(cell1, DisplayItem::TableCellBackgroundFromRow));
PaintLayerPaintingInfo paintingInfo1(&rootLayer, LayoutRect(0, 300, 200, 200), GlobalPaintNormalPhase, LayoutSize());
PaintLayerPainter(rootLayer).paintLayerContents(&context, paintingInfo1, PaintLayerPaintingCompositingAllPhases);
- rootDisplayItemList().commitNewDisplayItems();
+ rootPaintController().commitNewDisplayItems();
- EXPECT_DISPLAY_LIST(rootDisplayItemList().displayItems(), 2,
+ EXPECT_DISPLAY_LIST(rootPaintController().displayItems(), 2,
TestDisplayItem(layoutView, DisplayItem::BoxDecorationBackground),
TestDisplayItem(cell2, DisplayItem::TableCellBackgroundFromRow));
}
« no previous file with comments | « third_party/WebKit/Source/core/paint/ScrollRecorder.cpp ('k') | third_party/WebKit/Source/core/paint/Transform3DRecorder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698