Viewport scrolls should always begin at the outer viewport.
commita203a4b128753108701fe7b3fe0826f8b097dc11
authorbokan <bokan@chromium.org>
Tue, 18 Nov 2014 16:28:08 +0000 (18 08:28 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 18 Nov 2014 16:28:23 +0000 (18 16:28 +0000)
tree51345b822d75d4904a7d42d10e8319e9b4f97010
parent8c86796369cab3bfadd8b4e2c69863101cd524ea
Viewport scrolls should always begin at the outer viewport.

This fixes an edge case on sites where the outer viewport is not scrollable.
In this case, when the use pinches in, the top controls can be manipulated.
When the user shows the top controls, the inner and outer viewports are
resized. This means that, until the main thread resizes the content layer,
the outer viewport becomes scrollable. This fix works by starting a scoll
delta meant for the inner viewport on the outer viewport.

BUG=432143

Review URL: https://codereview.chromium.org/729723002

Cr-Commit-Position: refs/heads/master@{#304617}
cc/trees/layer_tree_host_impl.cc
cc/trees/layer_tree_host_impl_unittest.cc