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

Unified Diff: Source/core/animation/AnimatableLengthBox.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
« no previous file with comments | « Source/core/animation/AnimatableLength.cpp ('k') | Source/core/animation/AnimatableLengthBox.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/AnimatableLengthBox.h
diff --git a/Source/core/animation/AnimatableLengthBox.h b/Source/core/animation/AnimatableLengthBox.h
index 209ae907213ef7b40b47af75c45105de978362e9..a710f4c66100afa112b6e07145e5c68fafa6e03c 100644
--- a/Source/core/animation/AnimatableLengthBox.h
+++ b/Source/core/animation/AnimatableLengthBox.h
@@ -38,21 +38,23 @@ namespace WebCore {
class AnimatableLengthBox FINAL : public AnimatableValue {
public:
virtual ~AnimatableLengthBox() { }
- static PassRefPtr<AnimatableLengthBox> create(PassRefPtr<AnimatableValue> left, PassRefPtr<AnimatableValue> right, PassRefPtr<AnimatableValue> top, PassRefPtr<AnimatableValue> bottom)
+ static PassRefPtrWillBeRawPtr<AnimatableLengthBox> create(PassRefPtrWillBeRawPtr<AnimatableValue> left, PassRefPtrWillBeRawPtr<AnimatableValue> right, PassRefPtrWillBeRawPtr<AnimatableValue> top, PassRefPtrWillBeRawPtr<AnimatableValue> bottom)
{
- return adoptRef(new AnimatableLengthBox(left, right, top, bottom));
+ return adoptRefWillBeNoop(new AnimatableLengthBox(left, right, top, bottom));
}
const AnimatableValue* left() const { return m_left.get(); }
const AnimatableValue* right() const { return m_right.get(); }
const AnimatableValue* top() const { return m_top.get(); }
const AnimatableValue* bottom() const { return m_bottom.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:
- AnimatableLengthBox(PassRefPtr<AnimatableValue> left, PassRefPtr<AnimatableValue> right, PassRefPtr<AnimatableValue> top, PassRefPtr<AnimatableValue> bottom)
+ AnimatableLengthBox(PassRefPtrWillBeRawPtr<AnimatableValue> left, PassRefPtrWillBeRawPtr<AnimatableValue> right, PassRefPtrWillBeRawPtr<AnimatableValue> top, PassRefPtrWillBeRawPtr<AnimatableValue> bottom)
: m_left(left)
, m_right(right)
, m_top(top)
@@ -62,10 +64,10 @@ private:
virtual AnimatableType type() const OVERRIDE { return TypeLengthBox; }
virtual bool equalTo(const AnimatableValue*) const OVERRIDE;
- RefPtr<AnimatableValue> m_left;
- RefPtr<AnimatableValue> m_right;
- RefPtr<AnimatableValue> m_top;
- RefPtr<AnimatableValue> m_bottom;
+ RefPtrWillBeMember<AnimatableValue> m_left;
+ RefPtrWillBeMember<AnimatableValue> m_right;
+ RefPtrWillBeMember<AnimatableValue> m_top;
+ RefPtrWillBeMember<AnimatableValue> m_bottom;
};
DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(AnimatableLengthBox, isLengthBox());
« no previous file with comments | « Source/core/animation/AnimatableLength.cpp ('k') | Source/core/animation/AnimatableLengthBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698