OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 11 matching lines...) Expand all Loading... |
22 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 22 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
23 */ | 23 */ |
24 | 24 |
25 #include "config.h" | 25 #include "config.h" |
26 | 26 |
27 #include "core/platform/animation/AnimationTranslationUtil.h" | 27 #include "core/platform/animation/AnimationTranslationUtil.h" |
28 | 28 |
29 #include "core/css/LengthFunctions.h" | 29 #include "core/css/LengthFunctions.h" |
30 #include "core/platform/animation/CSSAnimationData.h" | 30 #include "core/platform/animation/CSSAnimationData.h" |
31 #include "core/platform/animation/KeyframeValueList.h" | 31 #include "core/platform/animation/KeyframeValueList.h" |
32 #include "core/platform/graphics/FloatSize.h" | |
33 #include "core/platform/graphics/chromium/TransformSkMatrix44Conversions.h" | 32 #include "core/platform/graphics/chromium/TransformSkMatrix44Conversions.h" |
34 #include "core/platform/graphics/transforms/InterpolatedTransformOperation.h" | 33 #include "core/platform/graphics/transforms/InterpolatedTransformOperation.h" |
35 #include "core/platform/graphics/transforms/Matrix3DTransformOperation.h" | 34 #include "core/platform/graphics/transforms/Matrix3DTransformOperation.h" |
36 #include "core/platform/graphics/transforms/MatrixTransformOperation.h" | 35 #include "core/platform/graphics/transforms/MatrixTransformOperation.h" |
37 #include "core/platform/graphics/transforms/PerspectiveTransformOperation.h" | 36 #include "core/platform/graphics/transforms/PerspectiveTransformOperation.h" |
38 #include "core/platform/graphics/transforms/RotateTransformOperation.h" | 37 #include "core/platform/graphics/transforms/RotateTransformOperation.h" |
39 #include "core/platform/graphics/transforms/ScaleTransformOperation.h" | 38 #include "core/platform/graphics/transforms/ScaleTransformOperation.h" |
40 #include "core/platform/graphics/transforms/SkewTransformOperation.h" | 39 #include "core/platform/graphics/transforms/SkewTransformOperation.h" |
41 #include "core/platform/graphics/transforms/TransformOperations.h" | 40 #include "core/platform/graphics/transforms/TransformOperations.h" |
42 #include "core/platform/graphics/transforms/TranslateTransformOperation.h" | 41 #include "core/platform/graphics/transforms/TranslateTransformOperation.h" |
| 42 #include "platform/geometry/FloatSize.h" |
43 | 43 |
44 #include "public/platform/Platform.h" | 44 #include "public/platform/Platform.h" |
45 #include "public/platform/WebAnimation.h" | 45 #include "public/platform/WebAnimation.h" |
46 #include "public/platform/WebAnimationCurve.h" | 46 #include "public/platform/WebAnimationCurve.h" |
47 #include "public/platform/WebCompositorSupport.h" | 47 #include "public/platform/WebCompositorSupport.h" |
48 #include "public/platform/WebFloatAnimationCurve.h" | 48 #include "public/platform/WebFloatAnimationCurve.h" |
49 #include "public/platform/WebTransformAnimationCurve.h" | 49 #include "public/platform/WebTransformAnimationCurve.h" |
50 #include "public/platform/WebTransformOperations.h" | 50 #include "public/platform/WebTransformOperations.h" |
51 | 51 |
52 #include "wtf/OwnPtr.h" | 52 #include "wtf/OwnPtr.h" |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 | 294 |
295 if (values.property() == AnimatedPropertyOpacity) { | 295 if (values.property() == AnimatedPropertyOpacity) { |
296 OwnPtr<WebFloatAnimationCurve> curve = adoptPtr(Platform::current()->com
positorSupport()->createFloatAnimationCurve()); | 296 OwnPtr<WebFloatAnimationCurve> curve = adoptPtr(Platform::current()->com
positorSupport()->createFloatAnimationCurve()); |
297 return createWebAnimation<FloatAnimationValue, WebFloatKeyframe, WebFloa
tAnimationCurve>(values, animation, animationId, timeOffset, curve.get(), WebKit
::WebAnimation::TargetPropertyOpacity, FloatSize()); | 297 return createWebAnimation<FloatAnimationValue, WebFloatKeyframe, WebFloa
tAnimationCurve>(values, animation, animationId, timeOffset, curve.get(), WebKit
::WebAnimation::TargetPropertyOpacity, FloatSize()); |
298 } | 298 } |
299 | 299 |
300 return nullptr; | 300 return nullptr; |
301 } | 301 } |
302 | 302 |
303 } // namespace WebCore | 303 } // namespace WebCore |
OLD | NEW |