| 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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 // Intersects the overflowing part of cell but not border box. | 182 // Intersects the overflowing part of cell but not border box. |
| 183 IntRect interestRect(0, 0, 100, 100); | 183 IntRect interestRect(0, 0, 100, 100); |
| 184 paint(&interestRect); | 184 paint(&interestRect); |
| 185 | 185 |
| 186 // We should paint all display items of cell. | 186 // We should paint all display items of cell. |
| 187 EXPECT_DISPLAY_LIST( | 187 EXPECT_DISPLAY_LIST( |
| 188 rootPaintController().getDisplayItemList(), 4, | 188 rootPaintController().getDisplayItemList(), 4, |
| 189 TestDisplayItem(layoutView, DisplayItem::kDocumentBackground), | 189 TestDisplayItem(layoutView, DisplayItem::kDocumentBackground), |
| 190 TestDisplayItem(cell, DisplayItem::kBoxDecorationBackground), | 190 TestDisplayItem(cell, DisplayItem::kBoxDecorationBackground), |
| 191 TestDisplayItem(cell, DisplayItem::kTableCollapsedBorderLast), | 191 TestDisplayItem(cell, DisplayItem::kTableCollapsedBorderLast), |
| 192 TestDisplayItem(cell, DisplayItem::paintPhaseToDrawingType( | 192 TestDisplayItem( |
| 193 PaintPhaseSelfOutlineOnly))); | 193 cell, |
| 194 DisplayItem::paintPhaseToDrawingType(PaintPhaseSelfOutlineOnly))); |
| 194 } | 195 } |
| 195 | 196 |
| 196 } // namespace blink | 197 } // namespace blink |
| OLD | NEW |