OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013, Google Inc. All rights reserved. | 2 * Copyright (c) 2013, Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 12 matching lines...) Expand all Loading... |
23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #include "core/animation/CompositorAnimations.h" | 31 #include "core/animation/CompositorAnimations.h" |
32 | 32 |
| 33 #include <memory> |
33 #include "core/animation/Animation.h" | 34 #include "core/animation/Animation.h" |
34 #include "core/animation/AnimationTimeline.h" | 35 #include "core/animation/AnimationTimeline.h" |
35 #include "core/animation/CompositorPendingAnimations.h" | 36 #include "core/animation/CompositorPendingAnimations.h" |
36 #include "core/animation/ElementAnimations.h" | 37 #include "core/animation/ElementAnimations.h" |
37 #include "core/animation/KeyframeEffect.h" | 38 #include "core/animation/KeyframeEffect.h" |
38 #include "core/animation/animatable/AnimatableDouble.h" | 39 #include "core/animation/animatable/AnimatableDouble.h" |
39 #include "core/animation/animatable/AnimatableFilterOperations.h" | 40 #include "core/animation/animatable/AnimatableFilterOperations.h" |
40 #include "core/animation/animatable/AnimatableTransform.h" | 41 #include "core/animation/animatable/AnimatableTransform.h" |
41 #include "core/animation/animatable/AnimatableValueTestHelper.h" | 42 #include "core/animation/animatable/AnimatableValueTestHelper.h" |
42 #include "core/dom/Document.h" | 43 #include "core/dom/Document.h" |
43 #include "core/layout/LayoutObject.h" | 44 #include "core/layout/LayoutObject.h" |
44 #include "core/paint/ObjectPaintProperties.h" | 45 #include "core/paint/ObjectPaintProperties.h" |
45 #include "core/style/FilterOperations.h" | 46 #include "core/style/FilterOperations.h" |
46 #include "core/testing/DummyPageHolder.h" | 47 #include "core/testing/DummyPageHolder.h" |
47 #include "platform/animation/CompositorAnimation.h" | 48 #include "platform/animation/CompositorAnimation.h" |
48 #include "platform/animation/CompositorFloatAnimationCurve.h" | 49 #include "platform/animation/CompositorFloatAnimationCurve.h" |
49 #include "platform/animation/CompositorFloatKeyframe.h" | 50 #include "platform/animation/CompositorFloatKeyframe.h" |
50 #include "platform/geometry/FloatBox.h" | 51 #include "platform/geometry/FloatBox.h" |
51 #include "platform/geometry/IntSize.h" | 52 #include "platform/geometry/IntSize.h" |
52 #include "platform/testing/RuntimeEnabledFeaturesTestHelpers.h" | 53 #include "platform/testing/RuntimeEnabledFeaturesTestHelpers.h" |
53 #include "platform/transforms/TransformOperations.h" | 54 #include "platform/transforms/TransformOperations.h" |
54 #include "platform/transforms/TranslateTransformOperation.h" | 55 #include "platform/transforms/TranslateTransformOperation.h" |
55 #include "testing/gtest/include/gtest/gtest.h" | 56 #include "testing/gtest/include/gtest/gtest.h" |
56 #include "wtf/HashFunctions.h" | 57 #include "wtf/HashFunctions.h" |
57 #include "wtf/PassRefPtr.h" | 58 #include "wtf/PassRefPtr.h" |
58 #include "wtf/PtrUtil.h" | 59 #include "wtf/PtrUtil.h" |
59 #include "wtf/RefPtr.h" | 60 #include "wtf/RefPtr.h" |
60 #include <memory> | |
61 | 61 |
62 namespace blink { | 62 namespace blink { |
63 | 63 |
64 class AnimationCompositorAnimationsTest : public ::testing::Test { | 64 class AnimationCompositorAnimationsTest : public ::testing::Test { |
65 protected: | 65 protected: |
66 RefPtr<TimingFunction> m_linearTimingFunction; | 66 RefPtr<TimingFunction> m_linearTimingFunction; |
67 RefPtr<TimingFunction> m_cubicEaseTimingFunction; | 67 RefPtr<TimingFunction> m_cubicEaseTimingFunction; |
68 RefPtr<TimingFunction> m_cubicCustomTimingFunction; | 68 RefPtr<TimingFunction> m_cubicCustomTimingFunction; |
69 RefPtr<TimingFunction> m_stepTimingFunction; | 69 RefPtr<TimingFunction> m_stepTimingFunction; |
70 | 70 |
(...skipping 1250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1321 | 1321 |
1322 // Clearing the effect node entirely should also produce false. | 1322 // Clearing the effect node entirely should also produce false. |
1323 properties.clearEffect(); | 1323 properties.clearEffect(); |
1324 EXPECT_FALSE(CompositorAnimations::canStartAnimationOnCompositor(*element)); | 1324 EXPECT_FALSE(CompositorAnimations::canStartAnimationOnCompositor(*element)); |
1325 | 1325 |
1326 element->setLayoutObject(nullptr); | 1326 element->setLayoutObject(nullptr); |
1327 LayoutObjectProxy::dispose(layoutObject); | 1327 LayoutObjectProxy::dispose(layoutObject); |
1328 } | 1328 } |
1329 | 1329 |
1330 } // namespace blink | 1330 } // namespace blink |
OLD | NEW |