| Index: Source/core/animation/interpolation/LengthStyleInterpolation.h
|
| diff --git a/Source/core/animation/interpolation/LengthStyleInterpolation.h b/Source/core/animation/interpolation/LengthStyleInterpolation.h
|
| index 17aa7d342eafac080b7f5f8f545c40d0a0efe886..d344957da8c00a54fa88a927bd1f06f0557b20ed 100644
|
| --- a/Source/core/animation/interpolation/LengthStyleInterpolation.h
|
| +++ b/Source/core/animation/interpolation/LengthStyleInterpolation.h
|
| @@ -6,14 +6,15 @@
|
| #define LengthStyleInterpolation_h
|
|
|
| #include "core/animation/interpolation/StyleInterpolation.h"
|
| +#include "platform/Length.h"
|
|
|
| namespace WebCore {
|
|
|
| class LengthStyleInterpolation : public StyleInterpolation {
|
| public:
|
| - static PassRefPtrWillBeRawPtr<LengthStyleInterpolation> create(CSSValue* start, CSSValue* end, CSSPropertyID id)
|
| + static PassRefPtrWillBeRawPtr<LengthStyleInterpolation> create(CSSValue* start, CSSValue* end, CSSPropertyID id, ValueRange range)
|
| {
|
| - return adoptRefWillBeNoop(new LengthStyleInterpolation(lengthToInterpolableValue(start), lengthToInterpolableValue(end), id));
|
| + return adoptRefWillBeNoop(new LengthStyleInterpolation(lengthToInterpolableValue(start), lengthToInterpolableValue(end), id, range));
|
| }
|
|
|
| static bool canCreateFrom(const CSSValue&);
|
| @@ -23,12 +24,15 @@ public:
|
| virtual void trace(Visitor*) OVERRIDE;
|
|
|
| private:
|
| - LengthStyleInterpolation(PassOwnPtrWillBeRawPtr<InterpolableValue> start, PassOwnPtrWillBeRawPtr<InterpolableValue> end, CSSPropertyID id)
|
| + LengthStyleInterpolation(PassOwnPtrWillBeRawPtr<InterpolableValue> start, PassOwnPtrWillBeRawPtr<InterpolableValue> end, CSSPropertyID id, ValueRange range)
|
| : StyleInterpolation(start, end, id)
|
| + , m_range(range)
|
| { }
|
|
|
| static PassOwnPtrWillBeRawPtr<InterpolableValue> lengthToInterpolableValue(CSSValue*);
|
| - static PassRefPtrWillBeRawPtr<CSSValue> interpolableValueToLength(InterpolableValue*);
|
| + static PassRefPtrWillBeRawPtr<CSSValue> interpolableValueToLength(InterpolableValue*, ValueRange);
|
| +
|
| + ValueRange m_range;
|
|
|
| friend class AnimationLengthStyleInterpolationTest;
|
| };
|
|
|