зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1134379 - Cancel old AnimationPlayer when redirecting a transition. r=birtles
This commit is contained in:
Родитель
debfad6d05
Коммит
40b914bc13
|
@ -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)) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче