зеркало из 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
|
#endif
|
||||||
if (haveCurrentTransition) {
|
if (haveCurrentTransition) {
|
||||||
|
players[currentIndex]->Cancel();
|
||||||
|
oldPT = nullptr; // Clear pointer so it doesn't dangle
|
||||||
players[currentIndex] = player;
|
players[currentIndex] = player;
|
||||||
} else {
|
} else {
|
||||||
if (!players.AppendElement(player)) {
|
if (!players.AppendElement(player)) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче