DescriptionFixed clip resize for document.rootScroller with inertTopControls
This fixes the issue where -- with a non default document.rootScroller and
inertTopControls on -- hiding the top controls would not expand the clip
vertically. This resulted in a white rect at the bottom of the screen.
With inertTopControls off, the document.rootScroller's LayoutBox always resizes
to the viewport size as a result of layout. Now that inertTopControls is
becoming the default , we can no longer rely on layout resizing the
rootScroller's LayoutObject - and thus its clipping layer. This isn't a
problem for the default rootScroller since that's the layoutView. Its
clipping rect is the FrameView which is resized as a result of top control
movement.
This patch extends the URL bar clip resize behavior to arbitrary rootScroller
elements. The PaintLayer that contains the *global* rootScroller is marked as
such. Both the PaintLayerCompositor (for iframes and the root frame) and
GraphicsLayerUpdater (for all other scrollers) inspect this bit and use the
root FrameView's size to set the size for its clipping layer.
BUG=505516
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
Committed: https://crrev.com/7ab964b30f73e3507ac3a424f56b1a9101b9bca3
Cr-Commit-Position: refs/heads/master@{#434348}
Patch Set 1 #Patch Set 2 : +Test #
Total comments: 1
Patch Set 3 : Fixed issues + Rebase #
Total comments: 16
Patch Set 4 : Rebase #Patch Set 5 : Addressed feedback #
Total comments: 2
Patch Set 6 : Address comment #Patch Set 7 : Fixed typo #Depends on Patchset: Messages
Total messages: 62 (42 generated)
|