| Index: Source/core/animation/animatable/AnimatableValue.h
|
| diff --git a/Source/core/animation/animatable/AnimatableValue.h b/Source/core/animation/animatable/AnimatableValue.h
|
| index 71fa6944c14c882da74042800d0f3c19374800db..797e6b08a9e47eaa6e92a14b86139b8b05867bec 100644
|
| --- a/Source/core/animation/animatable/AnimatableValue.h
|
| +++ b/Source/core/animation/animatable/AnimatableValue.h
|
| @@ -38,13 +38,13 @@
|
|
|
| namespace blink {
|
|
|
| -class CORE_EXPORT AnimatableValue : public RefCountedWillBeGarbageCollectedFinalized<AnimatableValue> {
|
| +class CORE_EXPORT AnimatableValue : public RefCounted<AnimatableValue> {
|
| public:
|
| virtual ~AnimatableValue() { }
|
|
|
| static const AnimatableValue* neutralValue();
|
|
|
| - static PassRefPtrWillBeRawPtr<AnimatableValue> interpolate(const AnimatableValue*, const AnimatableValue*, double fraction);
|
| + static PassRefPtr<AnimatableValue> interpolate(const AnimatableValue*, const AnimatableValue*, double fraction);
|
| static bool usesDefaultInterpolation(const AnimatableValue* from, const AnimatableValue* to)
|
| {
|
| return !from->isSameType(to) || from->usesDefaultInterpolationWith(to);
|
| @@ -88,8 +88,6 @@ public:
|
| return value->type() == type();
|
| }
|
|
|
| - DEFINE_INLINE_VIRTUAL_TRACE() { }
|
| -
|
| protected:
|
| enum AnimatableType {
|
| TypeClipPathOperation,
|
| @@ -117,11 +115,11 @@ protected:
|
| };
|
|
|
| virtual bool usesDefaultInterpolationWith(const AnimatableValue* value) const { return false; }
|
| - virtual PassRefPtrWillBeRawPtr<AnimatableValue> interpolateTo(const AnimatableValue*, double fraction) const = 0;
|
| - static PassRefPtrWillBeRawPtr<AnimatableValue> defaultInterpolateTo(const AnimatableValue* left, const AnimatableValue* right, double fraction) { return takeConstRef((fraction < 0.5) ? left : right); }
|
| + virtual PassRefPtr<AnimatableValue> interpolateTo(const AnimatableValue*, double fraction) const = 0;
|
| + static PassRefPtr<AnimatableValue> defaultInterpolateTo(const AnimatableValue* left, const AnimatableValue* right, double fraction) { return takeConstRef((fraction < 0.5) ? left : right); }
|
|
|
| template <class T>
|
| - static PassRefPtrWillBeRawPtr<T> takeConstRef(const T* value) { return PassRefPtrWillBeRawPtr<T>(const_cast<T*>(value)); }
|
| + static PassRefPtr<T> takeConstRef(const T* value) { return PassRefPtr<T>(const_cast<T*>(value)); }
|
|
|
| private:
|
| virtual AnimatableType type() const = 0;
|
|
|