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

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

Issue 2840143002: [cc] Change semantics of fixed-pos container layer
Patch Set: add back inner viewport container layer as fixed-pos container Created 3 years, 8 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/PaintLayerCompositor.cpp
diff --git a/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp b/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp
index 5bd2202e29af58b6b0d83f6cc720535872bd2d03..d1a163bc1aef3294b8118a93f560bd192d8c1574 100644
--- a/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp
+++ b/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp
@@ -1190,9 +1190,10 @@ void PaintLayerCompositor::EnsureRootLayer() {
container_layer_ = GraphicsLayer::Create(this);
scroll_layer_ = GraphicsLayer::Create(this);
if (ScrollingCoordinator* scrolling_coordinator =
- this->GetScrollingCoordinator())
+ this->GetScrollingCoordinator()) {
scrolling_coordinator->SetLayerIsContainerForFixedPositionLayers(
- scroll_layer_.get(), true);
+ container_layer_.get(), true);
+ }
// In RLS mode, LayoutView scrolling contents layer gets this element ID (in
// CompositedLayerMapping::updateElementIdAndCompositorMutableProperties).
« cc/test/layer_tree_test.cc ('K') | « third_party/WebKit/Source/core/frame/VisualViewport.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698