mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 10:44:56 +00:00
Bug 711232 - Fix multiple useless zooms during page load. r=pcwalton
This commit is contained in:
parent
4a884dba9a
commit
c23b1e95b2
@ -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();
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user