Index: Source/core/animation/StringKeyframe.cpp |
diff --git a/Source/core/animation/StringKeyframe.cpp b/Source/core/animation/StringKeyframe.cpp |
index 82810b8d47303bddf8481ecfb0c0bdd34a809b53..beb1aeeb533e7ddb8f4fc4682da754bed7a240a2 100644 |
--- a/Source/core/animation/StringKeyframe.cpp |
+++ b/Source/core/animation/StringKeyframe.cpp |
@@ -402,6 +402,24 @@ PassRefPtrWillBeRawPtr<Interpolation> StringKeyframe::CSSPropertySpecificKeyfram |
break; |
} |
+ case CSSPropertyTranslate: { |
+ RefPtrWillBeRawPtr<Interpolation> interpolation = ListStyleInterpolation<LengthStyleInterpolation>::maybeCreateFromList(*fromCSSValue, *toCSSValue, property, range); |
+ if (interpolation) |
+ return interpolation.release(); |
+ |
+ fallBackToLegacy = true; |
Eric Willigers
2015/06/24 03:43:08
Do we need this line? Same for Scale. I suspect we
soonm
2015/06/24 05:00:44
ListStyleInterpolation does not handle the case wh
alancutter (OOO until 2018)
2015/06/25 01:33:09
Add TODO for this for now just so it's clear what'
soonm
2015/06/26 02:52:34
Done - Add TODO about legacy mode when list are di
soonm
2015/06/26 02:52:34
Done - Add TODO about legacy mode when list are di
|
+ break; |
+ } |
+ |
+ case CSSPropertyScale: { |
+ RefPtrWillBeRawPtr<Interpolation> interpolation = ListStyleInterpolation<DoubleStyleInterpolation>::maybeCreateFromList(*fromCSSValue, *toCSSValue, property, range); |
+ if (interpolation) |
+ return interpolation.release(); |
+ |
+ fallBackToLegacy = true; |
+ break; |
+ } |
+ |
default: |
// Fall back to LegacyStyleInterpolation. |
fallBackToLegacy = true; |