| 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 79777cffaf1d34fb2e44eedef1cd7a4609032a25..1ee5b2d22a5a7dec2d091f2c86020a1f9f2018db 100644
|
| --- a/third_party/WebKit/Source/core/layout/compositing/CompositingReasonFinder.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/compositing/CompositingReasonFinder.cpp
|
| @@ -194,7 +194,7 @@ bool CompositingReasonFinder::requiresCompositingForScrollDependentPosition(
|
| // Don't promote fixed position elements that are descendants of a non-view
|
| // container, e.g. transformed elements. They will stay fixed wrt the
|
| // container rather than the enclosing frame.
|
| - if (layer->scrollsWithViewport())
|
| + if (layer->sticksToViewport())
|
| return m_layoutView.frameView()->isScrollable();
|
| return layer->layoutObject()->style()->position() == StickyPosition &&
|
| layer->ancestorOverflowLayer()->scrollsOverflow();
|
|
|