diff options
author | jaydasika <jaydasika@chromium.org> | 2015-07-14 08:15:04 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-14 15:16:04 +0000 |
commit | d36e7fa1ce7503fa9c64e3271e1a831c5f3aec50 (patch) | |
tree | eedacbefb51ef514b84e78ad8ef7b98deb397052 /cc/trees/layer_tree_impl_unittest.cc | |
parent | a8c375bf808b8b169e4303deeac4cce20c786d29 (diff) | |
download | chromium_src-d36e7fa1ce7503fa9c64e3271e1a831c5f3aec50.zip chromium_src-d36e7fa1ce7503fa9c64e3271e1a831c5f3aec50.tar.gz chromium_src-d36e7fa1ce7503fa9c64e3271e1a831c5f3aec50.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.
Committed: https://crrev.com/2af7226e29be65a8ea4a279b9358a6fcfada5cd3
Cr-Commit-Position: refs/heads/master@{#338515}
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Review URL: https://codereview.chromium.org/1231453002
Cr-Commit-Position: refs/heads/master@{#338691}
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, |