Bug 1073336 part 11 - Move GetAnimationPlayers to base CommonAnimationManager class...
commit9acbbb61220b3ef51b9563857983ccab8f138bc9
authorBrian Birtles <birtles@gmail.com>
Mon, 17 Nov 2014 04:45:59 +0000 (17 13:45 +0900)
committerBrian Birtles <birtles@gmail.com>
Mon, 17 Nov 2014 04:45:59 +0000 (17 13:45 +0900)
tree9cac2609e5f13b45644647aa40e0353fce1e7570
parentbb9a6c6bf63b7ea2632a266a3df8a884172f48c4
Bug 1073336 part 11 - Move GetAnimationPlayers to base CommonAnimationManager class; r=dbaron

nsAnimationManager provides GetAnimationPlayers while nsTransitionManager
provides GetElementTransitions. Both perform the same function, namely, fetching
(and optionally creating if it does not exist) the AnimationPlayerCollection for
the specified element/pseudo. Furthermore, both take the same arguments.

This patch aligns the method names and makes this a virtual method on the base
class CommonAnimationManager so that it can be used generically from a pointer
to a CommonAnimationManager.
layout/style/AnimationCommon.h
layout/style/nsAnimationManager.h
layout/style/nsTransitionManager.cpp
layout/style/nsTransitionManager.h