| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/layers/layer_position_constraint.h" | 5 #include "cc/layers/layer_position_constraint.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "cc/layers/layer.h" | 9 #include "cc/layers/layer.h" |
| 10 #include "cc/layers/layer_impl.h" | 10 #include "cc/layers/layer_impl.h" |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 root_impl_(nullptr), | 70 root_impl_(nullptr), |
| 71 inner_viewport_container_layer_impl_(nullptr), | 71 inner_viewport_container_layer_impl_(nullptr), |
| 72 scroll_layer_impl_(nullptr), | 72 scroll_layer_impl_(nullptr), |
| 73 outer_viewport_container_layer_impl_(nullptr), | 73 outer_viewport_container_layer_impl_(nullptr), |
| 74 child_transform_layer_impl_(nullptr), | 74 child_transform_layer_impl_(nullptr), |
| 75 child_impl_(nullptr), | 75 child_impl_(nullptr), |
| 76 grand_child_impl_(nullptr), | 76 grand_child_impl_(nullptr), |
| 77 great_grand_child_impl_(nullptr) { | 77 great_grand_child_impl_(nullptr) { |
| 78 layer_tree_host_->InitializeForTesting( | 78 layer_tree_host_->InitializeForTesting( |
| 79 TaskRunnerProvider::Create(nullptr, nullptr), | 79 TaskRunnerProvider::Create(nullptr, nullptr), |
| 80 scoped_ptr<Proxy>(new FakeProxy)); | 80 scoped_ptr<Proxy>(new FakeProxy), nullptr); |
| 81 CreateTreeForTest(); | 81 CreateTreeForTest(); |
| 82 fixed_to_top_left_.set_is_fixed_position(true); | 82 fixed_to_top_left_.set_is_fixed_position(true); |
| 83 fixed_to_bottom_right_.set_is_fixed_position(true); | 83 fixed_to_bottom_right_.set_is_fixed_position(true); |
| 84 fixed_to_bottom_right_.set_is_fixed_to_right_edge(true); | 84 fixed_to_bottom_right_.set_is_fixed_to_right_edge(true); |
| 85 fixed_to_bottom_right_.set_is_fixed_to_bottom_edge(true); | 85 fixed_to_bottom_right_.set_is_fixed_to_bottom_edge(true); |
| 86 } | 86 } |
| 87 | 87 |
| 88 void CreateTreeForTest() { | 88 void CreateTreeForTest() { |
| 89 // scroll_layer_ is the inner viewport scroll layer and child_ is the outer | 89 // scroll_layer_ is the inner viewport scroll layer and child_ is the outer |
| 90 // viewport scroll layer. | 90 // viewport scroll layer. |
| (...skipping 1064 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1155 VerifySerializeAndDeserializeProto(true, false, true); | 1155 VerifySerializeAndDeserializeProto(true, false, true); |
| 1156 VerifySerializeAndDeserializeProto(true, false, false); | 1156 VerifySerializeAndDeserializeProto(true, false, false); |
| 1157 VerifySerializeAndDeserializeProto(false, true, true); | 1157 VerifySerializeAndDeserializeProto(false, true, true); |
| 1158 VerifySerializeAndDeserializeProto(false, true, false); | 1158 VerifySerializeAndDeserializeProto(false, true, false); |
| 1159 VerifySerializeAndDeserializeProto(false, false, true); | 1159 VerifySerializeAndDeserializeProto(false, false, true); |
| 1160 VerifySerializeAndDeserializeProto(false, false, false); | 1160 VerifySerializeAndDeserializeProto(false, false, false); |
| 1161 } | 1161 } |
| 1162 | 1162 |
| 1163 } // namespace | 1163 } // namespace |
| 1164 } // namespace cc | 1164 } // namespace cc |
| OLD | NEW |