Bug 711232 - Fix multiple useless zooms during page load. r=pcwalton

This commit is contained in:
Kartikaya Gupta 2011-12-16 17:01:02 -05:00
parent 4a884dba9a
commit c23b1e95b2

View File

@ -1024,7 +1024,7 @@ function Tab(aURL, aParams) {
this.create(aURL, aParams);
this._metadata = null;
this._viewport = { x: 0, y: 0, width: gScreenWidth, height: gScreenHeight, offsetX: 0, offsetY: 0,
pageWidth: 1, pageHeight: 1, zoom: 1.0 };
pageWidth: gScreenWidth, pageHeight: gScreenHeight, zoom: 1.0 };
this.viewportExcess = { x: 0, y: 0 };
this.userScrollPos = { x: 0, y: 0 };
this._pluginsToPlay = [];
@ -1262,7 +1262,7 @@ Tab.prototype = {
this.viewport = { x: xpos, y: ypos,
offsetX: 0, offsetY: 0,
width: this._viewport.width, height: this._viewport.height,
pageWidth: 1, pageHeight: 1,
pageWidth: gScreenWidth, pageHeight: gScreenHeight,
zoom: zoom };
this.sendViewportUpdate();
},