Lines Matching defs:child1

103     // child1. Additionally, the root has a second child layer, and child1 has
108 scoped_ptr<LayerImpl> child1 =
124 child1->SetPosition(gfx::PointF(100.f, 100.f));
125 child1->SetBounds(gfx::Size(30, 30));
126 child1->SetContentBounds(gfx::Size(30, 30));
131 child1->SetOpacity(0.5f);
132 child1->SetDrawsContent(false);
133 child1->SetForceRenderSurface(true);
150 child1->AddChild(grand_child1.Pass());
151 child1->AddChild(grand_child2.Pass());
152 root->AddChild(child1.Pass());
206 LayerImpl* child1 = root->children()[0];
209 child1->render_surface()->damage_tracker()->current_damage_rect();
213 ASSERT_TRUE(child1->render_surface());
216 EXPECT_EQ(2u, child1->render_surface()->layer_list().size());
218 // The render surface for child1 only has a content_rect that encloses
219 // grand_child1 and grand_child2, because child1 does not draw content.
571 LayerImpl* child1 = root->children()[0];
574 // Allow us to set damage on child1 too.
575 child1->SetDrawsContent(true);
584 child1->SetBackgroundFilters(filters);
629 // blurred child1 will not cause it to be expanded.
643 // outside the original content_bounds of the blurred child1 will
652 // the blurring on child1, but since it is 1 pixel outside the layer, the
662 // CASE 5: Setting the update rect on child2, which is above child1, will
663 // not get blurred by child1, so it does not need to get expanded.
676 // CASE 6: Setting the update rect on child1 will also blur the damage, so
680 child1->SetUpdateRect(gfx::RectF(0.f, 0.f, 1.f, 1.f));
685 // Damage on child1 should be: position of update_rect offset by the child's
698 LayerImpl* child1 = root->children()[0];
734 // Then, test removing child1.
735 root->RemoveChild(child1);
736 child1 = NULL;
780 LayerImpl* child1 = root->children()[0];
798 // - child1 update rect in surface space: gfx::Rect(100, 100, 1, 2);
801 child1->SetUpdateRect(gfx::RectF(0.f, 0.f, 1.f, 2.f));
812 LayerImpl* child1 = root->children()[0];
824 child1->render_surface()->damage_tracker()->current_damage_rect();
832 // - child1 surface damage in root surface space:
841 child1->render_surface()->damage_tracker()->current_damage_rect();
858 LayerImpl* child1 = root->children()[0];
867 child1->render_surface()->damage_tracker()->current_damage_rect();
876 // Damage to the root surface should be the union of child1's *entire* render
887 // the entire child1 surface, but the damage tracker still needs the correct
892 // child1 surface should be completely unchanged, since we are only
896 LayerImpl* child1 = root->children()[0];
901 child1->SetPosition(gfx::PointF(50.f, 50.f));
904 child1->render_surface()->damage_tracker()->current_damage_rect();
912 // The entire child1 surface and the old exposed child1 surface should damage
914 // - old child1 surface in target space: gfx::Rect(290, 290, 16, 18)
915 // - new child1 surface in target space: gfx::Rect(240, 240, 16, 18)
922 LayerImpl* child1 = root->children()[0];
929 child1->SetOpacity(1.f);
930 child1->SetForceRenderSurface(false);
934 ASSERT_FALSE(child1->render_surface());
955 child1->SetOpacity(0.5f);
956 child1->SetForceRenderSurface(true);
960 ASSERT_TRUE(child1->render_surface());
962 EXPECT_EQ(2u, child1->render_surface()->layer_list().size());
965 child1->render_surface()->damage_tracker()->current_damage_rect();
976 LayerImpl* child1 = root->children()[0];
985 child1->render_surface()->damage_tracker()->current_damage_rect();
997 child1->render_surface()->damage_tracker()->current_damage_rect();
1006 LayerImpl* child1 = root->children()[0];
1010 // In our specific tree, the update rect of child1 should not cause any
1013 child1->SetUpdateRect(gfx::RectF(0.f, 0.f, 1.f, 2.f));
1016 child1->render_surface()->damage_tracker()->current_damage_rect();
1025 LayerImpl* child1 = root->children()[0];
1026 LayerImpl* grand_child1 = child1->children()[0];
1027 LayerImpl* grand_child2 = child1->children()[1];
1033 // the bounds of child1's surface. This way, we can test reflection changes
1043 child1->AddChild(grand_child3.Pass());
1045 child1->SetOpacity(0.5f);
1065 child1->render_surface()->damage_tracker()->current_damage_rect();
1079 gfx::Rect old_content_rect = child1->render_surface()->content_rect();
1083 child1->render_surface()->content_rect().width());
1085 child1->render_surface()->content_rect().height());
1091 child1->render_surface()->damage_tracker()->current_damage_rect();
1111 child1->render_surface()->content_rect().width());
1113 child1->render_surface()->content_rect().height());
1117 child1->render_surface()->damage_tracker()->current_damage_rect();
1219 LayerImpl* child1 = root->children()[0];
1220 LayerImpl* grand_child1 = child1->children()[0];
1264 child1->render_surface()->damage_tracker()->current_damage_rect();
1280 child1->render_surface()->damage_tracker()->current_damage_rect();
1288 LayerImpl* child1 = root->children()[0];
1289 LayerImpl* grand_child1 = child1->children()[0];
1341 child1->render_surface()->damage_tracker()->current_damage_rect();