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

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

Issue 2515573002: Fix painting background for composited table cells in a non-composited row. (Closed)
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/paint/TableCellPainter.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/paint/TablePaintInvalidator.cpp
diff --git a/third_party/WebKit/Source/core/paint/TablePaintInvalidator.cpp b/third_party/WebKit/Source/core/paint/TablePaintInvalidator.cpp
index ae42aec7653bb485b37f094488470f9829c2f779..c71d27343766b3cb8200b9cddc2856ad8a228fee 100644
--- a/third_party/WebKit/Source/core/paint/TablePaintInvalidator.cpp
+++ b/third_party/WebKit/Source/core/paint/TablePaintInvalidator.cpp
@@ -50,6 +50,7 @@ PaintInvalidationReason TablePaintInvalidator::invalidatePaintIfNeeded() {
continue;
for (LayoutTableCell* cell = row->firstCell(); cell;
cell = cell->nextCell()) {
+ cell->ensureIsReadyForPaintInvalidation();
bool invalidated = false;
// Table cells paint container's background on the container's backing
// instead of its own (if any), so we must invalidate it by the
@@ -57,7 +58,8 @@ PaintInvalidationReason TablePaintInvalidator::invalidatePaintIfNeeded() {
if (section->backgroundChangedSinceLastPaintInvalidation()) {
sectionInvalidator
.slowSetPaintingLayerNeedsRepaintAndInvalidateDisplayItemClient(
- *cell, PaintInvalidationStyleChange);
+ cell->backgroundDisplayItemClient(),
+ PaintInvalidationStyleChange);
invalidated = true;
} else if (hasColChangedBackground) {
LayoutTable::ColAndColGroup colAndColGroup =
@@ -70,15 +72,18 @@ PaintInvalidationReason TablePaintInvalidator::invalidatePaintIfNeeded() {
column->backgroundChangedSinceLastPaintInvalidation())) {
sectionInvalidator
.slowSetPaintingLayerNeedsRepaintAndInvalidateDisplayItemClient(
- *cell, PaintInvalidationStyleChange);
+ cell->backgroundDisplayItemClient(),
+ PaintInvalidationStyleChange);
invalidated = true;
}
}
if ((!invalidated || row->hasSelfPaintingLayer()) &&
- row->backgroundChangedSinceLastPaintInvalidation())
+ row->backgroundChangedSinceLastPaintInvalidation()) {
ObjectPaintInvalidator(*row)
.slowSetPaintingLayerNeedsRepaintAndInvalidateDisplayItemClient(
- *cell, PaintInvalidationStyleChange);
+ cell->backgroundDisplayItemClient(),
+ PaintInvalidationStyleChange);
+ }
}
}
}
« no previous file with comments | « third_party/WebKit/Source/core/paint/TableCellPainter.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698