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

Side by Side Diff: third_party/WebKit/Source/core/paint/TableCellPainterTest.cpp

Issue 1415143005: Preparation for enabling slimming paint synchronized painting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comments for the loop finding real root GraphicsLayer Created 5 years, 1 month 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 unified diff | Download patch
OLDNEW
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 "config.h" 5 #include "config.h"
6 6
7 #include "core/paint/PaintControllerPaintTest.h" 7 #include "core/paint/PaintControllerPaintTest.h"
8 #include "core/paint/PaintLayerPainter.h" 8 #include "core/paint/PaintLayerPainter.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 using TableCellPainterTest = PaintControllerPaintTest; 12 using TableCellPainterTest = PaintControllerPaintTest;
13 13
14 // TODO(wangxianzhu): Create a version for slimming paint v2 when it supports in terest rect
15 TEST_F(TableCellPainterTest, TableCellBackgroundInterestRect) 14 TEST_F(TableCellPainterTest, TableCellBackgroundInterestRect)
16 { 15 {
17 RuntimeEnabledFeatures::setSlimmingPaintSynchronizedPaintingEnabled(true); 16 RuntimeEnabledFeatures::setSlimmingPaintSynchronizedPaintingEnabled(true);
18 17
19 setBodyInnerHTML( 18 setBodyInnerHTML(
20 "<style>" 19 "<style>"
21 " td { width: 200px; height: 200px; border: none; }" 20 " td { width: 200px; height: 200px; border: none; }"
22 " tr { background-color: blue; }" 21 " tr { background-color: blue; }"
23 " table { border: none; border-spacing: 0; border-collapse: collapse; } " 22 " table { border: none; border-spacing: 0; border-collapse: collapse; } "
24 "</style>" 23 "</style>"
(...skipping 25 matching lines...) Expand all
50 commit(); 49 commit();
51 50
52 EXPECT_DISPLAY_LIST(rootPaintController().displayItemList(), 4, 51 EXPECT_DISPLAY_LIST(rootPaintController().displayItemList(), 4,
53 TestDisplayItem(layoutView, DisplayItem::BoxDecorationBackground), 52 TestDisplayItem(layoutView, DisplayItem::BoxDecorationBackground),
54 TestDisplayItem(rootLayer, subsequenceType), 53 TestDisplayItem(rootLayer, subsequenceType),
55 TestDisplayItem(cell2, DisplayItem::TableCellBackgroundFromRow), 54 TestDisplayItem(cell2, DisplayItem::TableCellBackgroundFromRow),
56 TestDisplayItem(rootLayer, endSubsequenceType)); 55 TestDisplayItem(rootLayer, endSubsequenceType));
57 } 56 }
58 57
59 } // namespace blink 58 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698