diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/core/paint/table_painter_test.cc')
-rw-r--r-- | chromium/third_party/blink/renderer/core/paint/table_painter_test.cc | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/chromium/third_party/blink/renderer/core/paint/table_painter_test.cc b/chromium/third_party/blink/renderer/core/paint/table_painter_test.cc index 91436bbf1db..f63f5e08aec 100644 --- a/chromium/third_party/blink/renderer/core/paint/table_painter_test.cc +++ b/chromium/third_party/blink/renderer/core/paint/table_painter_test.cc @@ -35,7 +35,8 @@ TEST_P(TablePainterTest, Background) { LayoutObject& row2 = *GetLayoutObjectByElementId("row2"); InvalidateAll(RootPaintController()); - GetDocument().View()->UpdateAllLifecyclePhasesExceptPaint(); + GetDocument().View()->UpdateAllLifecyclePhasesExceptPaint( + DocumentUpdateReason::kTest); Paint(IntRect(0, 0, 200, 200)); EXPECT_THAT( @@ -44,7 +45,8 @@ TEST_P(TablePainterTest, Background) { DisplayItem::kDocumentBackground), IsSameId(&row1, DisplayItem::kBoxDecorationBackground))); - GetDocument().View()->UpdateAllLifecyclePhasesExceptPaint(); + GetDocument().View()->UpdateAllLifecyclePhasesExceptPaint( + DocumentUpdateReason::kTest); Paint(IntRect(0, 300, 200, 1000)); EXPECT_THAT( @@ -77,7 +79,8 @@ TEST_P(TablePainterTest, BackgroundWithCellSpacing) { LayoutObject& cell2 = *GetLayoutObjectByElementId("cell2"); InvalidateAll(RootPaintController()); - GetDocument().View()->UpdateAllLifecyclePhasesExceptPaint(); + GetDocument().View()->UpdateAllLifecyclePhasesExceptPaint( + DocumentUpdateReason::kTest); // Intersects cell1 and the spacing between cell1 and cell2. Paint(IntRect(0, 200, 200, 150)); @@ -88,7 +91,8 @@ TEST_P(TablePainterTest, BackgroundWithCellSpacing) { IsSameId(&row1, DisplayItem::kBoxDecorationBackground), IsSameId(&cell1, DisplayItem::kBoxDecorationBackground))); - GetDocument().View()->UpdateAllLifecyclePhasesExceptPaint(); + GetDocument().View()->UpdateAllLifecyclePhasesExceptPaint( + DocumentUpdateReason::kTest); // Intersects the spacing only. Paint(IntRect(0, 250, 100, 100)); @@ -98,7 +102,8 @@ TEST_P(TablePainterTest, BackgroundWithCellSpacing) { DisplayItem::kDocumentBackground), IsSameId(&row1, DisplayItem::kBoxDecorationBackground))); - GetDocument().View()->UpdateAllLifecyclePhasesExceptPaint(); + GetDocument().View()->UpdateAllLifecyclePhasesExceptPaint( + DocumentUpdateReason::kTest); // Intersects cell2 only. Paint(IntRect(0, 350, 200, 150)); @@ -130,7 +135,8 @@ TEST_P(TablePainterTest, BackgroundInSelfPaintingRow) { LayoutObject& row = *GetLayoutObjectByElementId("row"); InvalidateAll(RootPaintController()); - GetDocument().View()->UpdateAllLifecyclePhasesExceptPaint(); + GetDocument().View()->UpdateAllLifecyclePhasesExceptPaint( + DocumentUpdateReason::kTest); // Intersects cell1 and the spacing between cell1 and cell2. Paint(IntRect(200, 0, 200, 200)); @@ -141,7 +147,8 @@ TEST_P(TablePainterTest, BackgroundInSelfPaintingRow) { IsSameId(&row, DisplayItem::kBoxDecorationBackground), IsSameId(&cell1, DisplayItem::kBoxDecorationBackground))); - GetDocument().View()->UpdateAllLifecyclePhasesExceptPaint(); + GetDocument().View()->UpdateAllLifecyclePhasesExceptPaint( + DocumentUpdateReason::kTest); // Intersects the spacing only. Paint(IntRect(300, 0, 100, 100)); @@ -149,7 +156,8 @@ TEST_P(TablePainterTest, BackgroundInSelfPaintingRow) { ElementsAre(IsSameId(&ViewScrollingBackgroundClient(), DisplayItem::kDocumentBackground))); - GetDocument().View()->UpdateAllLifecyclePhasesExceptPaint(); + GetDocument().View()->UpdateAllLifecyclePhasesExceptPaint( + DocumentUpdateReason::kTest); // Intersects cell2 only. Paint(IntRect(450, 0, 200, 200)); @@ -178,7 +186,8 @@ TEST_P(TablePainterTest, CollapsedBorderAndOverflow) { const LayoutNGTableCellInterface* cell = ToInterface<LayoutNGTableCellInterface>(cell_layout_object); InvalidateAll(RootPaintController()); - GetDocument().View()->UpdateAllLifecyclePhasesExceptPaint(); + GetDocument().View()->UpdateAllLifecyclePhasesExceptPaint( + DocumentUpdateReason::kTest); // Intersects the overflowing part of cell but not border box. Paint(IntRect(0, 0, 100, 100)); |