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

Issue 2422353002: Iframe/div MD scrollbars get idle when mouse leaves the nested elements. (Closed)

Created:
4 years, 2 months ago by sahel
Modified:
4 years, 1 month ago
CC:
cc-bugs_chromium.org, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Iframe/div MD scrollbars get idle when mouse leaves the nested elements. If the scrollbar of a nested element is not captured, it should get back to idle state when mouse leaves the element. Now, the scrollbar gets stuck in hover state if mouse leaves the nested element while being near the scrollbar. With this change the non-captured scrollbars always get back to idle state when the mouse leaves the div/iframe. BUG=636393 TEST=LayerTreeHostImplTest.LayerTreeHostImplTestScrollbarStates CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/db2d55e87ca8e0a8c74d29f479ec498053495e6f Cr-Commit-Position: refs/heads/master@{#427343}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Move the scrollbar animation logic to animation controllers. #

Total comments: 2

Patch Set 3 : merge conflicts resolved and unittest added. #

Patch Set 4 : Unittest passes asan build bot. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+204 lines, -102 lines) Patch
M cc/input/scrollbar_animation_controller.h View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M cc/input/scrollbar_animation_controller_thinning.h View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M cc/input/scrollbar_animation_controller_thinning.cc View 1 2 2 chunks +7 lines, -5 lines 0 comments Download
M cc/input/scrollbar_animation_controller_thinning_unittest.cc View 1 2 12 chunks +16 lines, -16 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 2 3 chunks +1 line, -7 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 2 chunks +45 lines, -62 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 2 chunks +129 lines, -6 lines 0 comments Download

Messages

Total messages: 44 (33 generated)
sahel
4 years, 2 months ago (2016-10-18 14:16:49 UTC) #8
bokan
Also, this will need a test. https://codereview.chromium.org/2422353002/diff/1/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/2422353002/diff/1/cc/trees/layer_tree_host_impl.cc#newcode3262 cc/trees/layer_tree_host_impl.cc:3262: ScrollbarAnimationControllerForId( Hmm...too much ...
4 years, 2 months ago (2016-10-18 15:44:35 UTC) #9
sahel
I haven't added a new test, yet. https://codereview.chromium.org/2422353002/diff/1/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/2422353002/diff/1/cc/trees/layer_tree_host_impl.cc#newcode3262 cc/trees/layer_tree_host_impl.cc:3262: ScrollbarAnimationControllerForId( On ...
4 years, 2 months ago (2016-10-19 21:29:17 UTC) #13
bokan
Thanks, this looks great. Just needs a test. https://codereview.chromium.org/2422353002/diff/20001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/2422353002/diff/20001/cc/trees/layer_tree_host_impl.cc#newcode3271 cc/trees/layer_tree_host_impl.cc:3271: old_animation_controller->DidMouseMoveOffScrollbar(); ...
4 years, 2 months ago (2016-10-20 14:58:08 UTC) #16
sahel
The added unittest fails without this cl. https://codereview.chromium.org/2422353002/diff/20001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/2422353002/diff/20001/cc/trees/layer_tree_host_impl.cc#newcode3271 cc/trees/layer_tree_host_impl.cc:3271: old_animation_controller->DidMouseMoveOffScrollbar(); On ...
4 years, 1 month ago (2016-10-24 21:22:06 UTC) #34
sahel
aelias@chromium.org: Please review changes in
4 years, 1 month ago (2016-10-24 21:26:58 UTC) #36
aelias_OOO_until_Jul13
lgtm
4 years, 1 month ago (2016-10-24 21:54:14 UTC) #37
chaopeng
On 2016/10/24 21:54:14, aelias wrote: > lgtm lgtm
4 years, 1 month ago (2016-10-24 23:16:52 UTC) #38
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/2422353002/120001
4 years, 1 month ago (2016-10-25 14:17:57 UTC) #40
commit-bot: I haz the power
Committed patchset #4 (id:120001)
4 years, 1 month ago (2016-10-25 14:22:12 UTC) #42
commit-bot: I haz the power
4 years, 1 month ago (2016-10-25 14:24:42 UTC) #44
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/db2d55e87ca8e0a8c74d29f479ec498053495e6f
Cr-Commit-Position: refs/heads/master@{#427343}

Powered by Google App Engine
This is Rietveld 408576698