OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "core/paint/PaintControllerPaintTest.h" | 5 #include "core/paint/PaintControllerPaintTest.h" |
6 #include "core/paint/PaintLayerPainter.h" | 6 #include "core/paint/PaintLayerPainter.h" |
7 | 7 |
8 namespace blink { | 8 namespace blink { |
9 | 9 |
10 using TableCellPainterTest = PaintControllerPaintTest; | 10 using TableCellPainterTest = PaintControllerPaintTest; |
(...skipping 13 matching lines...) Expand all Loading... |
24 | 24 |
25 LayoutView& layoutView = *document().layoutView(); | 25 LayoutView& layoutView = *document().layoutView(); |
26 LayoutObject& cell1 = *document().getElementById("cell1")->layoutObject(); | 26 LayoutObject& cell1 = *document().getElementById("cell1")->layoutObject(); |
27 LayoutObject& cell2 = *document().getElementById("cell2")->layoutObject(); | 27 LayoutObject& cell2 = *document().getElementById("cell2")->layoutObject(); |
28 | 28 |
29 rootPaintController().invalidateAll(); | 29 rootPaintController().invalidateAll(); |
30 updateLifecyclePhasesBeforePaint(); | 30 updateLifecyclePhasesBeforePaint(); |
31 IntRect interestRect(0, 0, 200, 200); | 31 IntRect interestRect(0, 0, 200, 200); |
32 paint(&interestRect); | 32 paint(&interestRect); |
33 | 33 |
34 EXPECT_DISPLAY_LIST(rootPaintController().displayItemList(), 2, | 34 EXPECT_DISPLAY_LIST(rootPaintController().getDisplayItemList(), 2, |
35 TestDisplayItem(layoutView, DisplayItem::DocumentBackground), | 35 TestDisplayItem(layoutView, DisplayItem::DocumentBackground), |
36 TestDisplayItem(cell1, DisplayItem::TableCellBackgroundFromRow)); | 36 TestDisplayItem(cell1, DisplayItem::TableCellBackgroundFromRow)); |
37 | 37 |
38 updateLifecyclePhasesBeforePaint(); | 38 updateLifecyclePhasesBeforePaint(); |
39 interestRect = IntRect(0, 300, 200, 1000); | 39 interestRect = IntRect(0, 300, 200, 1000); |
40 paint(&interestRect); | 40 paint(&interestRect); |
41 | 41 |
42 EXPECT_DISPLAY_LIST(rootPaintController().displayItemList(), 2, | 42 EXPECT_DISPLAY_LIST(rootPaintController().getDisplayItemList(), 2, |
43 TestDisplayItem(layoutView, DisplayItem::DocumentBackground), | 43 TestDisplayItem(layoutView, DisplayItem::DocumentBackground), |
44 TestDisplayItem(cell2, DisplayItem::TableCellBackgroundFromRow)); | 44 TestDisplayItem(cell2, DisplayItem::TableCellBackgroundFromRow)); |
45 } | 45 } |
46 | 46 |
47 } // namespace blink | 47 } // namespace blink |
OLD | NEW |