DescriptionUse Android's "scroll focused node into view" path on all platforms
Android and desktop took two different paths to bring a focused editable text
box into view. Desktop would instantaneously set the scroll offset using
ScrollableArea::scrollIntoRect while Android uses a compositor
PageScaleAnimation to smoothly scale and scroll the viewport to fit the
textbox into the viewport.
This patch makes desktop use the Android path but without the zoom
functionality. This unifies the code paths and gives a nicer experience as we
get a smooth scroll rather than an instantaneous jump.
This patch also cleans up the Android path to use the coordinate space
conversion methods provided by PinchViewport and FrameView, rather than doing it
manually.
BUG=484733
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197484
Patch Set 1 #Patch Set 2 : Added test #
Messages
Total messages: 12 (4 generated)
|
|||||||||||||||||||||||||||||||||||||