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

Issue 2128553002: Make rootScroller the layout viewport. (Closed)

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

Description

Make rootScroller the layout viewport. In order to properly support pinch zoom and other viewport scrolling actions, we need to promote the rootScroller element's ScrollableArea to be the layout viewport. This is primarily accomplished by replacing the layout viewport in RootFrameViewport. I've moved the ViewportScrollCallback creation to happen at Document attachment time. This is necessary since the FrameView may not have fully initialized its ScrollableArea until this happens. Notably, this is needed for root-layer-scrolls since the ScrollableArea for a FrameView will be the LayoutView's PaintLayerScrollableArea which won't be initialized until attachment. I've also updated the set-root-scroller test to break up the one big test and replace it with many small ones. BUG=505516 Committed: https://crrev.com/de92895a8fd3c8f3719b8875651cffc7ebebd3e7 Cr-Commit-Position: refs/heads/master@{#404250}

Patch Set 1 #

Patch Set 2 : Replace the layout viewport with the root scroller #

Patch Set 3 : Replace the layout viewport with the root scroller #

Total comments: 5

Patch Set 4 : Rebase + comment fix in test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+257 lines, -128 lines) Patch
M third_party/WebKit/LayoutTests/fast/scrolling/set-root-scroller.html View 1 2 3 3 chunks +116 lines, -72 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.h View 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 3 2 chunks +6 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 2 3 2 chunks +23 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/frame/RootFrameViewport.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/RootFrameViewport.cpp View 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/RootFrameViewportTest.cpp View 1 chunk +34 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/page/scrolling/RootScrollerController.h View 1 2 3 2 chunks +18 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/page/scrolling/RootScrollerController.cpp View 1 2 3 4 chunks +30 lines, -20 lines 0 comments Download
M third_party/WebKit/Source/core/page/scrolling/RootViewportScrollCallback.h View 1 2 3 3 chunks +8 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/page/scrolling/RootViewportScrollCallback.cpp View 1 2 3 6 chunks +13 lines, -8 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 21 (8 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2128553002/40001
4 years, 5 months ago (2016-07-06 15:55:43 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/99034)
4 years, 5 months ago (2016-07-06 17:15:23 UTC) #4
tdresser
LGTM. https://codereview.chromium.org/2128553002/diff/40001/third_party/WebKit/LayoutTests/fast/scrolling/set-root-scroller.html File third_party/WebKit/LayoutTests/fast/scrolling/set-root-scroller.html (right): https://codereview.chromium.org/2128553002/diff/40001/third_party/WebKit/LayoutTests/fast/scrolling/set-root-scroller.html#newcode138 third_party/WebKit/LayoutTests/fast/scrolling/set-root-scroller.html:138: // documentElement, but the rootScroller property should remain ...
4 years, 5 months ago (2016-07-07 16:37:33 UTC) #7
bokan
https://codereview.chromium.org/2128553002/diff/40001/third_party/WebKit/LayoutTests/fast/scrolling/set-root-scroller.html File third_party/WebKit/LayoutTests/fast/scrolling/set-root-scroller.html (right): https://codereview.chromium.org/2128553002/diff/40001/third_party/WebKit/LayoutTests/fast/scrolling/set-root-scroller.html#newcode138 third_party/WebKit/LayoutTests/fast/scrolling/set-root-scroller.html:138: // documentElement, but the rootScroller property should remain the ...
4 years, 5 months ago (2016-07-07 16:45:47 UTC) #8
tdresser
https://codereview.chromium.org/2128553002/diff/40001/third_party/WebKit/LayoutTests/fast/scrolling/set-root-scroller.html File third_party/WebKit/LayoutTests/fast/scrolling/set-root-scroller.html (right): https://codereview.chromium.org/2128553002/diff/40001/third_party/WebKit/LayoutTests/fast/scrolling/set-root-scroller.html#newcode138 third_party/WebKit/LayoutTests/fast/scrolling/set-root-scroller.html:138: // documentElement, but the rootScroller property should remain the ...
4 years, 5 months ago (2016-07-07 16:51:59 UTC) #9
bokan
On 2016/07/07 16:51:59, tdresser wrote: > https://codereview.chromium.org/2128553002/diff/40001/third_party/WebKit/LayoutTests/fast/scrolling/set-root-scroller.html > File third_party/WebKit/LayoutTests/fast/scrolling/set-root-scroller.html > (right): > > https://codereview.chromium.org/2128553002/diff/40001/third_party/WebKit/LayoutTests/fast/scrolling/set-root-scroller.html#newcode138 ...
4 years, 5 months ago (2016-07-07 16:54:35 UTC) #10
tdresser
On 2016/07/07 16:54:35, bokan wrote: > On 2016/07/07 16:51:59, tdresser wrote: > > > https://codereview.chromium.org/2128553002/diff/40001/third_party/WebKit/LayoutTests/fast/scrolling/set-root-scroller.html ...
4 years, 5 months ago (2016-07-07 16:56:20 UTC) #11
bokan
On 2016/07/07 16:56:20, tdresser wrote: > On 2016/07/07 16:54:35, bokan wrote: > > On 2016/07/07 ...
4 years, 5 months ago (2016-07-07 16:58:29 UTC) #12
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/2128553002/60001
4 years, 5 months ago (2016-07-07 19:01:08 UTC) #15
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/2128553002/60001
4 years, 5 months ago (2016-07-07 19:01:10 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 5 months ago (2016-07-07 22:15:40 UTC) #18
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-07 22:15:44 UTC) #19
commit-bot: I haz the power
4 years, 5 months ago (2016-07-07 22:17:23 UTC) #21
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/de92895a8fd3c8f3719b8875651cffc7ebebd3e7
Cr-Commit-Position: refs/heads/master@{#404250}

Powered by Google App Engine
This is Rietveld 408576698