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

Issue 1496693005: Update RootFrameViewport::userScroll to distribute scrolls between viewports. (Closed)

Created:
5 years ago by ymalik
Modified:
5 years ago
Reviewers:
bokan, jbroman
CC:
blink-reviews, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Update RootFrameViewport::userScroll to distribute scrolls between viewports. This is needed to delegate main thread user scroll animations to the compositor. The problem with calling RFV's scroll animator is that the animation complete notification from the compositor goes to the GraphicLayers's scrollable area which is the FrameView and not RFV. No tests added because many layout tests cover the RFV::userScroll method. BUG=552556 Committed: https://crrev.com/4206032fc8056015a6c8cce304c2b6997644fd9e Cr-Commit-Position: refs/heads/master@{#364583}

Patch Set 1 #

Patch Set 2 : nit typo fix #

Patch Set 3 : fix in logic to return unused delta (fix failing tests) #

Patch Set 4 : override scrollAnimatorEnabled in VisualViewport #

Total comments: 16

Patch Set 5 : Don't rely on unusedScrollDelta returned by animators #

Patch Set 6 : rebase master #

Patch Set 7 : addressed remaining review comments #

Total comments: 3

Patch Set 8 : rename usedScrollDelta to computeDeltaToConsume #

Patch Set 9 : use comuteDeltaToConsume method from animators #

Patch Set 10 : update test expectation #

Total comments: 3

Patch Set 11 : worked on nits #

Patch Set 12 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -45 lines) Patch
M third_party/WebKit/Source/core/frame/RootFrameViewport.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/RootFrameViewport.cpp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +39 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/frame/VisualViewport.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/VisualViewport.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/mac/ScrollAnimatorMac.mm View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollAnimator.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollAnimator.cpp View 1 2 3 4 5 6 7 8 3 chunks +18 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollAnimatorBase.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollAnimatorBase.cpp View 1 2 3 4 5 6 7 8 2 chunks +11 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollAnimatorTest.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollableArea.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +23 lines, -20 lines 0 comments Download

Messages

Total messages: 39 (16 generated)
ymalik
5 years ago (2015-12-03 21:51:39 UTC) #3
bokan
https://codereview.chromium.org/1496693005/diff/60001/third_party/WebKit/Source/core/frame/RootFrameViewport.cpp File third_party/WebKit/Source/core/frame/RootFrameViewport.cpp (right): https://codereview.chromium.org/1496693005/diff/60001/third_party/WebKit/Source/core/frame/RootFrameViewport.cpp#newcode261 third_party/WebKit/Source/core/frame/RootFrameViewport.cpp:261: delta *= step; I don't think you need to ...
5 years ago (2015-12-04 19:39:02 UTC) #4
ymalik
https://codereview.chromium.org/1496693005/diff/60001/third_party/WebKit/Source/core/frame/RootFrameViewport.cpp File third_party/WebKit/Source/core/frame/RootFrameViewport.cpp (right): https://codereview.chromium.org/1496693005/diff/60001/third_party/WebKit/Source/core/frame/RootFrameViewport.cpp#newcode261 third_party/WebKit/Source/core/frame/RootFrameViewport.cpp:261: delta *= step; On 2015/12/04 19:39:02, bokan wrote: > ...
5 years ago (2015-12-04 20:11:01 UTC) #5
ymalik
https://codereview.chromium.org/1496693005/diff/60001/third_party/WebKit/Source/core/frame/RootFrameViewport.cpp File third_party/WebKit/Source/core/frame/RootFrameViewport.cpp (right): https://codereview.chromium.org/1496693005/diff/60001/third_party/WebKit/Source/core/frame/RootFrameViewport.cpp#newcode273 third_party/WebKit/Source/core/frame/RootFrameViewport.cpp:273: if (pResult.unusedScrollDelta == 0) On 2015/12/04 19:39:02, bokan wrote: ...
5 years ago (2015-12-04 20:13:54 UTC) #6
bokan
https://codereview.chromium.org/1496693005/diff/60001/third_party/WebKit/Source/core/frame/RootFrameViewport.cpp File third_party/WebKit/Source/core/frame/RootFrameViewport.cpp (right): https://codereview.chromium.org/1496693005/diff/60001/third_party/WebKit/Source/core/frame/RootFrameViewport.cpp#newcode261 third_party/WebKit/Source/core/frame/RootFrameViewport.cpp:261: delta *= step; On 2015/12/04 20:11:01, ymalik1 wrote: > ...
5 years ago (2015-12-04 20:42:52 UTC) #7
ymalik
https://codereview.chromium.org/1496693005/diff/60001/third_party/WebKit/Source/core/frame/RootFrameViewport.cpp File third_party/WebKit/Source/core/frame/RootFrameViewport.cpp (right): https://codereview.chromium.org/1496693005/diff/60001/third_party/WebKit/Source/core/frame/RootFrameViewport.cpp#newcode261 third_party/WebKit/Source/core/frame/RootFrameViewport.cpp:261: delta *= step; On 2015/12/04 20:42:52, bokan wrote: > ...
5 years ago (2015-12-07 17:53:14 UTC) #8
bokan
https://codereview.chromium.org/1496693005/diff/120001/third_party/WebKit/Source/platform/scroll/ScrollAnimator.cpp File third_party/WebKit/Source/platform/scroll/ScrollAnimator.cpp (right): https://codereview.chromium.org/1496693005/diff/120001/third_party/WebKit/Source/platform/scroll/ScrollAnimator.cpp#newcode62 third_party/WebKit/Source/platform/scroll/ScrollAnimator.cpp:62: float ScrollAnimator::usedScrollDelta(ScrollbarOrientation orientation, float pixelDelta) const I'd make this ...
5 years ago (2015-12-07 18:43:17 UTC) #9
bokan
https://codereview.chromium.org/1496693005/diff/120001/third_party/WebKit/Source/platform/scroll/ScrollAnimator.cpp File third_party/WebKit/Source/platform/scroll/ScrollAnimator.cpp (right): https://codereview.chromium.org/1496693005/diff/120001/third_party/WebKit/Source/platform/scroll/ScrollAnimator.cpp#newcode62 third_party/WebKit/Source/platform/scroll/ScrollAnimator.cpp:62: float ScrollAnimator::usedScrollDelta(ScrollbarOrientation orientation, float pixelDelta) const On 2015/12/07 18:43:17, ...
5 years ago (2015-12-07 19:52:54 UTC) #10
ymalik
https://codereview.chromium.org/1496693005/diff/120001/third_party/WebKit/Source/platform/scroll/ScrollAnimator.cpp File third_party/WebKit/Source/platform/scroll/ScrollAnimator.cpp (right): https://codereview.chromium.org/1496693005/diff/120001/third_party/WebKit/Source/platform/scroll/ScrollAnimator.cpp#newcode62 third_party/WebKit/Source/platform/scroll/ScrollAnimator.cpp:62: float ScrollAnimator::usedScrollDelta(ScrollbarOrientation orientation, float pixelDelta) const On 2015/12/07 19:52:54, ...
5 years ago (2015-12-07 20:52:33 UTC) #11
bokan
lgtm!
5 years ago (2015-12-08 22:23:42 UTC) #12
ymalik
+Jeremy for third_party/WebKit/Source/platform Hey Jeremy, need your stamp for platform, logic has been stamped by ...
5 years ago (2015-12-08 22:30:09 UTC) #14
jbroman
lgtm with nits https://codereview.chromium.org/1496693005/diff/180001/third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp File third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp (right): https://codereview.chromium.org/1496693005/diff/180001/third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp#newcode153 third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp:153: step = pixelStep(orientation); nit: This line ...
5 years ago (2015-12-09 15:29:35 UTC) #15
jbroman
https://codereview.chromium.org/1496693005/diff/180001/third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp File third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp (right): https://codereview.chromium.org/1496693005/diff/180001/third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp#newcode153 third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp:153: step = pixelStep(orientation); On 2015/12/09 at 15:29:35, jbroman wrote: ...
5 years ago (2015-12-09 15:31:22 UTC) #16
ymalik
https://codereview.chromium.org/1496693005/diff/180001/third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp File third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp (right): https://codereview.chromium.org/1496693005/diff/180001/third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp#newcode153 third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp:153: step = pixelStep(orientation); On 2015/12/09 15:31:22, jbroman wrote: > ...
5 years ago (2015-12-09 15:59:42 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1496693005/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1496693005/200001
5 years ago (2015-12-09 21:56:21 UTC) #20
commit-bot: I haz the power
Exceeded global retry quota
5 years ago (2015-12-09 23:46:42 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1496693005/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1496693005/200001
5 years ago (2015-12-10 05:07:41 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/153857)
5 years ago (2015-12-10 05:41:03 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1496693005/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1496693005/220001
5 years ago (2015-12-10 16:37:20 UTC) #31
commit-bot: I haz the power
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/147849)
5 years ago (2015-12-10 20:42:30 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1496693005/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1496693005/220001
5 years ago (2015-12-11 01:59:28 UTC) #35
commit-bot: I haz the power
Committed patchset #12 (id:220001)
5 years ago (2015-12-11 02:08:14 UTC) #37
commit-bot: I haz the power
5 years ago (2015-12-11 02:09:12 UTC) #39
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/4206032fc8056015a6c8cce304c2b6997644fd9e
Cr-Commit-Position: refs/heads/master@{#364583}

Powered by Google App Engine
This is Rietveld 408576698