Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(351)

Unified Diff: Source/core/animation/css/CSSAnimatableValueFactory.cpp

Issue 1158603003: CSS Independent Transform Properties (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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:

Powered by Google App Engine
This is Rietveld 408576698