Bug 1024343: The document should not stop animations when it is being swapped. r=smaug

This commit is contained in:
Mihai Volmer 2015-08-21 17:23:14 -07:00
parent 50309716ae
commit 4e4c3a735c

View File

@ -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);
}