Bug 956704 - Introduce a mechanism for only suppressing animation frames. r=smaug
This commit is contained in:
@@ -7979,8 +7979,16 @@ nsDocShell::RestoreFromHistory()
|
||||
nsCOMPtr<nsIDocument> d = do_GetInterface(parent);
|
||||
if (d) {
|
||||
if (d->EventHandlingSuppressed()) {
|
||||
document->SuppressEventHandling(d->EventHandlingSuppressed());
|
||||
document->SuppressEventHandling(nsIDocument::eEvents,
|
||||
d->EventHandlingSuppressed());
|
||||
}
|
||||
|
||||
// Ick, it'd be nicer to not rewalk all of the subdocs here.
|
||||
if (d->AnimationsPaused()) {
|
||||
document->SuppressEventHandling(nsIDocument::eAnimationsOnly,
|
||||
d->AnimationsPaused());
|
||||
}
|
||||
|
||||
nsCOMPtr<nsPIDOMWindow> parentWindow = d->GetWindow();
|
||||
if (parentWindow) {
|
||||
parentSuspendCount = parentWindow->TimeoutSuspendCount();
|
||||
|
||||
Reference in New Issue
Block a user