This commit is contained in:
Carsten "Tomcat" Book 2016-02-10 14:17:05 +01:00
Родитель 10ac35cdac
Коммит 106a8ed3ab
2 изменённых файлов: 10 добавлений и 2 удалений

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

@ -313,7 +313,11 @@ public:
* accumulate animationstart events at other points when style
* contexts are created.
*/
void DispatchEvents() { mEventDispatcher.DispatchEvents(mPresContext); }
void DispatchEvents()
{
RefPtr<nsAnimationManager> kungFuDeathGrip(this);
mEventDispatcher.DispatchEvents(mPresContext);
}
void SortEvents() { mEventDispatcher.SortEvents(); }
void ClearEventQueue() { mEventDispatcher.ClearEventQueue(); }

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

@ -306,7 +306,11 @@ public:
mozilla::Forward<mozilla::TransitionEventInfo>(aEventInfo));
}
void DispatchEvents() { mEventDispatcher.DispatchEvents(mPresContext); }
void DispatchEvents()
{
RefPtr<nsTransitionManager> kungFuDeathGrip(this);
mEventDispatcher.DispatchEvents(mPresContext);
}
void SortEvents() { mEventDispatcher.SortEvents(); }
void ClearEventQueue() { mEventDispatcher.ClearEventQueue(); }