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

Unified Diff: Source/core/animation/AnimatableLengthSize.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/AnimatableLengthPoint.cpp ('k') | Source/core/animation/AnimatableLengthSize.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/AnimatableLengthSize.h
diff --git a/Source/core/animation/AnimatableLengthSize.h b/Source/core/animation/AnimatableLengthSize.h
index 4e2c8d9090592b9a3b1378525477ba6057297d30..ee0eba86997544eb47b5ecab2eb4104e54243829 100644
--- a/Source/core/animation/AnimatableLengthSize.h
+++ b/Source/core/animation/AnimatableLengthSize.h
@@ -38,19 +38,21 @@ namespace WebCore {
class AnimatableLengthSize FINAL : public AnimatableValue {
public:
virtual ~AnimatableLengthSize() { }
- static PassRefPtr<AnimatableLengthSize> create(PassRefPtr<AnimatableValue> width, PassRefPtr<AnimatableValue> height)
+ static PassRefPtrWillBeRawPtr<AnimatableLengthSize> create(PassRefPtrWillBeRawPtr<AnimatableValue> width, PassRefPtrWillBeRawPtr<AnimatableValue> height)
{
- return adoptRef(new AnimatableLengthSize(width, height));
+ return adoptRefWillBeNoop(new AnimatableLengthSize(width, height));
}
const AnimatableValue* width() const { return m_width.get(); }
const AnimatableValue* height() const { return m_height.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:
- AnimatableLengthSize(PassRefPtr<AnimatableValue> width, PassRefPtr<AnimatableValue> height)
+ AnimatableLengthSize(PassRefPtrWillBeRawPtr<AnimatableValue> width, PassRefPtrWillBeRawPtr<AnimatableValue> height)
: m_width(width)
, m_height(height)
{
@@ -58,8 +60,8 @@ private:
virtual AnimatableType type() const OVERRIDE { return TypeLengthSize; }
virtual bool equalTo(const AnimatableValue*) const OVERRIDE;
- RefPtr<AnimatableValue> m_width;
- RefPtr<AnimatableValue> m_height;
+ RefPtrWillBeMember<AnimatableValue> m_width;
+ RefPtrWillBeMember<AnimatableValue> m_height;
};
DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(AnimatableLengthSize, isLengthSize());
« no previous file with comments | « Source/core/animation/AnimatableLengthPoint.cpp ('k') | Source/core/animation/AnimatableLengthSize.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698