Index: cc/trees/layer_tree_host_common_unittest.cc |
diff --git a/cc/trees/layer_tree_host_common_unittest.cc b/cc/trees/layer_tree_host_common_unittest.cc |
index 99dc89cffd6956f5b8b0fedc12cc34feb7dedaf7..556f68e1b45858e1e978591213881d87a180f27f 100644 |
--- a/cc/trees/layer_tree_host_common_unittest.cc |
+++ b/cc/trees/layer_tree_host_common_unittest.cc |
@@ -7889,6 +7889,9 @@ TEST_F(LayerTreeHostCommonTest, |
test_layer->SetDrawsContent(true); |
render_surface->SetClipParent(clip_parent); |
+ std::set<LayerImpl*>* clip_children = new std::set<LayerImpl*>; |
ajuma
2015/09/14 17:07:02
Please use a scoped_ptr for this (see other unit t
|
+ clip_children->insert(render_surface); |
+ clip_parent->SetClipChildren(clip_children); |
SetLayerPropertiesForTesting(root, identity_matrix, gfx::Point3F(), |
gfx::PointF(), gfx::Size(30, 30), true, false, |
true); |
@@ -7907,7 +7910,7 @@ TEST_F(LayerTreeHostCommonTest, |
ExecuteCalculateDrawProperties(root); |
- EXPECT_EQ(gfx::Rect(-4, -4, 30, 30), test_layer->clip_rect()); |
+ EXPECT_EQ(gfx::Rect(30, 30), test_layer->clip_rect()); |
} |
} // namespace |