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

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

Issue 1315213002: (WIP) Paint invalidation for slimming paint v2 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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 | « Source/core/layout/LayoutTable.h ('k') | Source/core/paint/BlockPainter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutTable.cpp
diff --git a/Source/core/layout/LayoutTable.cpp b/Source/core/layout/LayoutTable.cpp
index da3ff14dfada3c142f76b33514eda5183e582e57..c648b09746806a2c80cbcf973cd1b394cd9715f6 100644
--- a/Source/core/layout/LayoutTable.cpp
+++ b/Source/core/layout/LayoutTable.cpp
@@ -1397,6 +1397,14 @@ PaintInvalidationReason LayoutTable::invalidatePaintIfNeeded(PaintInvalidationSt
return LayoutBlock::invalidatePaintIfNeeded(paintInvalidationState, paintInvalidationContainer);
}
+PaintInvalidationReason LayoutTable::invalidatePaintIfNeededForSlimmingPaintV2(const LayoutPoint& newPaintOffset)
+{
+ // 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();
+ return LayoutBlock::invalidatePaintIfNeededForSlimmingPaintV2(newPaintOffset);
+}
+
void LayoutTable::invalidatePaintOfSubtreesIfNeeded(PaintInvalidationState& childPaintInvalidationState)
{
if (RuntimeEnabledFeatures::slimmingPaintEnabled()) {
« no previous file with comments | « Source/core/layout/LayoutTable.h ('k') | Source/core/paint/BlockPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698