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

Issue 1755773002: Pass the physical scroll delta through the scroll customization path. (Closed)

Created:
4 years, 9 months ago by bokan
Modified:
4 years, 9 months ago
Reviewers:
jbroman, tdresser
CC:
blink-reviews, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Base URL:
https://chromium.googlesource.com/chromium/src.git@removeOneDimensionalScrolls
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Pass the physical scroll delta through the scroll customization path. The scroll customization path of scrolling passes through the gesture event deltas which are inverted from actual scroll deltas. E.g. A finger moving up and left has positive gesture event delta but causes the page to scroll down and right which increases the page's scrollX and scrollY. This patch converts the event delta to a scroll delta before feeding it into the scroll customization path. I've also "uninverted" some of the helper methods that were relying on this like LocalFrame::applyScrollDelta and TopControls::scrollBy. BUG=591124 Committed: https://crrev.com/1535512d6b044044e58111011a48ffd07194b49c Cr-Commit-Position: refs/heads/master@{#378834}

Patch Set 1 : #

Total comments: 4

Patch Set 2 : Addressed review feedback #

Patch Set 3 : Updated LayoutTest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -40 lines) Patch
M third_party/WebKit/LayoutTests/fast/scroll-behavior/scroll-customization/touch-scroll-customization.html View 1 2 4 chunks +9 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Element.cpp View 1 chunk +2 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/frame/LocalFrame.cpp View 3 chunks +2 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/frame/TopControls.cpp View 1 3 chunks +5 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/input/EventHandler.cpp View 1 4 chunks +13 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/web/tests/TopControlsTest.cpp View 1 chunk +1 line, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 23 (12 generated)
bokan
This patch fixes some of the TODOs about negative/inverted deltas in ScrollCustomization, I think this ...
4 years, 9 months ago (2016-03-01 18:53:13 UTC) #4
tdresser
Thanks! LGTM with nits. https://codereview.chromium.org/1755773002/diff/20001/third_party/WebKit/Source/core/frame/TopControls.cpp File third_party/WebKit/Source/core/frame/TopControls.cpp (right): https://codereview.chromium.org/1755773002/diff/20001/third_party/WebKit/Source/core/frame/TopControls.cpp#newcode68 third_party/WebKit/Source/core/frame/TopControls.cpp:68: // top controls to hide ...
4 years, 9 months ago (2016-03-01 19:24:09 UTC) #5
bokan
https://codereview.chromium.org/1755773002/diff/20001/third_party/WebKit/Source/core/frame/TopControls.cpp File third_party/WebKit/Source/core/frame/TopControls.cpp (right): https://codereview.chromium.org/1755773002/diff/20001/third_party/WebKit/Source/core/frame/TopControls.cpp#newcode68 third_party/WebKit/Source/core/frame/TopControls.cpp:68: // top controls to hide (negative offset difference). On ...
4 years, 9 months ago (2016-03-01 19:40:57 UTC) #7
bokan
+jbroman@ stampify all the CLs!
4 years, 9 months ago (2016-03-01 19:41:47 UTC) #9
jbroman
lgtm
4 years, 9 months ago (2016-03-01 19:53:37 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1755773002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1755773002/40001
4 years, 9 months ago (2016-03-02 07:23:17 UTC) #13
commit-bot: I haz the power
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/189004)
4 years, 9 months ago (2016-03-02 08:48:49 UTC) #15
tdresser
Still LGTM. Thanks for cleaning up those deltas.
4 years, 9 months ago (2016-03-02 18:18:43 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1755773002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1755773002/60001
4 years, 9 months ago (2016-03-02 18:19:39 UTC) #19
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 9 months ago (2016-03-02 21:18:33 UTC) #21
commit-bot: I haz the power
4 years, 9 months ago (2016-03-02 21:20:01 UTC) #23
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/1535512d6b044044e58111011a48ffd07194b49c
Cr-Commit-Position: refs/heads/master@{#378834}

Powered by Google App Engine
This is Rietveld 408576698