Bug 970033 - Part 1: Unprefix CSS transform under /b2g. r=vingtetun
authorTetsuharu OHZEKI <saneyuki.s.snyk@gmail.com>
Thu, 13 Feb 2014 09:27:43 -0500
changeset 185810 f2c167d3f096c1fc2b1fa1504eeb463c51f97d15
parent 185809 adac868d387fdc03877a872c9a8d20697d37c839
child 185811 3fd6a4150f853c8180a3508cc7ad71d5092259dc
push id3503
push userraliiev@mozilla.com
push dateMon, 28 Apr 2014 18:51:11 +0000
treeherdermozilla-beta@c95ac01e332e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersvingtetun
bugs970033
milestone30.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 970033 - Part 1: Unprefix CSS transform under /b2g. r=vingtetun
b2g/chrome/content/screen.js
--- a/b2g/chrome/content/screen.js
+++ b/b2g/chrome/content/screen.js
@@ -137,18 +137,18 @@ window.addEventListener('ContentStart', 
   browser.style.width = browser.style.minWidth = browser.style.maxWidth =
     width + 'px';
   browser.style.height = browser.style.minHeight = browser.style.maxHeight =
     height + 'px';
   browser.setAttribute('flex', '0');  // Don't let it stretch
 
   // Now scale the browser element as needed
   if (scale !== 1) {
-    browser.style.MozTransformOrigin = 'top left';
-    browser.style.MozTransform = 'scale(' + scale + ',' + scale + ')';
+    browser.style.transformOrigin = 'top left';
+    browser.style.transform = 'scale(' + scale + ',' + scale + ')';
   }
 
   // Set the pixel density that we want to simulate.
   // This doesn't change the on-screen size, but makes
   // CSS media queries and mozmm units work right.
   Services.prefs.setIntPref('layout.css.dpi', dpi);
 
   // A utility function like console.log() for printing to the terminal window