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

Unified Diff: cc/trees/damage_tracker_unittest.cc

Issue 2053983003: cc : Move LayerImpl::parent to test properties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
Index: cc/trees/damage_tracker_unittest.cc
diff --git a/cc/trees/damage_tracker_unittest.cc b/cc/trees/damage_tracker_unittest.cc
index f4599e3b9474d495ecc000283e28de4b88da3c84..2c5236475b6e4fcabd58d94241b7153bb245f7de 100644
--- a/cc/trees/damage_tracker_unittest.cc
+++ b/cc/trees/damage_tracker_unittest.cc
@@ -1467,7 +1467,7 @@ TEST_F(DamageTrackerTest, VerifyDamageForReplicaMaskWithTransformOrigin) {
reflection.Scale3d(-1.0, 1.0, 1.0);
grand_child1_replica->SetTransform(reflection);
// We need to set parent on replica layer for property tree building.
- grand_child1_replica->SetParent(grand_child1);
+ grand_child1_replica->test_properties()->parent = grand_child1;
grand_child1->SetReplicaLayer(std::move(grand_child1_replica));
grand_child1->test_properties()->force_render_surface = true;
}

Powered by Google App Engine
This is Rietveld 408576698