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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTable.cpp

Issue 1925703003: Set needsPaintPhaseDescendantBlockBackgrounds if a table has collapsed borders (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a dynamic test Created 4 years, 8 months 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/PaintInfo.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/LayoutTable.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTable.cpp b/third_party/WebKit/Source/core/layout/LayoutTable.cpp
index c792917d29ab20c6786f14e074ef0461765cda50..09029ec3581c63ffeb171f64f271aa0d4756f80c 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTable.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTable.cpp
@@ -1420,6 +1420,9 @@ PaintInvalidationReason LayoutTable::invalidatePaintIfNeeded(const PaintInvalida
// Information of collapsed borders doesn't affect layout and are for painting only.
// Do it now instead of during painting to invalidate table cells if needed.
recalcCollapsedBordersIfNeeded();
+ if (collapseBorders() && !m_collapsedBorders.isEmpty())
+ paintInvalidationState.enclosingSelfPaintingLayer(*this).setNeedsPaintPhaseDescendantBlockBackgrounds();
+
return LayoutBlock::invalidatePaintIfNeeded(paintInvalidationState);
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/PaintInfo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698