Chromium Code Reviews
Help | Chromium Project | Gerrit Changes | Sign in
(26)

Issue 1192433010: Use Android's "scroll focused node into view" path on all platforms (Closed)

Created:
4 years, 10 months ago by bokan
Modified:
4 years, 10 months ago
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Use 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+151 lines, -110 lines) Patch
M Source/web/WebViewImpl.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebViewImpl.cpp View 1 chunk +31 lines, -45 lines 0 comments Download
M Source/web/tests/WebFrameTest.cpp View 1 7 chunks +119 lines, -64 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
bokan
ptal.
4 years, 10 months ago (2015-06-17 20:51:24 UTC) #2
aelias_OOO_until_Jul13
Looks fine. I'm glad to see the platforms unified here. I think your description should ...
4 years, 10 months ago (2015-06-17 21:18:22 UTC) #3
bokan
On 2015/06/17 21:18:22, aelias wrote: > Looks fine. I'm glad to see the platforms unified ...
4 years, 10 months ago (2015-06-18 16:25:21 UTC) #4
aelias_OOO_until_Jul13
lgtm
4 years, 10 months ago (2015-06-18 18:30:22 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1192433010/20001
4 years, 10 months ago (2015-06-19 14:35:39 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/59784)
4 years, 10 months ago (2015-06-19 15:49:03 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1192433010/20001
4 years, 10 months ago (2015-06-19 15:49:55 UTC) #11
commit-bot: I haz the power
4 years, 10 months ago (2015-06-19 16:37:33 UTC) #12
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=197484

Powered by Google App Engine
This is Rietveld 408576698