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

Issue 2123053002: Improve scroll anchoring's interactions with the visual viewport (Closed)

Created:
4 years, 5 months ago by ymalik
Modified:
4 years, 5 months ago
Reviewers:
skobes, jbroman
CC:
blink-reviews, blink-reviews-layout_chromium.org, blink-reviews-paint_chromium.org, chromium-reviews, dshwang, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, slimming-paint-reviews_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Improve scroll anchoring's interactions with the visual viewport ScrollAnchor can now have a RootFrameViewport as its scroller so that an anchoring adjustment can be distributed between layout and visual viewports. BUG=594876 Committed: https://crrev.com/577f3d408ca3e63ff1a9efc0a95f098df5092fd6 Cr-Commit-Position: refs/heads/master@{#404508}

Patch Set 1 #

Patch Set 2 : rebase master #

Patch Set 3 : Add test and fix bots #

Patch Set 4 : Don't call ScrollAnchor::restore when updating scrollbar" #

Patch Set 5 : Remove unused code + nit #

Total comments: 9

Patch Set 6 : work on review comments #

Total comments: 4

Patch Set 7 : review comments #

Patch Set 8 : add todo #

Total comments: 8

Patch Set 9 : jbroman nits #

Patch Set 10 : fix broken tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+187 lines, -51 lines) Patch
M third_party/WebKit/Source/core/frame/FrameView.h View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 2 3 4 5 6 3 chunks +19 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/frame/RootFrameViewport.h View 1 2 3 4 5 6 3 chunks +10 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/RootFrameViewport.cpp View 1 2 3 4 5 6 4 chunks +22 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/frame/VisualViewport.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/VisualViewport.cpp View 1 2 3 4 5 3 chunks +22 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ScrollAnchor.h View 1 2 3 4 5 6 7 8 1 chunk +9 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/ScrollAnchor.cpp View 1 2 3 4 5 6 7 8 5 chunks +23 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ScrollAnchorTest.cpp View 1 2 3 4 3 chunks +44 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h View 1 2 3 4 5 6 7 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ProgrammaticScrollAnimator.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollAnimator.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollAnimator.cpp View 1 2 3 4 5 1 chunk +3 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollAnimatorBase.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollAnimatorCompositorCoordinator.h View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollAnimatorCompositorCoordinator.cpp View 1 2 3 4 5 1 chunk +10 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollAnimatorTest.cpp View 1 2 3 4 5 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollableArea.h View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 26 (11 generated)
ymalik
4 years, 5 months ago (2016-07-06 21:29:13 UTC) #4
skobes
Overall approach looks fine. https://codereview.chromium.org/2123053002/diff/80001/third_party/WebKit/Source/core/frame/RootFrameViewport.cpp File third_party/WebKit/Source/core/frame/RootFrameViewport.cpp (right): https://codereview.chromium.org/2123053002/diff/80001/third_party/WebKit/Source/core/frame/RootFrameViewport.cpp#newcode130 third_party/WebKit/Source/core/frame/RootFrameViewport.cpp:130: DoubleSize RootFrameViewport::scrollAmount(DoubleSize delta, const ScrollableArea& ...
4 years, 5 months ago (2016-07-06 23:16:04 UTC) #5
ymalik
@skobes PTAL :) https://codereview.chromium.org/2123053002/diff/80001/third_party/WebKit/Source/core/frame/RootFrameViewport.cpp File third_party/WebKit/Source/core/frame/RootFrameViewport.cpp (right): https://codereview.chromium.org/2123053002/diff/80001/third_party/WebKit/Source/core/frame/RootFrameViewport.cpp#newcode130 third_party/WebKit/Source/core/frame/RootFrameViewport.cpp:130: DoubleSize RootFrameViewport::scrollAmount(DoubleSize delta, const ScrollableArea& scroller) ...
4 years, 5 months ago (2016-07-07 22:01:03 UTC) #6
skobes
https://codereview.chromium.org/2123053002/diff/80001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h File third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h (right): https://codereview.chromium.org/2123053002/diff/80001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h#newcode411 third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h:411: LayoutBox* layoutBox() const override { return &box(); } On ...
4 years, 5 months ago (2016-07-07 23:31:04 UTC) #7
ymalik
https://codereview.chromium.org/2123053002/diff/100001/third_party/WebKit/Source/core/frame/RootFrameViewport.h File third_party/WebKit/Source/core/frame/RootFrameViewport.h (right): https://codereview.chromium.org/2123053002/diff/100001/third_party/WebKit/Source/core/frame/RootFrameViewport.h#newcode82 third_party/WebKit/Source/core/frame/RootFrameViewport.h:82: void distributeScrollBetweenViewports(const DoublePoint&, ScrollType, ScrollBehavior, bool visualIsPrimary); On 2016/07/07 ...
4 years, 5 months ago (2016-07-08 14:41:22 UTC) #8
skobes
lgtm
4 years, 5 months ago (2016-07-08 14:48:05 UTC) #9
ymalik
+jbroman for Source/platform
4 years, 5 months ago (2016-07-08 14:51:34 UTC) #11
jbroman
lgtm with a few comments https://codereview.chromium.org/2123053002/diff/140001/third_party/WebKit/Source/core/layout/ScrollAnchor.cpp File third_party/WebKit/Source/core/layout/ScrollAnchor.cpp (right): https://codereview.chromium.org/2123053002/diff/140001/third_party/WebKit/Source/core/layout/ScrollAnchor.cpp#newcode26 third_party/WebKit/Source/core/layout/ScrollAnchor.cpp:26: : m_scroller(scroller) super-nit: Minor ...
4 years, 5 months ago (2016-07-08 17:11:18 UTC) #12
ymalik
https://codereview.chromium.org/2123053002/diff/140001/third_party/WebKit/Source/core/layout/ScrollAnchor.cpp File third_party/WebKit/Source/core/layout/ScrollAnchor.cpp (right): https://codereview.chromium.org/2123053002/diff/140001/third_party/WebKit/Source/core/layout/ScrollAnchor.cpp#newcode26 third_party/WebKit/Source/core/layout/ScrollAnchor.cpp:26: : m_scroller(scroller) On 2016/07/08 17:11:17, jbroman wrote: > super-nit: ...
4 years, 5 months ago (2016-07-08 17:29:50 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2123053002/160001
4 years, 5 months ago (2016-07-08 17:30:31 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/252332)
4 years, 5 months ago (2016-07-08 19:54:40 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2123053002/180001
4 years, 5 months ago (2016-07-08 20:45:57 UTC) #21
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 5 months ago (2016-07-08 22:18:21 UTC) #23
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-08 22:18:37 UTC) #24
commit-bot: I haz the power
4 years, 5 months ago (2016-07-08 22:19:40 UTC) #26
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/577f3d408ca3e63ff1a9efc0a95f098df5092fd6
Cr-Commit-Position: refs/heads/master@{#404508}

Powered by Google App Engine
This is Rietveld 408576698