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

Issue 641873003: Made top controls work with virtual viewport pinch-to-zoom. (Chromium) (Closed)

Created:
6 years, 2 months ago by bokan
Modified:
6 years, 2 months ago
CC:
cc-bugs_chromium.org, chromium-reviews, danakj
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Made top controls work with virtual viewport pinch-to-zoom. (Chromium) This change adjusts the scroll bubbling logic in LayerTreeHostImpl so that outer viewport layer scrolls affect the top controls. Additionally, the outer viewport's size is adjusted to match the inner viewport's aspect ratio until a resize occurs. Blink side: https://codereview.chromium.org/643473002 BUG=364109 Committed: https://crrev.com/ef97146f36e0e31632be0f7defebf2da4d72d360 Cr-Commit-Position: refs/heads/master@{#299384}

Patch Set 1 #

Total comments: 14

Patch Set 2 : Changes from aelias@ review #

Patch Set 3 : Fixed method name typo #

Patch Set 4 : printf for diagnosing failures DO NOT COMMIT #

Patch Set 5 : Rebase #

Patch Set 6 : Added BoundsForScrolling #

Total comments: 11

Patch Set 7 : Updates from danakj@ and aelias@ #

Total comments: 2

Patch Set 8 : Added warning in comment about lossy bounds. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+341 lines, -39 lines) Patch
M cc/layers/layer_impl.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M cc/layers/layer_impl.cc View 1 2 3 4 5 6 3 chunks +12 lines, -6 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 9 chunks +108 lines, -31 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 3 chunks +207 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_impl.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 3 4 5 6 2 chunks +7 lines, -1 line 0 comments Download

Messages

Total messages: 30 (9 generated)
bokan
ptal. https://codereview.chromium.org/641873003/diff/1/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (left): https://codereview.chromium.org/641873003/diff/1/cc/trees/layer_tree_host_impl.cc#oldcode2542 cc/trees/layer_tree_host_impl.cc:2542: layer_impl->ScrollbarParametersDidChange(false); I think this is unneeded, it gets ...
6 years, 2 months ago (2014-10-08 23:03:55 UTC) #2
aelias_OOO_until_Jul13
https://codereview.chromium.org/641873003/diff/1/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/641873003/diff/1/cc/trees/layer_tree_host_impl.cc#newcode1706 cc/trees/layer_tree_host_impl.cc:1706: ViewportAnchor anchor(InnerViewportScrollLayer(), Hmm, could you describe the clamping problem ...
6 years, 2 months ago (2014-10-09 03:51:36 UTC) #3
bokan
https://codereview.chromium.org/641873003/diff/1/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/641873003/diff/1/cc/trees/layer_tree_host_impl.cc#newcode1706 cc/trees/layer_tree_host_impl.cc:1706: ViewportAnchor anchor(InnerViewportScrollLayer(), On 2014/10/09 03:51:36, aelias wrote: > Hmm, ...
6 years, 2 months ago (2014-10-09 13:30:13 UTC) #4
aelias_OOO_until_Jul13
https://codereview.chromium.org/641873003/diff/1/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/641873003/diff/1/cc/trees/layer_tree_host_impl.cc#newcode95 cc/trees/layer_tree_host_impl.cc:95: inner_->ScrollBy(gfx::Vector2dF()); Please call LayerImpl::ClampScrollToMaxScrollOffset here instead. https://codereview.chromium.org/641873003/diff/1/cc/trees/layer_tree_host_impl.cc#newcode98 cc/trees/layer_tree_host_impl.cc:98: if ...
6 years, 2 months ago (2014-10-09 20:55:13 UTC) #5
aelias_OOO_until_Jul13
https://codereview.chromium.org/641873003/diff/1/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/641873003/diff/1/cc/trees/layer_tree_host_impl.cc#newcode93 cc/trees/layer_tree_host_impl.cc:93: ~ViewportAnchor() { I'd prefer this to be an explicit ...
6 years, 2 months ago (2014-10-09 20:56:16 UTC) #6
bokan
https://codereview.chromium.org/641873003/diff/1/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/641873003/diff/1/cc/trees/layer_tree_host_impl.cc#newcode93 cc/trees/layer_tree_host_impl.cc:93: ~ViewportAnchor() { On 2014/10/09 20:56:16, aelias wrote: > I'd ...
6 years, 2 months ago (2014-10-09 21:51:37 UTC) #7
aelias_OOO_until_Jul13
lgtm
6 years, 2 months ago (2014-10-09 22:59:00 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/641873003/60001
6 years, 2 months ago (2014-10-10 13:50:20 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_swarming on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_swarming/builds/17971)
6 years, 2 months ago (2014-10-10 14:49:28 UTC) #14
aelias_OOO_until_Jul13
[cc danakj@, enne@] FYI, in the latest patchset, bokan@ found he needed to add BoundsForScrolling ...
6 years, 2 months ago (2014-10-10 18:29:27 UTC) #17
danakj
https://codereview.chromium.org/641873003/diff/440001/cc/layers/layer_impl.cc File cc/layers/layer_impl.cc (right): https://codereview.chromium.org/641873003/diff/440001/cc/layers/layer_impl.cc#newcode774 cc/layers/layer_impl.cc:774: // TODO(aelias): Convert so that bounds returns SizeF. remove ...
6 years, 2 months ago (2014-10-10 18:47:16 UTC) #19
aelias_OOO_until_Jul13
For consistency, could you also change LayerImpl::SetScrollbarPosition and LayerTreeImpl::ScrollableViewportSize to use BoundsForScrolling?
6 years, 2 months ago (2014-10-10 18:52:48 UTC) #20
bokan
https://codereview.chromium.org/641873003/diff/440001/cc/layers/layer_impl.cc File cc/layers/layer_impl.cc (right): https://codereview.chromium.org/641873003/diff/440001/cc/layers/layer_impl.cc#newcode774 cc/layers/layer_impl.cc:774: // TODO(aelias): Convert so that bounds returns SizeF. On ...
6 years, 2 months ago (2014-10-10 19:25:55 UTC) #21
bokan
On 2014/10/10 18:52:48, aelias wrote: > For consistency, could you also change LayerImpl::SetScrollbarPosition and > ...
6 years, 2 months ago (2014-10-10 19:26:17 UTC) #22
danakj
Thanks, I think this LGTM, but I'd like enne@ to please look at it too. ...
6 years, 2 months ago (2014-10-10 19:52:03 UTC) #23
bokan
https://codereview.chromium.org/641873003/diff/560001/cc/layers/layer_impl.h File cc/layers/layer_impl.h (right): https://codereview.chromium.org/641873003/diff/560001/cc/layers/layer_impl.h#newcode368 cc/layers/layer_impl.h:368: // Like bounds() but doesn't snap to int. On ...
6 years, 2 months ago (2014-10-10 19:55:58 UTC) #24
bokan
Hi enne@, could you PTAL? Thanks!
6 years, 2 months ago (2014-10-13 18:16:23 UTC) #25
enne (OOO)
lgtm, thanks!
6 years, 2 months ago (2014-10-13 21:30:24 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/641873003/650001
6 years, 2 months ago (2014-10-13 21:44:56 UTC) #28
commit-bot: I haz the power
Committed patchset #8 (id:650001)
6 years, 2 months ago (2014-10-13 22:58:40 UTC) #29
commit-bot: I haz the power
6 years, 2 months ago (2014-10-13 22:59:21 UTC) #30
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/ef97146f36e0e31632be0f7defebf2da4d72d360
Cr-Commit-Position: refs/heads/master@{#299384}

Powered by Google App Engine
This is Rietveld 408576698