зеркало из https://github.com/mozilla/gecko-dev.git
Bug 627293 - backout for Ts regression [r=me]
This commit is contained in:
Родитель
a783a86c85
Коммит
e8be5a3e14
|
@ -142,9 +142,6 @@
|
|||
// Recalculate whether the visible area is actually in bounds
|
||||
let view = self.getRootView();
|
||||
view.scrollBy(0, 0);
|
||||
|
||||
// XXX Actually this fire a SetCacheViewport event as well as the
|
||||
// scrolledAreaChanged handler in content/chrome/browser.js
|
||||
view._updateCacheViewport();
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -2544,7 +2544,6 @@ Tab.prototype = {
|
|||
}
|
||||
}
|
||||
|
||||
if (browser.contentWindowWidth != viewportW || browser.contentWindowHeight != viewportH)
|
||||
browser.setWindowSize(viewportW, viewportH);
|
||||
},
|
||||
|
||||
|
@ -2858,9 +2857,7 @@ var ViewableAreaObserver = {
|
|||
|
||||
let newWidth = this.width;
|
||||
let newHeight = this.height;
|
||||
if (newHeight == oldHeight && newWidth == oldWidth)
|
||||
return;
|
||||
|
||||
if (newHeight != oldHeight || newWidth != oldWidth) {
|
||||
Browser.styles["viewable-height"].height = newHeight + "px";
|
||||
Browser.styles["viewable-height"].maxHeight = newHeight + "px";
|
||||
|
||||
|
@ -2870,7 +2867,6 @@ var ViewableAreaObserver = {
|
|||
for (let i = Browser.tabs.length - 1; i >= 0; i--) {
|
||||
let tab = Browser.tabs[i];
|
||||
tab.updateViewportSize();
|
||||
tab.updateDefaultZoomLevel();
|
||||
|
||||
// If the viewport width is still the same, the page layout has not
|
||||
// changed, so we can keep keep the same content on-screen.
|
||||
|
@ -2885,4 +2881,5 @@ var ViewableAreaObserver = {
|
|||
Elements.browsers.dispatchEvent(event);
|
||||
}, 0);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче