mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1024343: The document should not stop animations when it is being swapped. r=smaug
This commit is contained in:
parent
50309716ae
commit
4e4c3a735c
@ -9302,7 +9302,10 @@ nsDocument::OnPageHide(bool aPersisted,
|
||||
mAnimationController->OnPageHide();
|
||||
}
|
||||
|
||||
if (aPersisted) {
|
||||
// We do not stop the animations (bug 1024343)
|
||||
// when the page is refreshing while being dragged out
|
||||
nsDocShell* docShell = mDocumentContainer.get();
|
||||
if (aPersisted && !(docShell && docShell->InFrameSwap())) {
|
||||
SetImagesNeedAnimating(false);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user