2015-05-03 22:32:37 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
2014-05-13 11:22:12 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
#include "AnimationTimeline.h"
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
|
2015-04-28 10:41:09 +03:00
|
|
|
NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(AnimationTimeline, mWindow, mAnimations)
|
2014-05-13 11:22:12 +04:00
|
|
|
|
2015-04-10 04:34:22 +03:00
|
|
|
NS_IMPL_CYCLE_COLLECTING_ADDREF(AnimationTimeline)
|
|
|
|
NS_IMPL_CYCLE_COLLECTING_RELEASE(AnimationTimeline)
|
2014-05-13 11:22:12 +04:00
|
|
|
|
2015-04-10 04:34:22 +03:00
|
|
|
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(AnimationTimeline)
|
|
|
|
NS_WRAPPERCACHE_INTERFACE_MAP_ENTRY
|
|
|
|
NS_INTERFACE_MAP_ENTRY(nsISupports)
|
|
|
|
NS_INTERFACE_MAP_END
|
2014-12-18 02:42:41 +03:00
|
|
|
|
2015-04-28 10:41:09 +03:00
|
|
|
void
|
|
|
|
AnimationTimeline::AddAnimation(Animation& aAnimation)
|
|
|
|
{
|
|
|
|
mAnimations.PutEntry(&aAnimation);
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
AnimationTimeline::RemoveAnimation(Animation& aAnimation)
|
|
|
|
{
|
|
|
|
mAnimations.RemoveEntry(&aAnimation);
|
|
|
|
}
|
|
|
|
|
2014-05-13 11:22:12 +04:00
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|