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

Unified Diff: Source/core/animation/AnimatableLengthBoxAndBool.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/AnimatableLengthBox.cpp ('k') | Source/core/animation/AnimatableLengthBoxAndBool.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/AnimatableLengthBoxAndBool.h
diff --git a/Source/core/animation/AnimatableLengthBoxAndBool.h b/Source/core/animation/AnimatableLengthBoxAndBool.h
index 96c1e6f0cbb66e6685602a46a6c0aece8d7e2321..4d1866162e9b03d982204df9d4c89ec191daaef5 100644
--- a/Source/core/animation/AnimatableLengthBoxAndBool.h
+++ b/Source/core/animation/AnimatableLengthBoxAndBool.h
@@ -38,20 +38,22 @@ namespace WebCore {
class AnimatableLengthBoxAndBool FINAL : public AnimatableValue {
public:
virtual ~AnimatableLengthBoxAndBool() { }
- static PassRefPtr<AnimatableLengthBoxAndBool> create(PassRefPtr<AnimatableValue> box, bool flag)
+ static PassRefPtrWillBeRawPtr<AnimatableLengthBoxAndBool> create(PassRefPtrWillBeRawPtr<AnimatableValue> box, bool flag)
{
- return adoptRef(new AnimatableLengthBoxAndBool(box, flag));
+ return adoptRefWillBeNoop(new AnimatableLengthBoxAndBool(box, flag));
}
const AnimatableValue* box() const { return m_box.get(); }
bool flag() const { return m_flag; }
+ 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;
virtual bool usesDefaultInterpolationWith(const AnimatableValue*) const OVERRIDE;
private:
- AnimatableLengthBoxAndBool(PassRefPtr<AnimatableValue> box, bool flag)
+ AnimatableLengthBoxAndBool(PassRefPtrWillBeRawPtr<AnimatableValue> box, bool flag)
: m_box(box)
, m_flag(flag)
{
@@ -59,7 +61,7 @@ private:
virtual AnimatableType type() const OVERRIDE { return TypeLengthBoxAndBool; }
virtual bool equalTo(const AnimatableValue*) const OVERRIDE;
- RefPtr<AnimatableValue> m_box;
+ RefPtrWillBeMember<AnimatableValue> m_box;
bool m_flag;
};
« no previous file with comments | « Source/core/animation/AnimatableLengthBox.cpp ('k') | Source/core/animation/AnimatableLengthBoxAndBool.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698