Bug 682037 - Stop using .window-width for fullscreen video [r=stechz]
authorMatt Brubeck <mbrubeck@mozilla.com>
Thu, 25 Aug 2011 13:45:15 -0700
changeset 75925 840fcaead434bb04abb9a73093a6fe85f77fab47
parent 75924 0edb2653d8fc7b88d54cd14aa2f03dbf5165fa87
child 75926 8391d102fd701857f191201f5c46b382e54410c6
push id3
push userfelipc@gmail.com
push dateFri, 30 Sep 2011 20:09:13 +0000
reviewersstechz
bugs682037
milestone9.0a1
Bug 682037 - Stop using .window-width for fullscreen video [r=stechz]
mobile/chrome/content/common-ui.js
mobile/themes/core/browser.css
mobile/themes/core/gingerbread/browser.css
mobile/themes/core/honeycomb/browser.css
--- a/mobile/chrome/content/common-ui.js
+++ b/mobile/chrome/content/common-ui.js
@@ -1579,21 +1579,20 @@ var FullScreenVideo = {
     this.destroyBrowser();
     window.fullScreen = false;
     BrowserUI.popPopup(this);
     this.checkBrightnessLocking();
   },
 
   createBrowser: function fsv_createBrowser() {
     let browser = this.browser = document.createElement("browser");
-    browser.className = "window-width window-height full-screen";
     browser.setAttribute("type", "content");
     browser.setAttribute("remote", "true");
     browser.setAttribute("src", "chrome://browser/content/fullscreen-video.xhtml");
-    document.getElementById("main-window").appendChild(browser);
+    document.getElementById("stack").appendChild(browser);
 
     let mm = browser.messageManager;
     mm.loadFrameScript("chrome://browser/content/fullscreen-video.js", true);
 
     browser.addEventListener("TapDown", this, true);
     browser.addEventListener("TapSingle", this, false);
 
     return browser;
--- a/mobile/themes/core/browser.css
+++ b/mobile/themes/core/browser.css
@@ -1343,22 +1343,16 @@ setting {
 }
 %endif
 
 /* helperapp (save-as) popup ----------------------------------------------- */
 #helperapp-target {
   font-size: @font_small@ !important;
 }
 
-/* full-screen video ------------------------------------------------------- */
-.full-screen {
-  position: absolute;
-  z-index: 500;
-}
-
 /* openwebapps capabilities ------------------------------------------------------------ */
 .webapps-noperm description.webapps-perm-requested-hint {
   display: block;
 }
 
 .webapps-perm description.webapps-perm-requested-hint {
   display: none;
 }
--- a/mobile/themes/core/gingerbread/browser.css
+++ b/mobile/themes/core/gingerbread/browser.css
@@ -1312,22 +1312,16 @@ setting {
 }
 %endif
 
 /* helperapp (save-as) popup ----------------------------------------------- */
 #helperapp-target {
   font-size: @font_small@ !important;
 }
 
-/* full-screen video ------------------------------------------------------- */
-.full-screen {
-  position: absolute;
-  z-index: 500;
-}
-
 /* openwebapps capabilities ------------------------------------------------------------ */
 .webapps-noperm description.webapps-perm-requested-hint {
   display: block;
 }
 
 .webapps-perm description.webapps-perm-requested-hint {
   display: none;
 }
--- a/mobile/themes/core/honeycomb/browser.css
+++ b/mobile/themes/core/honeycomb/browser.css
@@ -1354,22 +1354,16 @@ setting {
 }
 %endif
 
 /* helperapp (save-as) popup ----------------------------------------------- */
 #helperapp-target {
   font-size: @font_small@ !important;
 }
 
-/* full-screen video ------------------------------------------------------- */
-.full-screen {
-  position: absolute;
-  z-index: 500;
-}
-
 /* openwebapps capabilities ------------------------------------------------------------ */
 .webapps-noperm description.webapps-perm-requested-hint {
   display: block;
 }
 
 .webapps-perm description.webapps-perm-requested-hint {
   display: none;
 }