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

Issue 234913005: Refactor wheel event handler registration in ScrollingCoordinator (Closed)

Created:
6 years, 8 months ago by Sami
Modified:
6 years, 8 months ago
CC:
blink-reviews, kenneth.christiansen, jamesr, sof, eae+blinkwatch, blink-layers+watch_chromium.org, dglazkov+blink, adamk+blink_chromium.org, Inactive, rwlbuis
Visibility:
Public.

Description

Refactor wheel event handler registration in ScrollingCoordinator This patch simplifies the process of observing wheel event handlers in the ScrollingCoordinator. We do not need to compute exact counts of handlers but instead check whether there are any or not. We also add an API for indicating the presence of scroll event handlers. This will be used by the compositor to schedule scrolling differently when handlers are consuming scroll updates. See https://codereview.chromium.org/206603002/ for full review history. BUG=347366 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=171506

Patch Set 1 #

Total comments: 5

Patch Set 2 : More concise. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -37 lines) Patch
M Source/core/dom/WheelController.cpp View 1 1 chunk +1 line, -5 lines 0 comments Download
M Source/core/page/scrolling/ScrollingCoordinator.h View 1 4 chunks +2 lines, -6 lines 0 comments Download
M Source/core/page/scrolling/ScrollingCoordinator.cpp View 1 3 chunks +27 lines, -26 lines 0 comments Download
M public/platform/WebLayer.h View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Sami
6 years, 8 months ago (2014-04-11 18:18:51 UTC) #1
Rick Byers
Other than splitting it out, there's no change here from what I've reviewed already, right? ...
6 years, 8 months ago (2014-04-11 18:29:51 UTC) #2
abarth-chromium
LGTM https://codereview.chromium.org/234913005/diff/1/Source/core/dom/WheelController.cpp File Source/core/dom/WheelController.cpp (right): https://codereview.chromium.org/234913005/diff/1/Source/core/dom/WheelController.cpp#newcode72 Source/core/dom/WheelController.cpp:72: scrollingCoordinator->haveWheelEventHandlersChangedForPage(); didChangeWheelEventHandlers() ? https://codereview.chromium.org/234913005/diff/1/Source/core/page/scrolling/ScrollingCoordinator.cpp File Source/core/page/scrolling/ScrollingCoordinator.cpp (right): https://codereview.chromium.org/234913005/diff/1/Source/core/page/scrolling/ScrollingCoordinator.cpp#newcode661 ...
6 years, 8 months ago (2014-04-11 18:53:38 UTC) #3
Rick Byers
On 2014/04/11 18:53:38, abarth wrote: > LGTM > > https://codereview.chromium.org/234913005/diff/1/Source/core/dom/WheelController.cpp > File Source/core/dom/WheelController.cpp (right): > ...
6 years, 8 months ago (2014-04-11 19:01:18 UTC) #4
abarth-chromium
On 2014/04/11 19:01:18, Rick Byers wrote: > I'm the one that suggested 'haveScrollEventHandlersChanged'. It's the ...
6 years, 8 months ago (2014-04-11 20:08:15 UTC) #5
Sami
Thanks Rick and Adam. I went with exposing updateHaveWheelEventHandlers() since that seemed cleanest.
6 years, 8 months ago (2014-04-14 17:57:13 UTC) #6
Sami
The CQ bit was checked by skyostil@chromium.org
6 years, 8 months ago (2014-04-14 17:57:26 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/234913005/20001
6 years, 8 months ago (2014-04-14 17:57:34 UTC) #8
commit-bot: I haz the power
6 years, 8 months ago (2014-04-14 19:10:13 UTC) #9
Message was sent while issue was closed.
Change committed as 171506

Powered by Google App Engine
This is Rietveld 408576698