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

Issue 18202006: Make scrollable viewport size no longer depend on clip layer. (Closed)

Created:
7 years, 5 months ago by aelias_OOO_until_Jul13
Modified:
7 years, 5 months ago
Reviewers:
enne (OOO)
CC:
chromium-reviews, cc-bugs_chromium.org, trchen, jamesr, wjmaclean
Visibility:
Public.

Description

Make scrollable viewport size no longer depend on clip layer. In non-solid-color mode, the scrollable viewport size calculation was ignoring device_viewport_size and using the clip layer size instead, in order to take into account non-overlay-scrollbars. This was weird and was going to behave incorrectly with desktop pinch zoom. This patch changes the non-overlay-scrollbar size to be added to the max scroll offset instead. NOTRY=true BUG=259141 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=211496

Patch Set 1 #

Patch Set 2 : Remove DCHECK(IsActiveTree()) on RootScrollLayer #

Total comments: 4

Patch Set 3 : Apply to MaxScrollOffset #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -17 lines) Patch
M cc/layers/scrollbar_layer.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M cc/layers/scrollbar_layer_impl.h View 3 chunks +5 lines, -4 lines 0 comments Download
M cc/layers/scrollbar_layer_impl.cc View 2 chunks +1 line, -4 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 chunk +0 lines, -7 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 2 chunks +11 lines, -2 lines 2 comments Download

Messages

Total messages: 11 (0 generated)
aelias_OOO_until_Jul13
Hi Enne, this will need to land first before I can land the masksToBounds changes. ...
7 years, 5 months ago (2013-07-12 01:33:45 UTC) #1
enne (OOO)
https://codereview.chromium.org/18202006/diff/6001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (left): https://codereview.chromium.org/18202006/diff/6001/cc/trees/layer_tree_host_impl.cc#oldcode1297 cc/trees/layer_tree_host_impl.cc:1297: if (!Settings().solid_color_scrollbars && clip_layer && I didn't even know ...
7 years, 5 months ago (2013-07-12 17:19:27 UTC) #2
aelias_OOO_until_Jul13
https://codereview.chromium.org/18202006/diff/6001/cc/trees/layer_tree_impl.cc File cc/trees/layer_tree_impl.cc (right): https://codereview.chromium.org/18202006/diff/6001/cc/trees/layer_tree_impl.cc#newcode313 cc/trees/layer_tree_impl.cc:313: // For the purposes of scrolling, non-overlay scrollbars are ...
7 years, 5 months ago (2013-07-12 18:18:23 UTC) #3
enne (OOO)
https://codereview.chromium.org/18202006/diff/6001/cc/trees/layer_tree_impl.cc File cc/trees/layer_tree_impl.cc (right): https://codereview.chromium.org/18202006/diff/6001/cc/trees/layer_tree_impl.cc#newcode313 cc/trees/layer_tree_impl.cc:313: // For the purposes of scrolling, non-overlay scrollbars are ...
7 years, 5 months ago (2013-07-12 18:30:27 UTC) #4
aelias_OOO_until_Jul13
On 2013/07/12 18:30:27, enne wrote: > > There are two ways of considering the effect ...
7 years, 5 months ago (2013-07-12 19:04:03 UTC) #5
aelias_OOO_until_Jul13
Friendly ping? This should be ready to land.
7 years, 5 months ago (2013-07-12 23:43:34 UTC) #6
enne (OOO)
(I'm not trying to be rude, but does a 4h old code review with two ...
7 years, 5 months ago (2013-07-12 23:48:04 UTC) #7
enne (OOO)
lgtm https://codereview.chromium.org/18202006/diff/17001/cc/trees/layer_tree_impl.cc File cc/trees/layer_tree_impl.cc (right): https://codereview.chromium.org/18202006/diff/17001/cc/trees/layer_tree_impl.cc#newcode223 cc/trees/layer_tree_impl.cc:223: max_scroll.set_y(max_scroll.y() + horiz->thumb_thickness()); Eh, sorry, misreading code late ...
7 years, 5 months ago (2013-07-12 23:50:30 UTC) #8
aelias_OOO_until_Jul13
Sorry for rushing you, I just thought you might not have noticed the last update. ...
7 years, 5 months ago (2013-07-12 23:53:45 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aelias@chromium.org/18202006/17001
7 years, 5 months ago (2013-07-12 23:57:16 UTC) #10
commit-bot: I haz the power
7 years, 5 months ago (2013-07-13 00:04:35 UTC) #11
Message was sent while issue was closed.
Change committed as 211496

Powered by Google App Engine
This is Rietveld 408576698