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

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

Issue 2469903002: Use appropriate background object visual rect for composited table cell backgrounds. (Closed)
Patch Set: Include row background client when invalidating. 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
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..ce61c480545f9a7baf63bd7e3b701514a6bc76ff 100644
--- a/third_party/WebKit/Source/core/paint/TablePaintInvalidator.cpp
+++ b/third_party/WebKit/Source/core/paint/TablePaintInvalidator.cpp
@@ -75,10 +75,17 @@ PaintInvalidationReason TablePaintInvalidator::invalidatePaintIfNeeded() {
}
}
if ((!invalidated || row->hasSelfPaintingLayer()) &&
- row->backgroundChangedSinceLastPaintInvalidation())
- ObjectPaintInvalidator(*row)
+ row->backgroundChangedSinceLastPaintInvalidation()) {
+ ObjectPaintInvalidator invalidator = ObjectPaintInvalidator(*row);
+ invalidator
.slowSetPaintingLayerNeedsRepaintAndInvalidateDisplayItemClient(
*cell, PaintInvalidationStyleChange);
+ if (cell->usesCompositedCellDisplayItemClients()) {
+ invalidator.invalidateDisplayItemClient(
+ *cell->rowBackgroundDisplayItemClient(),
+ PaintInvalidationStyleChange);
+ }
+ }
}
}
}

Powered by Google App Engine
This is Rietveld 408576698