Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(313)

Issue 22527005: Fix pinch gestures with nonscrollable root layer. (Closed)

Created:
7 years, 4 months ago by aelias_OOO_until_Jul13
Modified:
7 years, 4 months ago
Reviewers:
jamesr
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, cc-bugs_chromium.org, jam, apatrick_chromium, wjmaclean
Visibility:
Public.

Description

Fix pinch gestures with nonscrollable root layer. If the root scroll layer is nonscrollable (particularly when fully zoomed out on a viewport-sized page), then ScrollIgnored is returned on ScrollBegin, but we still want to support the scrolling portion of pinch gestures. Fix this by forcing CurrentlyScrollingLayer to the root layer on pinch (which is also desirable so that the scroll portion doesn't go to sublayers anyway). Secondly, always call ScrollEnd so that the pinch-set CurrentlyScrollingLayer is cleared. New test case in LayerTreeHostImplTest.PinchGesture. NOTRY=true BUG=269669 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=216777

Patch Set 1 #

Patch Set 2 : Also update InputHandlerProxy tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -4 lines) Patch
M cc/trees/layer_tree_host_impl.cc View 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 11 chunks +43 lines, -2 lines 0 comments Download
M content/renderer/gpu/input_handler_proxy.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/gpu/input_handler_proxy_unittest.cc View 1 4 chunks +9 lines, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
aelias_OOO_until_Jul13
Hi James, small fix for a corner case.
7 years, 4 months ago (2013-08-08 06:47:23 UTC) #1
jamesr
lgtm
7 years, 4 months ago (2013-08-09 23:02:43 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aelias@chromium.org/22527005/4001
7 years, 4 months ago (2013-08-09 23:28:54 UTC) #3
commit-bot: I haz the power
7 years, 4 months ago (2013-08-09 23:33:00 UTC) #4
Message was sent while issue was closed.
Change committed as 216777

Powered by Google App Engine
This is Rietveld 408576698