From d36e7fa1ce7503fa9c64e3271e1a831c5f3aec50 Mon Sep 17 00:00:00 2001 From: jaydasika Date: Tue, 14 Jul 2015 08:15:04 -0700 Subject: 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} --- cc/trees/layer_tree_impl_unittest.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cc/trees/layer_tree_impl_unittest.cc') 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> scroll_children(new std::set); + scroll_children->insert(scroll_child.get()); + child->SetScrollChildren(scroll_children.release()); SetLayerPropertiesForTesting(grand_child.get(), identity_matrix, transform_origin, position, bounds, true, -- cgit v1.1