Bug 1311592 - Stop using sync image decoding for tab switch paint (r=mattwoodrow)
DONTBUILD
--- a/dom/ipc/TabChild.cpp
+++ b/dom/ipc/TabChild.cpp
@@ -2631,18 +2631,17 @@ TabChild::RecvSetDocShellIsActive(const
// to paints as quickly as possible.
APZCCallbackHelper::SuppressDisplayport(true, presShell);
if (nsContentUtils::IsSafeToRunScript()) {
WebWidget()->PaintNowIfNeeded();
} else {
RefPtr<nsViewManager> vm = presShell->GetViewManager();
if (nsView* view = vm->GetRootView()) {
presShell->Paint(view, view->GetBounds(),
- nsIPresShell::PAINT_LAYERS |
- nsIPresShell::PAINT_SYNC_DECODE_IMAGES);
+ nsIPresShell::PAINT_LAYERS);
}
}
APZCCallbackHelper::SuppressDisplayport(false, presShell);
}
} else if (!aPreserveLayers) {
MakeHidden();
}