Chromium Code Reviews| Index: Source/core/animation/StringKeyframe.cpp |
| diff --git a/Source/core/animation/StringKeyframe.cpp b/Source/core/animation/StringKeyframe.cpp |
| index 76e4fcf7843944e1b8c7d0418a1923e5d4df1720..671f24d67576c18d8f350bc222788e1cee02345e 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; |
|
alancutter (OOO until 2018)
2015/06/24 01:17:09
I suspect you don't need this, see if your tests s
soonm
2015/06/24 02:53:19
I still need this when the lists are different len
|
| + 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; |