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

Issue 1298973004: Remove special wheel handling path from ScrollableArea (Closed)

Created:
5 years, 4 months ago by bokan
Modified:
5 years, 4 months ago
Reviewers:
Rick Byers
CC:
blink-reviews, shans, blink-reviews-animation_chromium.org, Eric Willigers, rjwright, darktears
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Remove special wheel handling path from ScrollableArea ScrollableArea maintained its own special path for wheel handlers. This was duplicating logic with other scrolls that used ScrollableArea::userScroll and confusing (why isn't there a handleTouch? handleKey?). I've removed ScrollableArea::handleWheel and its overrides and moved all the WheelEvelt -> Scroll Delta logic into EventHandler from where it simply calls ScrollableArea::userScroll like all other scroll paths. I also made a slight change to the page step size of ScrollableArea: it's now 87.5% of the visible area *including* scrollbars. This was necessary since on the root frame, the visible area excluding scrollbars is a somewhat arbitrary calculation when pinch-zoomed. While it would be possible to come up with some scheme or make the step size different for root and non-root frames this would unnecessarily complicate the code for little gain so I just based it off the size of the frame rect. BUG=443724 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201145

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 12

Patch Set 4 : Added TODO for OSX #ifdef #

Total comments: 2

Patch Set 5 : Fixed up test expectations - removed OSX #ifdef #

Total comments: 2

Patch Set 6 : Removed TODO #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -217 lines) Patch
M LayoutTests/fast/events/platform-wheelevent-paging-xy-in-scrolling-page.html View 1 2 3 4 1 chunk +15 lines, -2 lines 0 comments Download
A + LayoutTests/fast/events/platform-wheelevent-paging-xy-in-scrolling-page-expected.txt View 1 2 3 4 0 chunks +-1 lines, --1 lines 0 comments Download
M LayoutTests/platform/mac/fast/events/platform-wheelevent-paging-xy-in-scrolling-page-expected.txt View 1 2 3 4 1 chunk +0 lines, -9 lines 0 comments Download
M LayoutTests/platform/win/fast/events/platform-wheelevent-paging-xy-in-scrolling-page-expected.txt View 1 2 3 4 1 chunk +0 lines, -9 lines 0 comments Download
M Source/core/frame/FrameView.h View 1 chunk +0 lines, -5 lines 0 comments Download
M Source/core/frame/FrameView.cpp View 1 chunk +0 lines, -11 lines 0 comments Download
M Source/core/frame/RootFrameViewport.h View 1 chunk +0 lines, -4 lines 0 comments Download
M Source/core/frame/RootFrameViewport.cpp View 1 chunk +0 lines, -41 lines 0 comments Download
M Source/core/frame/RootFrameViewportTest.cpp View 1 2 5 chunks +3 lines, -59 lines 0 comments Download
M Source/core/input/EventHandler.cpp View 1 2 3 4 5 2 chunks +41 lines, -1 line 0 comments Download
M Source/platform/scroll/ScrollAnimator.h View 1 chunk +0 lines, -2 lines 0 comments Download
M Source/platform/scroll/ScrollAnimator.cpp View 1 chunk +0 lines, -60 lines 0 comments Download
M Source/platform/scroll/ScrollAnimatorNone.cpp View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M Source/platform/scroll/ScrollableArea.h View 1 chunk +0 lines, -2 lines 0 comments Download
M Source/platform/scroll/ScrollableArea.cpp View 3 chunks +2 lines, -12 lines 0 comments Download

Messages

Total messages: 20 (7 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1298973004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1298973004/20001
5 years, 4 months ago (2015-08-18 18:57:27 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/94799)
5 years, 4 months ago (2015-08-18 20:08:36 UTC) #4
bokan
Hey Rick, ptal. https://codereview.chromium.org/1298973004/diff/40001/LayoutTests/fast/events/platform-wheelevent-paging-xy-in-scrolling-page.html File LayoutTests/fast/events/platform-wheelevent-paging-xy-in-scrolling-page.html (right): https://codereview.chromium.org/1298973004/diff/40001/LayoutTests/fast/events/platform-wheelevent-paging-xy-in-scrolling-page.html#newcode29 LayoutTests/fast/events/platform-wheelevent-paging-xy-in-scrolling-page.html:29: debug("document.scrollingElement.scrollLeft = " + document.scrollingElement.scrollLeft); The ...
5 years, 4 months ago (2015-08-19 12:42:47 UTC) #6
Rick Byers
Nice cleanup, thanks! https://codereview.chromium.org/1298973004/diff/40001/LayoutTests/fast/events/platform-wheelevent-paging-xy-in-scrolling-page.html File LayoutTests/fast/events/platform-wheelevent-paging-xy-in-scrolling-page.html (right): https://codereview.chromium.org/1298973004/diff/40001/LayoutTests/fast/events/platform-wheelevent-paging-xy-in-scrolling-page.html#newcode29 LayoutTests/fast/events/platform-wheelevent-paging-xy-in-scrolling-page.html:29: debug("document.scrollingElement.scrollLeft = " + document.scrollingElement.scrollLeft); On ...
5 years, 4 months ago (2015-08-19 17:33:31 UTC) #7
bokan
https://codereview.chromium.org/1298973004/diff/40001/LayoutTests/fast/events/platform-wheelevent-paging-xy-in-scrolling-page.html File LayoutTests/fast/events/platform-wheelevent-paging-xy-in-scrolling-page.html (right): https://codereview.chromium.org/1298973004/diff/40001/LayoutTests/fast/events/platform-wheelevent-paging-xy-in-scrolling-page.html#newcode29 LayoutTests/fast/events/platform-wheelevent-paging-xy-in-scrolling-page.html:29: debug("document.scrollingElement.scrollLeft = " + document.scrollingElement.scrollLeft); On 2015/08/19 17:33:30, Rick ...
5 years, 4 months ago (2015-08-19 18:45:47 UTC) #8
Rick Byers
https://codereview.chromium.org/1298973004/diff/40001/LayoutTests/fast/events/platform-wheelevent-paging-xy-in-scrolling-page.html File LayoutTests/fast/events/platform-wheelevent-paging-xy-in-scrolling-page.html (right): https://codereview.chromium.org/1298973004/diff/40001/LayoutTests/fast/events/platform-wheelevent-paging-xy-in-scrolling-page.html#newcode29 LayoutTests/fast/events/platform-wheelevent-paging-xy-in-scrolling-page.html:29: debug("document.scrollingElement.scrollLeft = " + document.scrollingElement.scrollLeft); On 2015/08/19 18:45:46, bokan ...
5 years, 4 months ago (2015-08-19 19:42:09 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1298973004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1298973004/80001
5 years, 4 months ago (2015-08-25 16:35:04 UTC) #11
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/103963)
5 years, 4 months ago (2015-08-25 17:32:44 UTC) #13
bokan
Hey Rick, I've updated the test expectations to be more idiomatic. If you could, please ...
5 years, 4 months ago (2015-08-25 17:53:22 UTC) #14
Rick Byers
Thanks, LGTM! https://codereview.chromium.org/1298973004/diff/80001/Source/core/input/EventHandler.cpp File Source/core/input/EventHandler.cpp (right): https://codereview.chromium.org/1298973004/diff/80001/Source/core/input/EventHandler.cpp#newcode1729 Source/core/input/EventHandler.cpp:1729: // TODO(bokan): This should be moved out ...
5 years, 4 months ago (2015-08-25 18:09:58 UTC) #15
bokan
https://codereview.chromium.org/1298973004/diff/80001/Source/core/input/EventHandler.cpp File Source/core/input/EventHandler.cpp (right): https://codereview.chromium.org/1298973004/diff/80001/Source/core/input/EventHandler.cpp#newcode1729 Source/core/input/EventHandler.cpp:1729: // TODO(bokan): This should be moved out into Chromium ...
5 years, 4 months ago (2015-08-25 18:13:45 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1298973004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1298973004/100001
5 years, 4 months ago (2015-08-25 18:50:08 UTC) #19
commit-bot: I haz the power
5 years, 4 months ago (2015-08-25 20:03:07 UTC) #20
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=201145

Powered by Google App Engine
This is Rietveld 408576698