Index: Source/core/animation/DoubleStyleInterpolation.h |
diff --git a/Source/core/animation/DoubleStyleInterpolation.h b/Source/core/animation/DoubleStyleInterpolation.h |
index 7ac03f51b0297b51c982681a9296916d7048c2fa..1916c338cfcd68b086709a9dbcadbac21bd0a699 100644 |
--- a/Source/core/animation/DoubleStyleInterpolation.h |
+++ b/Source/core/animation/DoubleStyleInterpolation.h |
@@ -15,7 +15,7 @@ class CORE_EXPORT DoubleStyleInterpolation : public StyleInterpolation { |
public: |
static PassRefPtrWillBeRawPtr<DoubleStyleInterpolation> create(const CSSValue& start, const CSSValue& end, CSSPropertyID id, CSSPrimitiveValue::UnitType type, InterpolationRange clamp) |
{ |
- return adoptRefWillBeNoop(new DoubleStyleInterpolation(doubleToInterpolableValue(start), doubleToInterpolableValue(end), id, type == CSSPrimitiveValue::CSS_NUMBER, clamp, false)); |
+ return adoptRefWillBeNoop(new DoubleStyleInterpolation(doubleToInterpolableValue(start), doubleToInterpolableValue(end), id, type == CSSPrimitiveValue::CSS_NUMBER || type == CSSPrimitiveValue::CSS_INTEGER, clamp, false)); |
} |
static PassRefPtrWillBeRawPtr<DoubleStyleInterpolation> maybeCreateFromMotionRotation(const CSSValue& start, const CSSValue& end, CSSPropertyID); |