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

Issue 2113483002: Make RootScroller set the outer viewport scroll layer in the compositor (Closed)

Created:
4 years, 5 months ago by bokan
Modified:
4 years, 5 months ago
CC:
aelias_OOO_until_Jul13, blink-reviews, blink-reviews-api_chromium.org, blink-reviews-dom_chromium.org, cc-bugs_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, dtapuska+blinkwatch_chromium.org, eae+blinkwatch, jam, kenneth.christiansen, kinuko+watch, mlamouri+watch-content_chromium.org, nzolghadr+blinkwatch_chromium.org, piman+watch_chromium.org, rwlbuis, sof
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make RootScroller set the outer viewport scroll layer in the compositor This CL makes the outer viewport scroll layer in the compositor match the RootScroller element's scroll layer. It adds a callback in RootScroller that registers the viewport's layers each time compositing in the FrameView is updated. The WebViewImpl::registerViewportLayersWithCompositor method queries RootScroller for the layer to use for the outer viewport scroll layer. Without enabling the RootScroller API, this will always fall back to the FrameView's scroll layer so it'll only have an effect with experimental flags enabled. BUG=505516 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/243c701b03206899b372d0b7898b49fc7a725704 Cr-Commit-Position: refs/heads/master@{#404890}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Rebase #

Patch Set 3 : Addressed comments #

Patch Set 4 : Plumb root scroller into compositor #

Patch Set 5 : RootScroller changes outer viewport scroll layer #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -33 lines) Patch
M third_party/WebKit/Source/core/dom/Document.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 1 chunk +0 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Element.cpp View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/input/ScrollManager.cpp View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/page/scrolling/RootScrollerController.h View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/page/scrolling/RootScrollerController.cpp View 1 2 3 2 chunks +31 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 2 3 4 2 chunks +11 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/web/tests/RootScrollerTest.cpp View 14 chunks +21 lines, -15 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 41 (18 generated)
bokan
ptal
4 years, 5 months ago (2016-06-29 21:40:24 UTC) #5
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/2113483002/1
4 years, 5 months ago (2016-06-29 21:48:00 UTC) #6
dcheng
https://codereview.chromium.org/2113483002/diff/1/third_party/WebKit/Source/web/WebViewImpl.cpp File third_party/WebKit/Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/2113483002/diff/1/third_party/WebKit/Source/web/WebViewImpl.cpp#newcode1880 third_party/WebKit/Source/web/WebViewImpl.cpp:1880: if (!page()->mainFrame() || !page()->mainFrame()->isLocalFrame()) I'm out of the loop ...
4 years, 5 months ago (2016-06-29 22:34:30 UTC) #8
bokan
https://codereview.chromium.org/2113483002/diff/1/third_party/WebKit/Source/web/WebViewImpl.cpp File third_party/WebKit/Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/2113483002/diff/1/third_party/WebKit/Source/web/WebViewImpl.cpp#newcode1880 third_party/WebKit/Source/web/WebViewImpl.cpp:1880: if (!page()->mainFrame() || !page()->mainFrame()->isLocalFrame()) On 2016/06/29 22:34:29, dcheng wrote: ...
4 years, 5 months ago (2016-06-29 22:37:02 UTC) #9
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/236969)
4 years, 5 months ago (2016-06-29 22:38:07 UTC) #11
aelias_OOO_until_Jul13
https://codereview.chromium.org/2113483002/diff/1/cc/trees/layer_tree_host.h File cc/trees/layer_tree_host.h (right): https://codereview.chromium.org/2113483002/diff/1/cc/trees/layer_tree_host.h#newcode216 cc/trees/layer_tree_host.h:216: void RegisterViewportLayers(scoped_refptr<Layer> overscroll_elasticity_layer, Can you make it an argument ...
4 years, 5 months ago (2016-06-29 22:44:09 UTC) #13
bokan
https://codereview.chromium.org/2113483002/diff/1/cc/trees/layer_tree_host.h File cc/trees/layer_tree_host.h (right): https://codereview.chromium.org/2113483002/diff/1/cc/trees/layer_tree_host.h#newcode216 cc/trees/layer_tree_host.h:216: void RegisterViewportLayers(scoped_refptr<Layer> overscroll_elasticity_layer, On 2016/06/29 22:44:08, aelias wrote: > ...
4 years, 5 months ago (2016-07-07 21:20:46 UTC) #14
aelias_OOO_until_Jul13
https://codereview.chromium.org/2113483002/diff/1/cc/trees/layer_tree_host.h File cc/trees/layer_tree_host.h (right): https://codereview.chromium.org/2113483002/diff/1/cc/trees/layer_tree_host.h#newcode218 cc/trees/layer_tree_host.h:218: scoped_refptr<Layer> inner_viewport_scroll_layer, On 2016/07/07 at 21:20:45, bokan wrote: > ...
4 years, 5 months ago (2016-07-07 22:03:15 UTC) #16
bokan
https://codereview.chromium.org/2113483002/diff/1/cc/trees/layer_tree_host.h File cc/trees/layer_tree_host.h (right): https://codereview.chromium.org/2113483002/diff/1/cc/trees/layer_tree_host.h#newcode218 cc/trees/layer_tree_host.h:218: scoped_refptr<Layer> inner_viewport_scroll_layer, On 2016/07/07 22:03:15, aelias wrote: > On ...
4 years, 5 months ago (2016-07-07 22:49:54 UTC) #17
aelias_OOO_until_Jul13
I understand wanting to avoid layer surgery, but we already have a top-level reference "outer_viewport_scroll_layer" ...
4 years, 5 months ago (2016-07-07 23:41:52 UTC) #18
bokan
On 2016/07/07 23:41:52, aelias wrote: > I understand wanting to avoid layer surgery, but we ...
4 years, 5 months ago (2016-07-08 16:41:32 UTC) #19
aelias_OOO_until_Jul13
Right, that's what I had in mind. Let me know when the new patch is ...
4 years, 5 months ago (2016-07-08 19:49:21 UTC) #20
bokan
Tim, Alexandre was originally reviewing this but he's now OOO for a few weeks and ...
4 years, 5 months ago (2016-07-11 21:35:52 UTC) #23
aelias_OOO_until_Jul13
I'm still checking sporadically, lgtm.
4 years, 5 months ago (2016-07-12 02:00:20 UTC) #25
tdresser
On 2016/07/12 02:00:20, aelias_OOO_until_July_25 wrote: > I'm still checking sporadically, lgtm. Dave, do you still ...
4 years, 5 months ago (2016-07-12 12:17:36 UTC) #26
bokan
On 2016/07/12 12:17:36, tdresser wrote: > On 2016/07/12 02:00:20, aelias_OOO_until_July_25 wrote: > > I'm still ...
4 years, 5 months ago (2016-07-12 15:26:31 UTC) #27
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/2113483002/80001
4 years, 5 months ago (2016-07-12 16:47:21 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/261137)
4 years, 5 months ago (2016-07-12 18:24:19 UTC) #31
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/2113483002/80001
4 years, 5 months ago (2016-07-12 18:49:39 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/191629)
4 years, 5 months ago (2016-07-12 19:36:27 UTC) #35
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/2113483002/80001
4 years, 5 months ago (2016-07-12 23:06:17 UTC) #37
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 5 months ago (2016-07-13 02:08:59 UTC) #39
commit-bot: I haz the power
4 years, 5 months ago (2016-07-13 02:10:48 UTC) #41
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/243c701b03206899b372d0b7898b49fc7a725704
Cr-Commit-Position: refs/heads/master@{#404890}

Powered by Google App Engine
This is Rietveld 408576698