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

Unified Diff: third_party/WebKit/Source/core/paint/PaintInvalidator.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/PaintInvalidator.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp b/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
index 9982e8a03fa82f724ad7bf3b25c33e0bfe9c0ef2..8756306ee433056fc3d6e475a40672de6e7f1741 100644
--- a/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
@@ -214,11 +214,8 @@ void PaintInvalidator::updatePaintingLayer(const LayoutObject& object,
context.paintingLayer->setNeedsPaintPhaseDescendantBlockBackgrounds();
}
- if (object.isTable()) {
- const LayoutTable& table = toLayoutTable(object);
- if (table.collapseBorders() && !table.collapsedBorders().isEmpty())
- context.paintingLayer->setNeedsPaintPhaseDescendantBlockBackgrounds();
- }
+ if (object.isTable() && toLayoutTable(object).hasCollapsedBorders())
+ context.paintingLayer->setNeedsPaintPhaseDescendantBlockBackgrounds();
}
namespace {
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTableSection.cpp ('k') | third_party/WebKit/Source/core/paint/TableCellPainter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698