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

Unified Diff: third_party/WebKit/Source/core/layout/compositing/CompositingRequirementsUpdater.cpp

Issue 2382563002: Revert changes is the use of CompositingReasonOutOfFlowClipping
Patch Set: Created 4 years, 3 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/compositing/CompositingRequirementsUpdater.cpp
diff --git a/third_party/WebKit/Source/core/layout/compositing/CompositingRequirementsUpdater.cpp b/third_party/WebKit/Source/core/layout/compositing/CompositingRequirementsUpdater.cpp
index e30b112a0200fc1eb6328806e5164ece24a8b69e..5863caad98d88f82e57f2085f61a1f5e2343c3d2 100644
--- a/third_party/WebKit/Source/core/layout/compositing/CompositingRequirementsUpdater.cpp
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositingRequirementsUpdater.cpp
@@ -279,7 +279,7 @@ void CompositingRequirementsUpdater::updateRecursive(PaintLayer* ancestorLayer,
for (size_t i = 0; i < unclippedDescendantsToRemove.size(); i++)
unclippedDescendants.remove(unclippedDescendantsToRemove.at(unclippedDescendantsToRemove.size() - i - 1));
- if (layer->clipParent()) {
+ if (reasonsToComposite & CompositingReasonOutOfFlowClipping) {
// TODO(schenney): We only need to promote when the clipParent is not a descendant of the ancestor scroller,
// which we do not check for here. Hence we might be promoting needlessly.
unclippedDescendants.append(layer);

Powered by Google App Engine
This is Rietveld 408576698