Bug 1415780 - Rename DelayedEventsDispatcher to AnimationEventDispatcher. r=birtles

We plan to use this class to dispatch web animation API events as well
(bug 1354501).

MozReview-Commit-ID: 7DMmc0aJzJ5

--HG--
extra : rebase_source : 445428771238ad31697cede8afbab35c1144a422
This commit is contained in:
Hiroyuki Ikezoe 2018-01-27 21:17:27 +09:00
Родитель 0340a8a1ca
Коммит 7fd0af8304
1 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -27,7 +27,7 @@ class nsPresContext;
namespace mozilla {
enum class CSSPseudoElementType : uint8_t;
template <class EventInfo> class DelayedEventDispatcher;
template <class EventInfo> class AnimationEventDispatcher;
namespace dom {
class Element;
@ -108,7 +108,7 @@ protected:
LinkedList<AnimationCollection<AnimationType>> mElementCollections;
nsPresContext *mPresContext; // weak (non-null from ctor to Disconnect)
mozilla::DelayedEventDispatcher<AnimationEventType> mEventDispatcher;
mozilla::AnimationEventDispatcher<AnimationEventType> mEventDispatcher;
};
/**
@ -180,10 +180,10 @@ private:
};
template <class EventInfo>
class DelayedEventDispatcher
class AnimationEventDispatcher
{
public:
DelayedEventDispatcher() : mIsSorted(true) { }
AnimationEventDispatcher() : mIsSorted(true) { }
void QueueEvents(nsTArray<EventInfo>&& aEvents)
{
@ -280,7 +280,7 @@ protected:
template <class EventInfo>
inline void
ImplCycleCollectionUnlink(DelayedEventDispatcher<EventInfo>& aField)
ImplCycleCollectionUnlink(AnimationEventDispatcher<EventInfo>& aField)
{
aField.Unlink();
}
@ -288,7 +288,7 @@ ImplCycleCollectionUnlink(DelayedEventDispatcher<EventInfo>& aField)
template <class EventInfo>
inline void
ImplCycleCollectionTraverse(nsCycleCollectionTraversalCallback& aCallback,
DelayedEventDispatcher<EventInfo>& aField,
AnimationEventDispatcher<EventInfo>& aField,
const char* aName,
uint32_t aFlags = 0)
{