gecko-dev/xpfe/appshell
Kartikaya Gupta cf091ea0eb Bug 1328066 - Don't broadcast the live-resize events to all browser windows unnecessarily. r=mstange
The machinery for suppressing the displayport during live resizes
was using the Observer service. However, in the case of multiple
browser windows, this meant that all the open browser windows would
have their displayport suppressed if *any* of the browser windows
was being resized. This was mostly ok, as the displayport suppression
would be turned off once the resize ended. However, the code to
kick off a repaint with the unsuppressed displayport would only get
triggered on one of the windows (whichever happened to process the
unsuppress message last).

This patch stops using the Observer service for the implementation
machinery, and instead locates the active TabParent of the relevant
nsWindow, and invokes the displayport suppression directly on that.
This fixes the repainting bug and also avoids unnecessarily
broadcasting the suppression/unsuppression notification to windows
that don't neccessarily need it.

MozReview-Commit-ID: LBHOgOW9KUp
2017-02-01 10:38:16 -05:00
..
test Bug 1310297 - Remove test annotations using b2g, mulet or gonk: xpfe. r=RyanVM 2016-11-05 11:29:22 +01:00
LiveResizeListener.h Bug 1328066 - Don't broadcast the live-resize events to all browser windows unnecessarily. r=mstange 2017-02-01 10:38:16 -05:00
moz.build Bug 1328066 - Don't broadcast the live-resize events to all browser windows unnecessarily. r=mstange 2017-02-01 10:38:16 -05:00
nsAppShellCID.h
nsAppShellFactory.cpp
nsAppShellService.cpp Bug 1303196 - Part 2: Connect the DocGroup and TabGroup objects to nsGlobalWindow and nsDocument, ensuring that Opener is set early enough that it is correct, r=smaug 2016-10-27 15:53:35 -04:00
nsAppShellService.h Bug 1303196 - Part 2: Connect the DocGroup and TabGroup objects to nsGlobalWindow and nsDocument, ensuring that Opener is set early enough that it is correct, r=smaug 2016-10-27 15:53:35 -04:00
nsAppShellWindowEnumerator.cpp
nsAppShellWindowEnumerator.h
nsChromeTreeOwner.cpp Bug 1322414 - part 1 - remove GetContentShellById and id passing, r=bz 2016-12-08 11:12:36 -10:00
nsChromeTreeOwner.h
nsContentTreeOwner.cpp Bug 1334586 - Propagate reload flags when reloading pages with Large-Allocation headers, r=smaug 2017-01-31 14:08:20 -05:00
nsContentTreeOwner.h
nsIAppShellService.idl Bug 1303196 - Part 2: Connect the DocGroup and TabGroup objects to nsGlobalWindow and nsDocument, ensuring that Opener is set early enough that it is correct, r=smaug 2016-10-27 15:53:35 -04:00
nsIPopupWindowManager.idl
nsIWindowMediator.idl
nsIWindowMediatorListener.idl
nsIWindowlessBrowser.idl
nsIXULBrowserWindow.idl Bug 1329032 - Extend loadURIWithOptions by a triggeringPrincipal. r=bz,gijs 2017-01-18 08:24:55 +01:00
nsIXULWindow.idl Bug 1328066 - Don't broadcast the live-resize events to all browser windows unnecessarily. r=mstange 2017-02-01 10:38:16 -05:00
nsWebShellWindow.cpp Bug 1322414 - part 1 - remove GetContentShellById and id passing, r=bz 2016-12-08 11:12:36 -10:00
nsWebShellWindow.h Bug 1322414 - part 1 - remove GetContentShellById and id passing, r=bz 2016-12-08 11:12:36 -10:00
nsWindowMediator.cpp
nsWindowMediator.h
nsXULWindow.cpp Bug 1328066 - Don't broadcast the live-resize events to all browser windows unnecessarily. r=mstange 2017-02-01 10:38:16 -05:00
nsXULWindow.h Bug 1322414 - part 1 - remove GetContentShellById and id passing, r=bz 2016-12-08 11:12:36 -10:00