summaryrefslogtreecommitdiffstats
path: root/cc/trees/layer_tree_impl_unittest.cc
diff options
context:
space:
mode:
authorjaydasika <jaydasika@chromium.org>2015-07-14 08:15:04 -0700
committerCommit bot <commit-bot@chromium.org>2015-07-14 15:16:04 +0000
commitd36e7fa1ce7503fa9c64e3271e1a831c5f3aec50 (patch)
treeeedacbefb51ef514b84e78ad8ef7b98deb397052 /cc/trees/layer_tree_impl_unittest.cc
parenta8c375bf808b8b169e4303deeac4cce20c786d29 (diff)
downloadchromium_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.cc3
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,