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

Unified Diff: Source/core/animation/css/CSSAnimationDataList.h

Issue 207683005: Oilpan: Move CSSAnimationData and CSSAnimationDataList 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/css/CSSAnimationData.cpp ('k') | Source/core/animation/css/CSSAnimationDataList.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/css/CSSAnimationDataList.h
diff --git a/Source/core/animation/css/CSSAnimationDataList.h b/Source/core/animation/css/CSSAnimationDataList.h
index 03a4ef0c0c3111ae9e5ab52b9a4e40fd0a58898e..9c178bf75066f902cb18f7464d073c8942b0127e 100644
--- a/Source/core/animation/css/CSSAnimationDataList.h
+++ b/Source/core/animation/css/CSSAnimationDataList.h
@@ -31,8 +31,8 @@
namespace WebCore {
-class CSSAnimationDataList {
- WTF_MAKE_FAST_ALLOCATED;
+class CSSAnimationDataList FINAL : public NoBaseWillBeGarbageCollected<CSSAnimationDataList> {
+ WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
public:
CSSAnimationDataList() { }
explicit CSSAnimationDataList(const CSSAnimationDataList&);
@@ -49,15 +49,17 @@ public:
void resize(size_t n) { m_animations.resize(n); }
void remove(size_t i) { m_animations.remove(i); }
- void append(PassRefPtr<CSSAnimationData> anim) { m_animations.append(anim); }
+ void append(PassRefPtrWillBeRawPtr<CSSAnimationData> anim) { m_animations.append(anim); }
CSSAnimationData* animation(size_t i) { return m_animations[i].get(); }
const CSSAnimationData* animation(size_t i) const { return m_animations[i].get(); }
+ void trace(Visitor*);
+
private:
CSSAnimationDataList& operator=(const CSSAnimationDataList&);
- Vector<RefPtr<CSSAnimationData> > m_animations;
+ WillBeHeapVector<RefPtrWillBeMember<CSSAnimationData> > m_animations;
};
« no previous file with comments | « Source/core/animation/css/CSSAnimationData.cpp ('k') | Source/core/animation/css/CSSAnimationDataList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698