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

Issue 2728253002: Remove indirection: setup scrollbar scroll layers in the scrollbar constructor (Closed)

Created:
3 years, 9 months ago by pdr.
Modified:
3 years, 9 months ago
Reviewers:
bokan, ajuma
CC:
blink-layers+watch_chromium.org, blink-reviews, blink-reviews-api_chromium.org, blink-reviews-frames_chromium.org, cc-bugs_chromium.org, chromium-reviews, dglazkov+blink, kenneth.christiansen, kinuko+watch
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove indirection: setup scrollbar scroll layers in the scrollbar constructor Scrollbar layers keep track of the layer id (soon: element id) that they actually scroll. Before this patch, scrollbar layers were constructed with no scroll layer id, then later updated to set the scroll layer id. This patch removes this indirection and directly sets the scroll layer in the constructor. Removed functions: VisualViewport::setScrollLayerOnScrollbars WebScrollbarLayer::setScrollLayer WebScrollbarLayerImpl::setScrollLayer PaintedOverlayScrollbarLayer::SetScrollLayer PaintedScrollbarLayer::SetScrollLayer SolidColorScrollbarLayer::SetScrollLayer BUG=693740 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2728253002 Cr-Commit-Position: refs/heads/master@{#455105} Committed: https://chromium.googlesource.com/chromium/src/+/a20ad732333dc9db2b545886acd16a11abdc5842

Patch Set 1 #

Patch Set 2 : Fix NPE #

Patch Set 3 : Ensure detachScrollbarLayer is called in scrollableAreaScrollbarLayerDidChange #

Total comments: 5

Patch Set 4 : Rebase and remove unnecessary bool #

Patch Set 5 : Really fix reivewer comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -119 lines) Patch
M cc/blink/web_compositor_support_impl.h View 1 chunk +6 lines, -3 lines 0 comments Download
M cc/blink/web_compositor_support_impl.cc View 1 2 3 4 2 chunks +11 lines, -8 lines 0 comments Download
M cc/blink/web_scrollbar_layer_impl.h View 1 2 3 4 1 chunk +4 lines, -7 lines 0 comments Download
M cc/blink/web_scrollbar_layer_impl.cc View 1 2 3 4 2 chunks +23 lines, -30 lines 0 comments Download
M cc/layers/painted_overlay_scrollbar_layer.h View 1 chunk +0 lines, -1 line 0 comments Download
M cc/layers/painted_overlay_scrollbar_layer.cc View 1 chunk +0 lines, -8 lines 0 comments Download
M cc/layers/painted_scrollbar_layer.h View 1 chunk +0 lines, -2 lines 0 comments Download
M cc/layers/painted_scrollbar_layer.cc View 1 chunk +0 lines, -8 lines 0 comments Download
M cc/layers/scrollbar_layer_interface.h View 1 chunk +0 lines, -1 line 0 comments Download
M cc/layers/scrollbar_layer_unittest.cc View 3 chunks +0 lines, -3 lines 0 comments Download
M cc/layers/solid_color_scrollbar_layer.h View 1 chunk +0 lines, -1 line 0 comments Download
M cc/layers/solid_color_scrollbar_layer.cc View 1 chunk +0 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/frame/VisualViewport.h View 1 2 3 2 chunks +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/frame/VisualViewport.cpp View 1 2 3 2 chunks +3 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.h View 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp View 1 2 6 chunks +18 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h View 1 chunk +6 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/testing/TestingPlatformSupport.cpp View 3 chunks +6 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 2 3 1 chunk +0 lines, -6 lines 0 comments Download
M third_party/WebKit/public/platform/WebCompositorSupport.h View 1 chunk +6 lines, -3 lines 0 comments Download
M third_party/WebKit/public/platform/WebScrollbarLayer.h View 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 41 (27 generated)
pdr.
3 years, 9 months ago (2017-03-04 02:43:38 UTC) #12
bokan
https://codereview.chromium.org/2728253002/diff/40001/cc/blink/web_scrollbar_layer_impl.cc File cc/blink/web_scrollbar_layer_impl.cc (right): https://codereview.chromium.org/2728253002/diff/40001/cc/blink/web_scrollbar_layer_impl.cc#newcode49 cc/blink/web_scrollbar_layer_impl.cc:49: bool, Whoops, this bool argument is used solely to ...
3 years, 9 months ago (2017-03-06 14:36:35 UTC) #15
pdr.
https://codereview.chromium.org/2728253002/diff/40001/cc/blink/web_scrollbar_layer_impl.cc File cc/blink/web_scrollbar_layer_impl.cc (right): https://codereview.chromium.org/2728253002/diff/40001/cc/blink/web_scrollbar_layer_impl.cc#newcode49 cc/blink/web_scrollbar_layer_impl.cc:49: bool, On 2017/03/06 at 14:36:34, bokan wrote: > Whoops, ...
3 years, 9 months ago (2017-03-06 19:00:24 UTC) #16
pdr.
On 2017/03/06 at 14:36:35, bokan wrote: > https://codereview.chromium.org/2728253002/diff/40001/cc/blink/web_scrollbar_layer_impl.cc > File cc/blink/web_scrollbar_layer_impl.cc (right): > > https://codereview.chromium.org/2728253002/diff/40001/cc/blink/web_scrollbar_layer_impl.cc#newcode49 ...
3 years, 9 months ago (2017-03-06 19:08:08 UTC) #19
pdr.
On 2017/03/06 at 19:08:08, pdr. wrote: > On 2017/03/06 at 14:36:35, bokan wrote: > > ...
3 years, 9 months ago (2017-03-06 19:54:26 UTC) #22
bokan
lgtm https://codereview.chromium.org/2728253002/diff/40001/third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp File third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp (right): https://codereview.chromium.org/2728253002/diff/40001/third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp#newcode454 third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp:454: detachScrollbarLayer(scrollbarGraphicsLayer); On 2017/03/06 19:00:24, pdr. wrote: > On ...
3 years, 9 months ago (2017-03-06 21:49:29 UTC) #25
ajuma
lgtm
3 years, 9 months ago (2017-03-06 22:06:30 UTC) #26
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/2728253002/80001
3 years, 9 months ago (2017-03-06 22:52:18 UTC) #29
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/395236)
3 years, 9 months ago (2017-03-07 02:34:31 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/2728253002/80001
3 years, 9 months ago (2017-03-07 08:06:40 UTC) #33
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/395779)
3 years, 9 months ago (2017-03-07 11:14:35 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/2728253002/80001
3 years, 9 months ago (2017-03-07 15:03:05 UTC) #37
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/chromium/src/+/a20ad732333dc9db2b545886acd16a11abdc5842
3 years, 9 months ago (2017-03-07 17:12:03 UTC) #40
pdr.
3 years, 9 months ago (2017-03-09 17:52:05 UTC) #41
Message was sent while issue was closed.
A revert of this CL (patchset #5 id:80001) has been created in
https://codereview.chromium.org/2743653003/ by pdr@chromium.org.

The reason for reverting is: Regressed scrolling performance:
https://crbug.com/699705.

Powered by Google App Engine
This is Rietveld 408576698