Backout 83faa1da3db8 (bug 732016) for regressions. a=regression

--HG--
extra : rebase_source : 1c009c50f911458fab8bdc5661f91642509148de
This commit is contained in:
Joe Drew 2012-04-23 11:12:18 -07:00
parent 219f248f65
commit 579bb85315

View File

@ -1560,6 +1560,7 @@ Tab.prototype = {
let frameLoader = this.browser.QueryInterface(Ci.nsIFrameLoaderOwner).frameLoader;
frameLoader.renderMode = Ci.nsIFrameLoader.RENDER_MODE_ASYNC_SCROLL;
frameLoader.clampScrollPosition = false;
// only set tab uri if uri is valid
let uri = null;
@ -1725,10 +1726,8 @@ Tab.prototype = {
let x = aViewport.x / aViewport.zoom;
let y = aViewport.y / aViewport.zoom;
// Set scroll-port size and scroll position (both in CSS pixels)
// Set scroll position
let win = this.browser.contentWindow;
win.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIDOMWindowUtils).setScrollPositionClampingScrollPortSize(
gScreenWidth / aViewport.zoom, gScreenHeight / aViewport.zoom);
win.scrollTo(x, y);
this.userScrollPos.x = win.scrollX;
this.userScrollPos.y = win.scrollY;