Index: 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 81a566fe7f322d7bb6f57766f337e458b99dd22a..8947d959307d1d721022dde498697d636fb13683 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()); |
+ std::set<LayerImpl*>* scroll_children = new std::set<LayerImpl*>; |
ajuma
2015/07/09 14:50:15
Nit: use a scoped_ptr here to make the ownership t
jaydasika
2015/07/09 15:11:49
Done.
|
+ scroll_children->insert(scroll_child.get()); |
+ child->SetScrollChildren(scroll_children); |
SetLayerPropertiesForTesting(grand_child.get(), identity_matrix, |
transform_origin, position, bounds, true, |