| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "cc/trees/layer_tree_host_common.h" | 5 #include "cc/trees/layer_tree_host_common.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 10669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10680 // The node owned by parent2 | 10680 // The node owned by parent2 |
| 10681 ScrollNode scroll_parent2; | 10681 ScrollNode scroll_parent2; |
| 10682 scroll_parent2.id = 2; | 10682 scroll_parent2.id = 2; |
| 10683 scroll_parent2.owning_layer_id = parent2->id(); | 10683 scroll_parent2.owning_layer_id = parent2->id(); |
| 10684 scroll_parent2.scrollable = true; | 10684 scroll_parent2.scrollable = true; |
| 10685 scroll_parent2.main_thread_scrolling_reasons = | 10685 scroll_parent2.main_thread_scrolling_reasons = |
| 10686 parent2->main_thread_scrolling_reasons(); | 10686 parent2->main_thread_scrolling_reasons(); |
| 10687 scroll_parent2.scroll_clip_layer_bounds = root1->bounds(); | 10687 scroll_parent2.scroll_clip_layer_bounds = root1->bounds(); |
| 10688 scroll_parent2.bounds = parent2->bounds(); | 10688 scroll_parent2.bounds = parent2->bounds(); |
| 10689 scroll_parent2.max_scroll_offset_affected_by_page_scale = true; | 10689 scroll_parent2.max_scroll_offset_affected_by_page_scale = true; |
| 10690 scroll_parent2.is_inner_viewport_scroll_layer = true; | 10690 scroll_parent2.scrolls_inner_viewport = true; |
| 10691 scroll_parent2.user_scrollable_horizontal = true; | 10691 scroll_parent2.user_scrollable_horizontal = true; |
| 10692 scroll_parent2.user_scrollable_vertical = true; | 10692 scroll_parent2.user_scrollable_vertical = true; |
| 10693 scroll_parent2.transform_id = parent2->transform_tree_index(); | 10693 scroll_parent2.transform_id = parent2->transform_tree_index(); |
| 10694 expected_scroll_tree.Insert(scroll_parent2, 1); | 10694 expected_scroll_tree.Insert(scroll_parent2, 1); |
| 10695 | 10695 |
| 10696 // The node owned by child6 | 10696 // The node owned by child6 |
| 10697 ScrollNode scroll_child6; | 10697 ScrollNode scroll_child6; |
| 10698 scroll_child6.id = 3; | 10698 scroll_child6.id = 3; |
| 10699 scroll_child6.owning_layer_id = child6->id(); | 10699 scroll_child6.owning_layer_id = child6->id(); |
| 10700 scroll_child6.main_thread_scrolling_reasons = | 10700 scroll_child6.main_thread_scrolling_reasons = |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10752 EXPECT_EQ(scroll_child6.id, grand_child10->scroll_tree_index()); | 10752 EXPECT_EQ(scroll_child6.id, grand_child10->scroll_tree_index()); |
| 10753 EXPECT_EQ(scroll_root1.id, parent3->scroll_tree_index()); | 10753 EXPECT_EQ(scroll_root1.id, parent3->scroll_tree_index()); |
| 10754 EXPECT_EQ(scroll_child7.id, child8->scroll_tree_index()); | 10754 EXPECT_EQ(scroll_child7.id, child8->scroll_tree_index()); |
| 10755 EXPECT_EQ(scroll_root1.id, parent4->scroll_tree_index()); | 10755 EXPECT_EQ(scroll_root1.id, parent4->scroll_tree_index()); |
| 10756 EXPECT_EQ(scroll_root1.id, child9->scroll_tree_index()); | 10756 EXPECT_EQ(scroll_root1.id, child9->scroll_tree_index()); |
| 10757 EXPECT_EQ(scroll_root1.id, grand_child12->scroll_tree_index()); | 10757 EXPECT_EQ(scroll_root1.id, grand_child12->scroll_tree_index()); |
| 10758 } | 10758 } |
| 10759 | 10759 |
| 10760 } // namespace | 10760 } // namespace |
| 10761 } // namespace cc | 10761 } // namespace cc |
| OLD | NEW |