Chromium Code Reviews| 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|. |