Backed out changeset 7eb6fa2d58d0 (bug 1584492) because D47410 failed to land CLOSED TREE

This commit is contained in:
Bogdan Tara 2019-09-27 18:07:27 +03:00
parent b095f7073f
commit de61717218
2 changed files with 1 additions and 19 deletions

View File

@ -111,8 +111,7 @@ struct nsWidgetInitData {
mSupportTranslucency(false),
mMouseTransparent(false),
mHasRemoteContent(false),
mAlwaysOnTop(false),
mPIPWindow(false) {}
mAlwaysOnTop(false) {}
nsWindowType mWindowType;
nsBorderStyle mBorderStyle;
@ -138,8 +137,6 @@ struct nsWidgetInitData {
bool mMouseTransparent;
bool mHasRemoteContent;
bool mAlwaysOnTop;
// Is PictureInPicture window
bool mPIPWindow;
};
#endif // nsWidgetInitData_h__

View File

@ -624,21 +624,6 @@ nsresult nsAppShellService::JustCreateTopWindow(
if (aChromeMask & nsIWebBrowserChrome::CHROME_ALWAYS_ON_TOP)
widgetInitData.mAlwaysOnTop = true;
#ifdef MOZ_WIDGET_GTK
// Linux/Gtk PIP window support. It's Chrome Toplevel window, always on top
// and without any bar.
uint32_t pipMask = nsIWebBrowserChrome::CHROME_ALWAYS_ON_TOP |
nsIWebBrowserChrome::CHROME_OPENAS_CHROME;
uint32_t barMask = nsIWebBrowserChrome::CHROME_MENUBAR |
nsIWebBrowserChrome::CHROME_TOOLBAR |
nsIWebBrowserChrome::CHROME_LOCATIONBAR |
nsIWebBrowserChrome::CHROME_STATUSBAR;
if (widgetInitData.mWindowType == eWindowType_toplevel &&
((aChromeMask & pipMask) == pipMask) && !(aChromeMask & barMask)) {
widgetInitData.mPIPWindow = true;
}
#endif
#ifdef XP_MACOSX
// Mac OS X sheet support
// Adding CHROME_OPENAS_CHROME to sheetMask makes modal windows opened from