diff options
author | jaydasika <jaydasika@chromium.org> | 2015-07-13 09:07:37 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-13 16:08:09 +0000 |
commit | 2af7226e29be65a8ea4a279b9358a6fcfada5cd3 (patch) | |
tree | af287869da6d024bf8c6d856b6dc913174943fca /cc/trees/layer_tree_impl_unittest.cc | |
parent | 11edd34b171b78462c1a27ac6587d977833122ea (diff) | |
download | chromium_src-2af7226e29be65a8ea4a279b9358a6fcfada5cd3.zip chromium_src-2af7226e29be65a8ea4a279b9358a6fcfada5cd3.tar.gz chromium_src-2af7226e29be65a8ea4a279b9358a6fcfada5cd3.tar.bz2 |
Compute if a layer is clipped outside CalcDrawProps
We need to know if a layer is clipped to compute its drawable
visible rect. So, we need to compute it outside CalcDrawProps to move
drawable visible rect computation outside CalcDrawProps.
Review URL: https://codereview.chromium.org/1231453002
Cr-Commit-Position: refs/heads/master@{#338515}
Diffstat (limited to 'cc/trees/layer_tree_impl_unittest.cc')
-rw-r--r-- | cc/trees/layer_tree_impl_unittest.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cc/trees/layer_tree_impl_unittest.cc b/cc/trees/layer_tree_impl_unittest.cc index 81a566f..9e8fee5 100644 --- a/cc/trees/layer_tree_impl_unittest.cc +++ b/cc/trees/layer_tree_impl_unittest.cc @@ -972,6 +972,9 @@ TEST_F(LayerTreeImplTest, HitTestingRespectsScrollParents) { // This should cause scroll child and its descendants to be affected by // |child|'s clip. scroll_child->SetScrollParent(child.get()); + scoped_ptr<std::set<LayerImpl*>> scroll_children(new std::set<LayerImpl*>); + scroll_children->insert(scroll_child.get()); + child->SetScrollChildren(scroll_children.release()); SetLayerPropertiesForTesting(grand_child.get(), identity_matrix, transform_origin, position, bounds, true, |