Bug 728614 - Part 1: Remove updateTransform(); r=dougt
☠☠ backed out by eef65e3c68d7 ☠ ☠
authorEhsan Akhgari <ehsan@mozilla.com>
Mon, 20 Feb 2012 16:36:15 -0500
changeset 92499 cfcc11281ca20c52504355dbd619a9b537fbf26d
parent 92498 c1161ca4bf13708a59c54cea9dda532dc50b1610
child 92500 eef65e3c68d7deab95064cb2278734e8bffd3b2a
push idunknown
push userunknown
push dateunknown
reviewersdougt
bugs728614
milestone13.0a1
Bug 728614 - Part 1: Remove updateTransform(); r=dougt
mobile/android/chrome/content/browser.js
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -1617,29 +1617,16 @@ Tab.prototype = {
     }
 
     cwu.setDisplayPortForElement(-kBufferAmount / zoom, -kBufferAmount / zoom,
                                  (gScreenWidth + kBufferAmount * 2) / zoom,
                                  (gScreenHeight + kBufferAmount * 2) / zoom,
                                  this.browser.contentDocument.documentElement);
   },
 
-  updateTransform: function() {
-    let hasZoom = (Math.abs(this._viewport.zoom - 1.0) >= 1e-6);
-    let x = this._viewport.offsetX + Math.round(-this.viewportExcess.x * this._viewport.zoom);
-    let y = this._viewport.offsetY + Math.round(-this.viewportExcess.y * this._viewport.zoom);
-    let transform =
-      "translate(" + x + "px, " +
-                     y + "px)";
-    if (hasZoom)
-      transform += " scale(" + this._viewport.zoom + ")";
-
-    this.browser.style.MozTransform = transform;
-  },
-
   get viewport() {
     // Update the viewport to current dimensions
     this._viewport.x = (this.browser.contentWindow.scrollX +
                         this.viewportExcess.x) || 0;
     this._viewport.y = (this.browser.contentWindow.scrollY +
                         this.viewportExcess.y) || 0;
 
     // Transform coordinates based on zoom