Enlarge visible content rect by bounds delta.
commit599f4359d4a217f5fa4aea1e60e055984d89cdcd
authortimav <timav@chromium.org>
Fri, 5 Dec 2014 00:12:22 +0000 (4 16:12 -0800)
committerCommit bot <commit-bot@chromium.org>
Fri, 5 Dec 2014 00:12:39 +0000 (5 00:12 +0000)
treed1c7ae5df878f2b6df1dbc30fcaffd990b8cd099
parentf5d95bf7fb5ee07c82e62cb573af67b195284bc3
Enlarge visible content rect by bounds delta.

Adjust the visible content rect in the root content layer
by the size of top controls. For this purpouse
we include bounds_delta in the visible rect calculaton.

This change is required for https://codereview.chromium.org/779113002
where we change the settings on Android platform to let the main
frame clip the content, after which the top controls should be
taken into account.

BUG=433687

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

Cr-Commit-Position: refs/heads/master@{#306941}
cc/trees/layer_tree_host_common.cc
cc/trees/layer_tree_host_common_unittest.cc