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

Issue 784463002: Add initial CC support for scroll-blocks-on (Closed)

Created:
6 years ago by Rick Byers
Modified:
5 years, 10 months ago
CC:
ajuma, chromium-reviews, vollick1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add initial CC support for scroll-blocks-on When 'scroll-blocks-on: scroll-event' is applied anywhere in the scroll ancestor tree where is a scroll event handler, force the scroll to be executed on the main thread. Note that this is still experimental. We'll be at least adding a timeout mechanism to this to mitigate the risk of improper usage. When 'scroll-blocks-on: wheel-event' is NOT applied (it's on by default), ignore the existence of wheel event handlers (allowing scrolling to run freely on impl). When 'scroll-blocks-on: start-touch' is NOT applied (it's on by default), suppress sending touch events to blink. Eventually we'll make this smarter - sending async touch events that don't block scroll. Depends on blink change https://src.chromium.org/viewvc/blink?view=rev&revision=188230 BUG=347272 Committed: https://crrev.com/18779d82a7f4a3ca040f247c8454c16b7cfc235b Cr-Commit-Position: refs/heads/master@{#314765}

Patch Set 1 #

Patch Set 2 : Cleanup / fixes #

Patch Set 3 : Fix test build #

Patch Set 4 : Add all tests #

Patch Set 5 : Merge with trunk #

Total comments: 6

Patch Set 6 : jdduke CR feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+341 lines, -39 lines) Patch
M cc/blink/web_layer_impl.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M cc/blink/web_layer_impl.cc View 1 2 3 4 5 1 chunk +22 lines, -0 lines 0 comments Download
M cc/input/input_handler.h View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M cc/layers/layer.h View 1 2 3 4 3 chunks +5 lines, -0 lines 0 comments Download
M cc/layers/layer.cc View 1 2 3 4 3 chunks +10 lines, -0 lines 0 comments Download
M cc/layers/layer_impl.h View 1 2 3 4 5 4 chunks +11 lines, -1 line 0 comments Download
M cc/layers/layer_impl.cc View 1 2 3 4 6 chunks +26 lines, -2 lines 0 comments Download
A cc/layers/scroll_blocks_on.h View 1 2 3 4 5 1 chunk +25 lines, -0 lines 0 comments Download
M cc/layers/scrollbar_layer_unittest.cc View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M cc/test/layer_tree_json_parser.cc View 1 1 chunk +17 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 4 chunks +33 lines, -12 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 1 chunk +161 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_scroll.cc View 1 2 3 4 1 chunk +12 lines, -9 lines 0 comments Download
M content/renderer/input/input_handler_proxy.cc View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M content/renderer/input/input_handler_proxy_unittest.cc View 1 2 3 4 3 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
Rick Byers
aelias@ PTAL - at least at cc/ jdduke please review at least content/renderer/input (happy for ...
5 years, 10 months ago (2015-02-03 08:11:28 UTC) #2
jdduke (slow)
content/renderer/input lgtm with just a couple points. https://codereview.chromium.org/784463002/diff/80001/cc/input/input_handler.h File cc/input/input_handler.h (right): https://codereview.chromium.org/784463002/diff/80001/cc/input/input_handler.h#newcode145 cc/input/input_handler.h:145: virtual bool ...
5 years, 10 months ago (2015-02-03 16:43:35 UTC) #3
aelias_OOO_until_Jul13
lgtm More of a comment on the Blink-side CL https://codereview.chromium.org/784453003, but I'm a bit unhappy ...
5 years, 10 months ago (2015-02-03 22:22:28 UTC) #4
Rick Byers
On 2015/02/03 22:22:28, aelias wrote: > lgtm > > More of a comment on the ...
5 years, 10 months ago (2015-02-04 00:01:51 UTC) #5
Rick Byers
Thanks Jared. https://codereview.chromium.org/784463002/diff/80001/cc/input/input_handler.h File cc/input/input_handler.h (right): https://codereview.chromium.org/784463002/diff/80001/cc/input/input_handler.h#newcode145 cc/input/input_handler.h:145: virtual bool HaveWheelEventHandlersAt(const gfx::Point& viewport_point) = 0; ...
5 years, 10 months ago (2015-02-05 04:35:54 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/784463002/100001
5 years, 10 months ago (2015-02-05 04:37:49 UTC) #9
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 10 months ago (2015-02-05 06:22:36 UTC) #10
commit-bot: I haz the power
5 years, 10 months ago (2015-02-05 06:24:15 UTC) #11
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/18779d82a7f4a3ca040f247c8454c16b7cfc235b
Cr-Commit-Position: refs/heads/master@{#314765}

Powered by Google App Engine
This is Rietveld 408576698