Chromium Code Reviews| 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/layers/layer_impl.h" | 5 #include "cc/layers/layer_impl.h" |
| 6 | 6 |
| 7 #include "cc/animation/mutable_properties.h" | 7 #include "cc/animation/mutable_properties.h" |
| 8 #include "cc/layers/painted_scrollbar_layer_impl.h" | 8 #include "cc/layers/painted_scrollbar_layer_impl.h" |
| 9 #include "cc/layers/solid_color_scrollbar_layer_impl.h" | 9 #include "cc/layers/solid_color_scrollbar_layer_impl.h" |
| 10 #include "cc/output/filter_operation.h" | 10 #include "cc/output/filter_operation.h" |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 238 EXECUTE_AND_VERIFY_NEEDS_PUSH_PROPERTIES_AND_SUBTREE_DID_NOT_CHANGE( | 238 EXECUTE_AND_VERIFY_NEEDS_PUSH_PROPERTIES_AND_SUBTREE_DID_NOT_CHANGE( |
| 239 root->SetClipParent(clip_parent.get())); | 239 root->SetClipParent(clip_parent.get())); |
| 240 EXECUTE_AND_VERIFY_NEEDS_PUSH_PROPERTIES_AND_SUBTREE_DID_NOT_CHANGE( | 240 EXECUTE_AND_VERIFY_NEEDS_PUSH_PROPERTIES_AND_SUBTREE_DID_NOT_CHANGE( |
| 241 root->SetClipChildren(clip_children)); | 241 root->SetClipChildren(clip_children)); |
| 242 EXECUTE_AND_VERIFY_NEEDS_PUSH_PROPERTIES_AND_SUBTREE_DID_NOT_CHANGE( | 242 EXECUTE_AND_VERIFY_NEEDS_PUSH_PROPERTIES_AND_SUBTREE_DID_NOT_CHANGE( |
| 243 root->SetNumDescendantsThatDrawContent(10)); | 243 root->SetNumDescendantsThatDrawContent(10)); |
| 244 | 244 |
| 245 // After setting all these properties already, setting to the exact same | 245 // After setting all these properties already, setting to the exact same |
| 246 // values again should not cause any change. | 246 // values again should not cause any change. |
| 247 EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE( | 247 EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE( |
| 248 root->SetTransformOrigin(arbitrary_point_3f)); | 248 root->test_properties()->transform_origin = arbitrary_point_3f); |
|
ajuma
2016/04/20 22:01:12
Given that this has now moved to test_properties,
jaydasika
2016/04/20 22:05:43
Done.
| |
| 249 EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE(root->SetMasksToBounds(true)); | 249 EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE(root->SetMasksToBounds(true)); |
| 250 EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE( | 250 EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE( |
| 251 root->SetPosition(arbitrary_point_f)); | 251 root->SetPosition(arbitrary_point_f)); |
| 252 EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE( | 252 EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE( |
| 253 root->SetShouldFlattenTransform(false)); | 253 root->SetShouldFlattenTransform(false)); |
| 254 EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE(root->Set3dSortingContextId(1)); | 254 EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE(root->Set3dSortingContextId(1)); |
| 255 EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE( | 255 EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE( |
| 256 root->SetTransform(arbitrary_transform)); | 256 root->SetTransform(arbitrary_transform)); |
| 257 EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE( | 257 EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE( |
| 258 root->SetDoubleSided(false)); // constructor initializes it to "true". | 258 root->SetDoubleSided(false)); // constructor initializes it to "true". |
| (...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 667 | 667 |
| 668 pending_layer->PushPropertiesTo(layer()); | 668 pending_layer->PushPropertiesTo(layer()); |
| 669 | 669 |
| 670 EXPECT_VECTOR_EQ(gfx::Vector2dF(22, 23), layer()->CurrentScrollOffset()); | 670 EXPECT_VECTOR_EQ(gfx::Vector2dF(22, 23), layer()->CurrentScrollOffset()); |
| 671 EXPECT_VECTOR_EQ(layer()->CurrentScrollOffset(), | 671 EXPECT_VECTOR_EQ(layer()->CurrentScrollOffset(), |
| 672 pending_layer->CurrentScrollOffset()); | 672 pending_layer->CurrentScrollOffset()); |
| 673 } | 673 } |
| 674 | 674 |
| 675 } // namespace | 675 } // namespace |
| 676 } // namespace cc | 676 } // namespace cc |
| OLD | NEW |