Update compositing inputs on scrolling root layer
Layers need to be checked for paint order and overlap with composited layers to determine if they too must be composited. This is called overlap testing and happens in a compositing update if the compositing inputs are marked as dirty. Scrolling normally doesn't dirty compositing inputs but viewport scrolling is special if it has fixed layers. This is because scrolling the viewport can change what fixed layers overlap, unlike other content on the page which scrolls together. Before root-layer-scrolling, the LocalFrameView would do this in LocalFrameView::UpdateLayersAndCompositingAfterScrollIfNeeded. With root-layer-scrolling, the top PaintLayerScrollableArea handles viewport scrolling. This patch simply copies that behavior from LocalFrameView to PaintLayerScrollableArea. Bug: 776969 Cq-Include-Trybots: master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Change-Id: I0cc6062caded3c42eb0febb48c391a1fe4af54bf Reviewed-on: https://chromium-review.googlesource.com/754346Reviewed-by:Steve Kobes <skobes@chromium.org> Commit-Queue: David Bokan <bokan@chromium.org> Cr-Commit-Position: refs/heads/master@{#518444}
Showing
Please register or sign in to comment