Closed Bug 1344603 Opened 4 years ago Closed 4 years ago

Make StopAnimationsForElement() and StopTransitionsForElement() as a member function of CommonAnimationManager

Categories

(Core :: DOM: Animation, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla54
Tracking Status
firefox54 --- fixed

People

(Reporter: hiro, Assigned: hiro)

Details

Attachments

(1 file)

Actually I was also trying to move mEventDispatcher and related function to this mEventDispatcher into CommonAnimationManager but gave up. That's because it requires NS_IMPL_CYCLE_COLLECTION macro (and two more macrso), I did not come up with an easy way to use the macros for CommonAnimationManager.
I hope someone tries it in other bug.
I did use StopAnimationsForElement for the new member function here.  I initially use StopForElement() but it's little bit vague, so I did insert 'Animations' as a common word for CSS animations and transitions.
Brian, what do you think about the name?
Flags: needinfo?(bbirtles)
Seems fine to me.
Flags: needinfo?(bbirtles)
Comment on attachment 8843819 [details]
Bug 1344603 - Make Stop{Animations|Transitions}ForElement as a member function of CommonAnimationManager.

https://reviewboard.mozilla.org/r/117422/#review119046

LGTM
Attachment #8843819 - Flags: review?(boris.chiou) → review+
We're sorry, Autoland could not rebase your commits for you automatically. Please manually rebase your commits and try again.

hg error in cmd: hg rebase -s a5919d62c823 -d 26cf91f36f5e: rebasing 379572:a5919d62c823 "Bug 1344603 - Make Stop{Animations|Transitions}ForElement as a member function of CommonAnimationManager. r=boris" (tip)
merging layout/base/RestyleManager.cpp
merging layout/style/nsAnimationManager.cpp
merging layout/style/nsAnimationManager.h
warning: conflicts while merging layout/style/nsAnimationManager.cpp! (edit, then use 'hg resolve --mark')
unresolved conflicts (see hg resolve, then hg rebase --continue)
Thank you autoland! I am surprised that you had the ability to notify us when you could not merge commits.
Pushed by hikezoe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/911024a9cf3c
Make Stop{Animations|Transitions}ForElement as a member function of CommonAnimationManager. r=boris
https://hg.mozilla.org/mozilla-central/rev/911024a9cf3c
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
You need to log in before you can comment on or make changes to this bug.