mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-13 18:27:35 +00:00
Backout 83faa1da3db8 (bug 732016) for regressions. a=regression
--HG-- extra : rebase_source : 1c009c50f911458fab8bdc5661f91642509148de
This commit is contained in:
parent
33d0fcc084
commit
d5ef482443
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user