Bug 1134379 - Cancel old AnimationPlayer when redirecting a transition. r=birtles

This commit is contained in:
Cameron McCormack 2015-02-19 11:52:36 +11:00
Родитель debfad6d05
Коммит 40b914bc13
1 изменённых файлов: 2 добавлений и 0 удалений

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

@ -581,6 +581,8 @@ nsTransitionManager::ConsiderStartingTransition(
}
#endif
if (haveCurrentTransition) {
players[currentIndex]->Cancel();
oldPT = nullptr; // Clear pointer so it doesn't dangle
players[currentIndex] = player;
} else {
if (!players.AppendElement(player)) {