DescriptionMake rootScroller the layout viewport.
In order to properly support pinch zoom and other viewport scrolling actions, we
need to promote the rootScroller element's ScrollableArea to be the layout
viewport. This is primarily accomplished by replacing the layout viewport in
RootFrameViewport.
I've moved the ViewportScrollCallback creation to happen at Document attachment
time. This is necessary since the FrameView may not have fully initialized its
ScrollableArea until this happens. Notably, this is needed for
root-layer-scrolls since the ScrollableArea for a FrameView will be the
LayoutView's PaintLayerScrollableArea which won't be initialized until
attachment.
I've also updated the set-root-scroller test to break up the one big test and
replace it with many small ones.
BUG=505516
Committed: https://crrev.com/de92895a8fd3c8f3719b8875651cffc7ebebd3e7
Cr-Commit-Position: refs/heads/master@{#404250}
Patch Set 1 #Patch Set 2 : Replace the layout viewport with the root scroller #Patch Set 3 : Replace the layout viewport with the root scroller #
Total comments: 5
Patch Set 4 : Rebase + comment fix in test #Depends on Patchset: Dependent Patchsets: Messages
Total messages: 21 (8 generated)
|