Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3356)

Unified Diff: cc/layers/layer_position_constraint_unittest.cc

Issue 1912893002: cc : Stop pushing properties not used by LayerImpl to LayerImpl. (2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/layers/layer_iterator_unittest.cc ('k') | cc/layers/layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_position_constraint_unittest.cc
diff --git a/cc/layers/layer_position_constraint_unittest.cc b/cc/layers/layer_position_constraint_unittest.cc
index 9c060eab43a99ccfceb9131965b9e74cd60ab6a1..f72cad91d3113bd23d2d2f87929a4735dd061ec8 100644
--- a/cc/layers/layer_position_constraint_unittest.cc
+++ b/cc/layers/layer_position_constraint_unittest.cc
@@ -435,7 +435,7 @@ TEST_F(LayerPositionConstraintTest,
// for when checking the scroll delta.
child_->SetIsContainerForFixedPositionLayers(true);
grand_child_->SetPosition(gfx::PointF(8.f, 6.f));
- grand_child_->SetForceRenderSurface(true);
+ grand_child_->SetForceRenderSurfaceForTesting(true);
great_grand_child_->SetPositionConstraint(fixed_to_top_left_);
gfx::Transform rotation_about_z;
@@ -559,9 +559,9 @@ TEST_F(LayerPositionConstraintTest,
// Actually set up the scenario here.
child_->SetIsContainerForFixedPositionLayers(true);
grand_child_->SetPosition(gfx::PointF(8.f, 6.f));
- grand_child_->SetForceRenderSurface(true);
+ grand_child_->SetForceRenderSurfaceForTesting(true);
great_grand_child_->SetPosition(gfx::PointF(40.f, 60.f));
- great_grand_child_->SetForceRenderSurface(true);
+ great_grand_child_->SetForceRenderSurfaceForTesting(true);
fixed_position_child->SetPositionConstraint(fixed_to_top_left_);
// The additional rotation, which is non-commutative with translations, helps
@@ -715,9 +715,9 @@ TEST_F(
// Actually set up the scenario here.
child_transform_layer_->SetIsContainerForFixedPositionLayers(true);
grand_child_->SetPosition(gfx::PointF(8.f, 6.f));
- grand_child_->SetForceRenderSurface(true);
+ grand_child_->SetForceRenderSurfaceForTesting(true);
great_grand_child_->SetPosition(gfx::PointF(40.f, 60.f));
- great_grand_child_->SetForceRenderSurface(true);
+ great_grand_child_->SetForceRenderSurfaceForTesting(true);
fixed_position_child->SetPositionConstraint(fixed_to_top_left_);
// The additional rotations, which are non-commutative with translations, help
@@ -828,7 +828,7 @@ TEST_F(LayerPositionConstraintTest,
// that render target is completely irrelevant; it should not affect the
// scroll compensation.
child_->SetIsContainerForFixedPositionLayers(true);
- child_->SetForceRenderSurface(true);
+ child_->SetForceRenderSurfaceForTesting(true);
grand_child_->SetPositionConstraint(fixed_to_top_left_);
CommitAndUpdateImplPointers();
« no previous file with comments | « cc/layers/layer_iterator_unittest.cc ('k') | cc/layers/layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698