#ifndef CSSAnimationDataList_h
#define CSSAnimationDataList_h
#include "core/animation/css/CSSAnimationData.h"
#include "wtf/RefPtr.h"
#include "wtf/Vector.h"
namespace WebCore {
class CSSAnimationDataList FINAL : public NoBaseWillBeGarbageCollected<CSSAnimationDataList> {
WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
public:
CSSAnimationDataList() { }
explicit CSSAnimationDataList(const CSSAnimationDataList&);
void fillUnsetProperties();
bool operator==(const CSSAnimationDataList&) const;
bool operator!=(const CSSAnimationDataList& o) const
{
return !(*this == o);
}
size_t size() const { return m_animations.size(); }
bool isEmpty() const { return m_animations.isEmpty(); }
void resize(size_t n) { m_animations.resize(n); }
void remove(size_t i) { m_animations.remove(i); }
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&);
WillBeHeapVector<RefPtrWillBeMember<CSSAnimationData> > m_animations;
};
}
#endif