Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(336)

Unified Diff: Source/core/animation/animatable/AnimatableValue.h

Issue 1276183004: Oilpan: Unship oilpan from temporary animation objects (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698