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

Issue 12090014: Add a bit to not bubble scrolls to parent scrolling layers (Closed)

Created:
7 years, 11 months ago by Yusuf
Modified:
7 years, 10 months ago
CC:
chromium-reviews, cc-bugs_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Add a bit to not bubble scrolls to parent scrolling layers This will be used by flings to avoid bubbling to parent layers. Also adds a private bool to record whether we have already flung in the currentlyScrollingLayer to avoid flinging in multiple layers in multiple scrollBy calls. BUG=169548 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=179759

Patch Set 1 #

Total comments: 6

Patch Set 2 : Added test and using scrollType instead of bool #

Total comments: 10

Patch Set 3 : Nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -3 lines) Patch
M cc/input_handler.h View 1 1 chunk +1 line, -1 line 0 comments Download
M cc/layer_tree_host_impl.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M cc/layer_tree_host_impl.cc View 1 2 4 chunks +15 lines, -2 lines 0 comments Download
M cc/layer_tree_host_impl_unittest.cc View 1 2 1 chunk +70 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Yusuf
WIP patch. I will add unit tests soon.
7 years, 11 months ago (2013-01-27 23:28:13 UTC) #1
jamesr
https://codereview.chromium.org/12090014/diff/1/cc/input_handler.h File cc/input_handler.h (right): https://codereview.chromium.org/12090014/diff/1/cc/input_handler.h#newcode49 cc/input_handler.h:49: virtual bool scrollBy(const gfx::Point&, const gfx::Vector2d&, bool shouldBubble) = ...
7 years, 10 months ago (2013-01-29 05:52:24 UTC) #2
Sami
https://codereview.chromium.org/12090014/diff/1/cc/input_handler.h File cc/input_handler.h (right): https://codereview.chromium.org/12090014/diff/1/cc/input_handler.h#newcode49 cc/input_handler.h:49: virtual bool scrollBy(const gfx::Point&, const gfx::Vector2d&, bool shouldBubble) = ...
7 years, 10 months ago (2013-01-29 11:42:34 UTC) #3
Yusuf
https://codereview.chromium.org/12090014/diff/1/cc/input_handler.h File cc/input_handler.h (right): https://codereview.chromium.org/12090014/diff/1/cc/input_handler.h#newcode49 cc/input_handler.h:49: virtual bool scrollBy(const gfx::Point&, const gfx::Vector2d&, bool shouldBubble) = ...
7 years, 10 months ago (2013-01-29 18:59:21 UTC) #4
Yusuf
I took one last stab at doing this without needing to keep an extra layer. ...
7 years, 10 months ago (2013-01-30 01:50:35 UTC) #5
Sami
I think the logic and test both look good. https://codereview.chromium.org/12090014/diff/8002/cc/layer_tree_host_impl.cc File cc/layer_tree_host_impl.cc (right): https://codereview.chromium.org/12090014/diff/8002/cc/layer_tree_host_impl.cc#newcode1208 cc/layer_tree_host_impl.cc:1208: ...
7 years, 10 months ago (2013-01-30 19:28:31 UTC) #6
jamesr
lgtm2 modulo Sami's comments https://codereview.chromium.org/12090014/diff/8002/cc/layer_tree_host_impl.h File cc/layer_tree_host_impl.h (right): https://codereview.chromium.org/12090014/diff/8002/cc/layer_tree_host_impl.h#newcode330 cc/layer_tree_host_impl.h:330: bool m_didScrollOnce; On 2013/01/30 19:28:31, ...
7 years, 10 months ago (2013-01-30 19:32:23 UTC) #7
Yusuf
https://codereview.chromium.org/12090014/diff/8002/cc/layer_tree_host_impl.cc File cc/layer_tree_host_impl.cc (right): https://codereview.chromium.org/12090014/diff/8002/cc/layer_tree_host_impl.cc#newcode1208 cc/layer_tree_host_impl.cc:1208: m_didScrollOnce = false; On 2013/01/30 19:28:31, Sami wrote: > ...
7 years, 10 months ago (2013-01-30 21:01:01 UTC) #8
Yusuf
WebKit side patch needed after this. https://bugs.webkit.org/show_bug.cgi?id=108372
7 years, 10 months ago (2013-01-30 21:28:10 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yusufo@chromium.org/12090014/14001
7 years, 10 months ago (2013-01-30 22:42:52 UTC) #10
commit-bot: I haz the power
7 years, 10 months ago (2013-01-31 01:29:13 UTC) #11
Message was sent while issue was closed.
Change committed as 179759

Powered by Google App Engine
This is Rietveld 408576698