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

Issue 2868553002: Reland Fade out overlay scrollbar after page load (Closed)

Created:
3 years, 7 months ago by chaopeng
Modified:
3 years, 7 months ago
Reviewers:
weiliangc
CC:
cc-bugs_chromium.org, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland Fade out overlay scrollbar after page load This issue is caused by Aura Overlay Scrollbar is created with opacity>0. We used to call SAC::DidScrollUpdate - LTI::UpdateScrollbars to fade out when RegisterScrollLayer. ``` #2 0x7f23d0dfe1ea cc::LayerTreeImpl::UpdateScrollbars() #3 0x7f23d0dfd999 cc::LayerTreeImpl::DidUpdateScrollState() #4 0x7f23d0e07231 cc::LayerTreeImpl::RegisterScrollLayer() ``` But we remove ScrollbarAnimationController::DidScrollUpdate call in UpdateScrollbars at https://crrev.com/697a467f819ce09da5209a3df13b8b92f33e35a4. Then Overlay Scrollbar can not fade out until we have real scroll. In this patch, we apply set_needs_show_scrollbars(true) to the layer in LayerTreeImpl::RegisterScrollLayer for Aura that will let LTI::HandleScrollbarShowRequestsFromMain pickup and call SAC::DidScrollUpdate. For cc_unittest, remove set_needs_show_scrollbars call in LayerTreeHostImplTestScrollbarAnimation.* and LayerTreeHostImplTest.ScrollbarVisibilityChangeCausesRedrawAndCommit. BUG=717222 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2868553002 Cr-Commit-Position: refs/heads/master@{#470695} Committed: https://chromium.googlesource.com/chromium/src/+/4180d24ef895be388449653c9fa14b105cd49a45

Patch Set 1 #

Patch Set 2 : fix test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -3 lines) Patch
M cc/trees/layer_tree_host_impl_unittest.cc View 1 3 chunks +2 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (14 generated)
chaopeng
PTAL. Thank you.
3 years, 7 months ago (2017-05-05 21:00:48 UTC) #4
weiliangc
LGTM. Is the regression because this is adding more code on the critical path for ...
3 years, 7 months ago (2017-05-08 19:41:00 UTC) #5
chaopeng
On 2017/05/08 19:41:00, weiliangc wrote: > LGTM. > > Is the regression because this is ...
3 years, 7 months ago (2017-05-10 00:33:26 UTC) #9
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/2868553002/1
3 years, 7 months ago (2017-05-10 00:35:06 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/449402)
3 years, 7 months ago (2017-05-10 01:21:56 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/2868553002/40001
3 years, 7 months ago (2017-05-10 13:43:40 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/440673)
3 years, 7 months ago (2017-05-10 15:42:45 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/2868553002/40001
3 years, 7 months ago (2017-05-10 19:12:45 UTC) #20
commit-bot: I haz the power
3 years, 7 months ago (2017-05-10 20:39:18 UTC) #23
Message was sent while issue was closed.
Committed patchset #2 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/4180d24ef895be388449653c9fa1...

Powered by Google App Engine
This is Rietveld 408576698