Index: third_party/WebKit/Source/core/animation/CSSLengthInterpolationType.cpp |
diff --git a/third_party/WebKit/Source/core/animation/CSSLengthInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSLengthInterpolationType.cpp |
index 0bb78e13d797d231357a19f72a1ad918151ff686..ccae56dc3fae6b5298073d6dbd3120033d771175 100644 |
--- a/third_party/WebKit/Source/core/animation/CSSLengthInterpolationType.cpp |
+++ b/third_party/WebKit/Source/core/animation/CSSLengthInterpolationType.cpp |
@@ -59,6 +59,13 @@ PassOwnPtr<InterpolableValue> CSSLengthInterpolationType::createInterpolablePixe |
return interpolableList.release(); |
} |
+InterpolationValue CSSLengthInterpolationType::createInterpolablePercent(double percent) |
+{ |
+ OwnPtr<InterpolableList> interpolableList = createNeutralInterpolableValue(); |
+ interpolableList->set(CSSPrimitiveValue::UnitTypePercentage, InterpolableNumber::create(percent)); |
+ return InterpolationValue(interpolableList.release(), CSSLengthNonInterpolableValue::create(true)); |
+} |
+ |
InterpolationValue CSSLengthInterpolationType::maybeConvertLength(const Length& length, float zoom) |
{ |
if (!length.isSpecified()) |