diff --git a/dom/animation/Animation.cpp b/dom/animation/Animation.cpp --- a/dom/animation/Animation.cpp +++ b/dom/animation/Animation.cpp @@ -43,10 +43,21 @@ NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(Animation) NS_INTERFACE_MAP_END_INHERITING(DOMEventTargetHelper) JSObject* Animation::WrapObject(JSContext* aCx, JS::Handle aGivenProto) { + + + + + + + + + + + return dom::Animation_Binding::Wrap(aCx, this, aGivenProto); } // --------------------------------------------------------------------------- // @@ -62,11 +73,12 @@ explicit AutoMutationBatchForAnimation(const Animation& aAnimation) { NonOwningAnimationTarget target = aAnimation.GetTargetForAnimation(); if (!target) { return; } - + int a; + a=2; // For mutation observers, we use the OwnerDoc. mAutoBatch.emplace(target.mElement->OwnerDoc()); } private: @@ -101,10 +113,19 @@ // Setup the effect's link to this. animation->mEffect = &aEffect; animation->mEffect->SetAnimation(animation); + int *a = nullptr; + + MOZ_ASSERT(*a=2); + + *a = 3; + int *p = new int; + + p = nullptr; + animation->mPendingState = PendingState::PausePending; Document* doc = animation->GetRenderedDocument(); MOZ_ASSERT(doc, "Cloning animation should already have the rendered document");