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

Unified Diff: Source/core/animation/AnimatableLengthPoint.h

Issue 204743002: Oilpan: Move AnimatableValue's hierarchy to oilpan's heap (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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/AnimatableLengthPoint.h
diff --git a/Source/core/animation/AnimatableLengthPoint.h b/Source/core/animation/AnimatableLengthPoint.h
index 5728046189baef693272f3ab012caeb352761b98..1fb404bea3394a19b8a5db64863323c45e34b32d 100644
--- a/Source/core/animation/AnimatableLengthPoint.h
+++ b/Source/core/animation/AnimatableLengthPoint.h
@@ -38,19 +38,21 @@ namespace WebCore {
class AnimatableLengthPoint FINAL : public AnimatableValue {
public:
virtual ~AnimatableLengthPoint() { }
- static PassRefPtr<AnimatableLengthPoint> create(PassRefPtr<AnimatableValue> x, PassRefPtr<AnimatableValue> y)
+ static PassRefPtrWillBeRawPtr<AnimatableLengthPoint> create(PassRefPtrWillBeRawPtr<AnimatableValue> x, PassRefPtrWillBeRawPtr<AnimatableValue> y)
{
- return adoptRef(new AnimatableLengthPoint(x, y));
+ return adoptRefWillBeNoop(new AnimatableLengthPoint(x, y));
}
const AnimatableValue* x() const { return m_x.get(); }
const AnimatableValue* y() const { return m_y.get(); }
+ virtual void trace(Visitor*) OVERRIDE;
+
protected:
- virtual PassRefPtr<AnimatableValue> interpolateTo(const AnimatableValue*, double fraction) const OVERRIDE;
- virtual PassRefPtr<AnimatableValue> addWith(const AnimatableValue*) const OVERRIDE;
+ virtual PassRefPtrWillBeRawPtr<AnimatableValue> interpolateTo(const AnimatableValue*, double fraction) const OVERRIDE;
+ virtual PassRefPtrWillBeRawPtr<AnimatableValue> addWith(const AnimatableValue*) const OVERRIDE;
private:
- AnimatableLengthPoint(PassRefPtr<AnimatableValue> x, PassRefPtr<AnimatableValue> y)
+ AnimatableLengthPoint(PassRefPtrWillBeRawPtr<AnimatableValue> x, PassRefPtrWillBeRawPtr<AnimatableValue> y)
: m_x(x)
, m_y(y)
{
@@ -58,8 +60,8 @@ private:
virtual AnimatableType type() const OVERRIDE { return TypeLengthPoint; }
virtual bool equalTo(const AnimatableValue*) const OVERRIDE;
- RefPtr<AnimatableValue> m_x;
- RefPtr<AnimatableValue> m_y;
+ RefPtrWillBeMember<AnimatableValue> m_x;
+ RefPtrWillBeMember<AnimatableValue> m_y;
};
inline const AnimatableLengthPoint* toAnimatableLengthPoint(const AnimatableValue* value)
« no previous file with comments | « Source/core/animation/AnimatableLengthBoxAndBool.cpp ('k') | Source/core/animation/AnimatableLengthPoint.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698