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

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

Issue 2051333005: Let FrameView track object paint invalidations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@TrackInvalidation
Patch Set: NeedsRebaseline Created 4 years, 6 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
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 6febb8197d75b049dc4d25fa852f59efa1fa805f..8d24d0150c6dd72b5d9233edc680b170815e92e2 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTable.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTable.cpp
@@ -1449,7 +1449,7 @@ void LayoutTable::invalidatePaintOfSubtreesIfNeeded(const PaintInvalidationState
// Table cells paint container's background on the container's backing instead of its own (if any),
// so we must invalidate it by the containers.
if (section->backgroundChangedSinceLastPaintInvalidation()) {
- section->invalidateDisplayItemClient(*cell);
+ section->slowSetPaintingLayerNeedsRepaintAndInvalidateDisplayItemClient(*cell, PaintInvalidationStyleChange);
invalidated = true;
} else if (hasColChangedBackground) {
ColAndColGroup colAndColGroup = colElementAtAbsoluteColumn(cell->absoluteColumnIndex());
@@ -1457,12 +1457,12 @@ void LayoutTable::invalidatePaintOfSubtreesIfNeeded(const PaintInvalidationState
LayoutTableCol* columnGroup = colAndColGroup.colgroup;
if ((columnGroup && columnGroup->backgroundChangedSinceLastPaintInvalidation())
|| (column && column->backgroundChangedSinceLastPaintInvalidation())) {
- section->invalidateDisplayItemClient(*cell);
+ section->slowSetPaintingLayerNeedsRepaintAndInvalidateDisplayItemClient(*cell, PaintInvalidationStyleChange);
invalidated = true;
}
}
if ((!invalidated || row->hasSelfPaintingLayer()) && row->backgroundChangedSinceLastPaintInvalidation())
- row->invalidateDisplayItemClient(*cell);
+ row->slowSetPaintingLayerNeedsRepaintAndInvalidateDisplayItemClient(*cell, PaintInvalidationStyleChange);
}
}
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutScrollbar.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutTableCell.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698