mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 12:20:56 +00:00
Bug 1239945 part 4 - Remove the pointer from an AnimationCollection to its manager since it is no longer used; r=dholbert
This commit is contained in:
parent
5413ebdb9d
commit
f6ce89fead
@ -21,16 +21,13 @@ class nsPresContext;
|
||||
|
||||
namespace mozilla {
|
||||
|
||||
class CommonAnimationManager;
|
||||
typedef InfallibleTArray<RefPtr<dom::Animation>> AnimationPtrArray;
|
||||
|
||||
struct AnimationCollection : public LinkedListElement<AnimationCollection>
|
||||
{
|
||||
AnimationCollection(dom::Element *aElement, nsIAtom *aElementProperty,
|
||||
CommonAnimationManager *aManager)
|
||||
AnimationCollection(dom::Element* aElement, nsIAtom* aElementProperty)
|
||||
: mElement(aElement)
|
||||
, mElementProperty(aElementProperty)
|
||||
, mManager(aManager)
|
||||
, mCheckGeneration(0)
|
||||
#ifdef DEBUG
|
||||
, mCalledPropertyDtor(false)
|
||||
@ -92,8 +89,6 @@ public:
|
||||
// i.e., in an atom list)
|
||||
nsIAtom *mElementProperty;
|
||||
|
||||
CommonAnimationManager *mManager;
|
||||
|
||||
AnimationPtrArray mAnimations;
|
||||
|
||||
// For CSS transitions only, we record the most recent generation
|
||||
|
@ -92,7 +92,7 @@ CommonAnimationManager::GetAnimationCollection(dom::Element *aElement,
|
||||
static_cast<AnimationCollection*>(aElement->GetProperty(propName));
|
||||
if (!collection && aCreateIfNeeded) {
|
||||
// FIXME: Consider arena-allocating?
|
||||
collection = new AnimationCollection(aElement, propName, this);
|
||||
collection = new AnimationCollection(aElement, propName);
|
||||
nsresult rv =
|
||||
aElement->SetProperty(propName, collection,
|
||||
&AnimationCollection::PropertyDtor, false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user