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

Unified Diff: cc/trees/layer_tree_host_impl_unittest.cc

Issue 1924933002: cc : Stop pushing properties not used by LayerImpl to LayerImpl (4) (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/trees/layer_tree_host_common_unittest.cc ('k') | cc/trees/layer_tree_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_impl_unittest.cc
diff --git a/cc/trees/layer_tree_host_impl_unittest.cc b/cc/trees/layer_tree_host_impl_unittest.cc
index 9ac417882da54ff692d7cb3883ff275f17064b91..ec4bc72fe514b68dcaf92a4bcdb3019094a2cb52 100644
--- a/cc/trees/layer_tree_host_impl_unittest.cc
+++ b/cc/trees/layer_tree_host_impl_unittest.cc
@@ -2013,11 +2013,11 @@ TEST_F(LayerTreeHostImplTest, ScrollDoesntBubble) {
child_clip = scroll_child_clip.get();
viewport_scroll->AddChild(std::move(scroll_child_clip));
- child_clip->SetScrollParent(parent);
+ child_clip->test_properties()->scroll_parent = parent;
std::unique_ptr<std::set<LayerImpl*>> scroll_children(
new std::set<LayerImpl*>);
scroll_children->insert(child_clip);
- parent->SetScrollChildren(scroll_children.release());
+ parent->test_properties()->scroll_children.reset(scroll_children.release());
SetNeedsRebuildPropertyTrees();
DrawFrame();
@@ -8178,9 +8178,10 @@ TEST_F(LayerTreeHostImplTest, ScrollInvisibleScrollerWithVisibleScrollChild) {
std::unique_ptr<std::set<LayerImpl*>> scroll_children(
new std::set<LayerImpl*>);
scroll_children->insert(scroll_child.get());
- invisible_scroll->SetScrollChildren(scroll_children.release());
+ invisible_scroll->test_properties()->scroll_children.reset(
+ scroll_children.release());
- scroll_child->SetScrollParent(invisible_scroll.get());
+ scroll_child->test_properties()->scroll_parent = invisible_scroll.get();
container->AddChild(std::move(invisible_scroll));
container->AddChild(std::move(scroll_child));
« no previous file with comments | « cc/trees/layer_tree_host_common_unittest.cc ('k') | cc/trees/layer_tree_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698