Chromium Code Reviews| Index: Source/core/animation/StringKeyframe.cpp |
| diff --git a/Source/core/animation/StringKeyframe.cpp b/Source/core/animation/StringKeyframe.cpp |
| index 82810b8d47303bddf8481ecfb0c0bdd34a809b53..695bf67abc496cc3776852ceaef9ae61e8ba6e25 100644 |
| --- a/Source/core/animation/StringKeyframe.cpp |
| +++ b/Source/core/animation/StringKeyframe.cpp |
| @@ -402,6 +402,26 @@ PassRefPtrWillBeRawPtr<Interpolation> StringKeyframe::CSSPropertySpecificKeyfram |
| break; |
| } |
| + case CSSPropertyTranslate: { |
| + RefPtrWillBeRawPtr<Interpolation> interpolation = ListStyleInterpolation<LengthStyleInterpolation>::maybeCreateFromList(*fromCSSValue, *toCSSValue, property, range); |
| + if (interpolation) |
| + return interpolation.release(); |
| + |
| + // TODO: Legacy mode is used when from and to cssvaluelist length does not match. |
|
alancutter (OOO until 2018)
2015/06/26 02:56:15
It's Blink style to add your username to any TODOs
|
| + fallBackToLegacy = true; |
| + break; |
| + } |
| + |
| + case CSSPropertyScale: { |
| + RefPtrWillBeRawPtr<Interpolation> interpolation = ListStyleInterpolation<DoubleStyleInterpolation>::maybeCreateFromList(*fromCSSValue, *toCSSValue, property, range); |
| + if (interpolation) |
| + return interpolation.release(); |
| + |
| + // TODO: Legacy mode is used when from and to cssvaluelist length does not match. |
| + fallBackToLegacy = true; |
| + break; |
| + } |
| + |
| default: |
| // Fall back to LegacyStyleInterpolation. |
| fallBackToLegacy = true; |