Chromium Code Reviews| Index: Source/core/animation/css/CSSAnimatableValueFactory.cpp |
| diff --git a/Source/core/animation/css/CSSAnimatableValueFactory.cpp b/Source/core/animation/css/CSSAnimatableValueFactory.cpp |
| index abd9d8c51ef5f975efe67f65915e64d31ba6b226..ddfda28c8d60ebf95477de3e4c24a8ebf3dc93af 100644 |
| --- a/Source/core/animation/css/CSSAnimatableValueFactory.cpp |
| +++ b/Source/core/animation/css/CSSAnimatableValueFactory.cpp |
| @@ -519,6 +519,21 @@ PassRefPtrWillBeRawPtr<AnimatableValue> CSSAnimatableValueFactory::create(CSSPro |
| return createFromColor(property, style); |
| case CSSPropertyTransform: |
| return AnimatableTransform::create(style.transform()); |
| + case CSSPropertyTranslate: { |
| + TransformOperations op; |
| + op.operations().append(style.translate()); |
| + return AnimatableTransform::create(op); |
| + } |
| + case CSSPropertyRotate: { |
| + TransformOperations op; |
|
Eric Willigers
2015/06/05 01:58:22
Repetition could be avoided with a new method (in
soonm
2015/06/10 04:09:32
Done.
|
| + op.operations().append(style.rotate()); |
| + return AnimatableTransform::create(op); |
| + } |
| + case CSSPropertyScale: { |
| + TransformOperations op; |
| + op.operations().append(style.scale()); |
| + return AnimatableTransform::create(op); |
| + } |
| case CSSPropertyTransformOrigin: |
| return createFromTransformOrigin(style.transformOrigin(), style); |
| case CSSPropertyMotionOffset: |