mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1228655 - Remove ifdefs in browser-fullscreen.js. r=Gijs
This commit is contained in:
parent
f9d5b7b661
commit
0747418b57
@ -49,11 +49,11 @@ var FullScreen = {
|
||||
fullscreenCommand.removeAttribute("checked");
|
||||
}
|
||||
|
||||
#ifdef XP_MACOSX
|
||||
// Make sure the menu items are adjusted.
|
||||
document.getElementById("enterFullScreenItem").hidden = enterFS;
|
||||
document.getElementById("exitFullScreenItem").hidden = !enterFS;
|
||||
#endif
|
||||
if (AppConstants.platform == "macosx") {
|
||||
// Make sure the menu items are adjusted.
|
||||
document.getElementById("enterFullScreenItem").hidden = enterFS;
|
||||
document.getElementById("exitFullScreenItem").hidden = !enterFS;
|
||||
}
|
||||
|
||||
if (!this._fullScrToggler) {
|
||||
this._fullScrToggler = document.getElementById("fullscr-toggler");
|
||||
@ -633,10 +633,6 @@ XPCOMUtils.defineLazyGetter(FullScreen, "useLionFullScreen", function() {
|
||||
// * on OS X
|
||||
// * on Lion or higher (Darwin 11+)
|
||||
// * have fullscreenbutton="true"
|
||||
#ifdef XP_MACOSX
|
||||
return parseFloat(Services.sysinfo.getProperty("version")) >= 11 &&
|
||||
return AppConstants.isPlatformAndVersionAtLeast("macosx", 11) &&
|
||||
document.documentElement.getAttribute("fullscreenbutton") == "true";
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
});
|
||||
|
@ -85,7 +85,7 @@ browser.jar:
|
||||
content/browser/browser-devedition.js (content/browser-devedition.js)
|
||||
content/browser/browser-eme.js (content/browser-eme.js)
|
||||
content/browser/browser-feeds.js (content/browser-feeds.js)
|
||||
* content/browser/browser-fullScreen.js (content/browser-fullScreen.js)
|
||||
content/browser/browser-fullScreen.js (content/browser-fullScreen.js)
|
||||
content/browser/browser-fullZoom.js (content/browser-fullZoom.js)
|
||||
content/browser/browser-fxaccounts.js (content/browser-fxaccounts.js)
|
||||
* content/browser/browser-gestureSupport.js (content/browser-gestureSupport.js)
|
||||
|
Loading…
Reference in New Issue
Block a user