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

Unified Diff: third_party/WebKit/Source/core/layout/compositing/CompositingReasonFinder.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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/compositing/CompositingRequirementsUpdater.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/compositing/CompositingReasonFinder.cpp
diff --git a/third_party/WebKit/Source/core/layout/compositing/CompositingReasonFinder.cpp b/third_party/WebKit/Source/core/layout/compositing/CompositingReasonFinder.cpp
index 51777eb381099c656b3338a2eac962f1aff9c8df..4de0e3d26e9cb3f77802a53d2f4148ee3084b1af 100644
--- a/third_party/WebKit/Source/core/layout/compositing/CompositingReasonFinder.cpp
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositingReasonFinder.cpp
@@ -137,8 +137,13 @@ CompositingReasons CompositingReasonFinder::nonStyleDeterminedDirectReasons(cons
CompositingReasons directReasons = CompositingReasonNone;
LayoutObject* layoutObject = layer->layoutObject();
- if (layer->needsCompositedScrolling())
+ bool checkForClipParent = m_compositingTriggers & OverflowScrollTrigger;
+ if (layer->needsCompositedScrolling()) {
+ checkForClipParent = true;
directReasons |= CompositingReasonOverflowScrollingTouch;
+ }
+ if (checkForClipParent && layer->clipParent())
flackr 2016/09/29 14:21:20 To restore the original logic we only need to chec
Stephen Chennney 2016/09/30 17:12:25 Still working on this, but ... On 2016/09/29 14:2
flackr 2016/09/30 20:13:16 +vollick, I'm having a hard time putting together
Ian Vollick 2016/10/03 21:09:15 Some background on clip parent (because it's confu
+ directReasons |= CompositingReasonOutOfFlowClipping;
// Composite |layer| if it is inside of an ancestor scrolling layer, but that
// scrolling layer is not on the stacking context ancestor chain of |layer|.
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/compositing/CompositingRequirementsUpdater.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698