зеркало из https://github.com/mozilla/gecko-dev.git
bug 512472 - Fennec lays pages out too wide, resulting in very small text r=mfinkle
This commit is contained in:
Родитель
2a6d21bd84
Коммит
cd3d694365
|
@ -490,7 +490,9 @@ BrowserView.prototype = {
|
|||
return;
|
||||
|
||||
let [w, h] = BrowserView.Util.getBrowserDimensions(browser);
|
||||
this.setZoomLevel(BrowserView.Util.pageZoomLevel(this.getVisibleRect(), w, h));
|
||||
let pageZoom = BrowserView.Util.pageZoomLevel(this.getVisibleRect(), w, h);
|
||||
this._browser.markupDocumentViewer.textZoom = 1 / pageZoom;
|
||||
this.setZoomLevel(pageZoom);
|
||||
},
|
||||
|
||||
zoom: function zoom(aDirection) {
|
||||
|
|
|
@ -60,7 +60,6 @@ function getBrowser() {
|
|||
return Browser.selectedBrowser;
|
||||
}
|
||||
|
||||
const kDefaultTextZoom = 1.2;
|
||||
const kDefaultBrowserWidth = 1024;
|
||||
|
||||
function debug() {
|
||||
|
@ -2248,15 +2247,9 @@ ProgressController.prototype = {
|
|||
_networkStart: function _networkStart() {
|
||||
this._tab.startLoading();
|
||||
|
||||
if (Browser.selectedBrowser == this.browser) {
|
||||
if (Browser.selectedBrowser == this.browser)
|
||||
BrowserUI.update(TOOLBARSTATE_LOADING);
|
||||
|
||||
// We increase the default text size to make the text more readable when
|
||||
// the page is zoomed out
|
||||
if (this.browser.markupDocumentViewer.textZoom != kDefaultTextZoom)
|
||||
this.browser.markupDocumentViewer.textZoom = kDefaultTextZoom;
|
||||
}
|
||||
|
||||
// broadcast a URLChanged message for consumption by InputHandler
|
||||
let event = document.createEvent("Events");
|
||||
event.initEvent("URLChanged", true, false);
|
||||
|
|
Загрузка…
Ссылка в новой задаче