Chromium Code Reviews
DescriptionMake all gesture scrolls use customization path internally
This patch removes the physicalScroll code path in ScrollManager.
This means that all gesture scrolls are now taking the ScrollCustomization
path through scrolling; building a scroll chain, calling distribute and
apply scroll.
Some notable changes here:
iframes now also scroll like the main frame, using a ViewportScrollCallback
but without affecting top controls or overscroll.
The ScrollChain calculated in ScrollCustomization used to end on the
scrollingElement. It now terminates at the RootScroller. This is so that
1) the RootScroller API works as expected when the page sets a root
scroller and 2) if the scrollingElement is <body>, we still want to chain
the scroll up to the documentElement (assuming it's the root scroller)
since that'll actually scroll the frame and top controls.
Clear m_deltaConsumedForScrollSequence on GestureScrollBegin. Otherwise,
this doesn't get cleared during a fling gesture so a new scroll during
the fling will get dropped in the ScrollCustomization path.
BUG=620721
Committed: https://crrev.com/c81f2158da2b43ae5a8b0c5d0e0fcf3b5d2c8b98
Cr-Commit-Position: refs/heads/master@{#401997}
Patch Set 1 #Patch Set 2 : Gesture scrolls are now on scroll customization path #Patch Set 3 : Gesture scrolls are now on scroll customization path #Patch Set 4 : Gesture scrolls are now on scroll customization path #Patch Set 5 : Gesture scrolls are now on scroll customization path #Patch Set 6 : Gesture scrolls are now on scroll customization path #Patch Set 7 : Gesture scrolls are now on scroll customization path #
Total comments: 7
Patch Set 8 : Rebase #Patch Set 9 : Tim's review #Patch Set 10 : Disabled customization for wheel scrolls #Patch Set 11 : Rebase + Fix test #Messages
Total messages: 41 (19 generated)
|