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); } // --------------------------------------------------------------------------- // @@ -101,10 +112,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");