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

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

Issue 2502353003: Paint collapsed borders of a table as one display item (Closed)
Patch Set: - Created 4 years 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 1cd5830d4d7221e763c2ff1216c00aca7a140836..adce65d56936c5844337216f99c5d4cb57052b17 100644
--- a/third_party/WebKit/Source/core/paint/TableCellPainterTest.cpp
+++ b/third_party/WebKit/Source/core/paint/TableCellPainterTest.cpp
@@ -170,11 +170,12 @@ TEST_F(TableCellPainterTest, CollapsedBorderAndOverflow) {
"100px solid yellow; background: green; }"
" table { margin: 100px; border-collapse: collapse; }"
"</style>"
- "<table>"
+ "<table id='table'>"
" <tr><td id='cell'></td></tr>"
"</table>");
LayoutView& layoutView = *document().layoutView();
+ LayoutObject& table = *getLayoutObjectByElementId("table");
LayoutObject& cell = *getLayoutObjectByElementId("cell");
rootPaintController().invalidateAll();
@@ -188,7 +189,7 @@ TEST_F(TableCellPainterTest, CollapsedBorderAndOverflow) {
rootPaintController().getDisplayItemList(), 4,
TestDisplayItem(layoutView, DisplayItem::kDocumentBackground),
TestDisplayItem(cell, DisplayItem::kBoxDecorationBackground),
- TestDisplayItem(cell, DisplayItem::kTableCollapsedBorderLast),
+ TestDisplayItem(table, DisplayItem::kTableCollapsedBorders),
TestDisplayItem(cell, DisplayItem::paintPhaseToDrawingType(
PaintPhaseSelfOutlineOnly)));
}
« no previous file with comments | « third_party/WebKit/Source/core/paint/TableCellPainter.cpp ('k') | third_party/WebKit/Source/core/paint/TablePainter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698