Bug 514522: Disable text zooming, r=stuart
authorMark Finkle <mfinkle@mozilla.com>
Fri, 04 Sep 2009 13:44:55 -0400
changeset 65520 6c5d2ddde7d69f35205d719663bb0ad9d00496d0
parent 65519 68f0e8507762d61010099a897c3bfe3395824caf
child 65521 46eac5a0780b07d965c6a665c035f80ae3d24d3a
push idunknown
push userunknown
push dateunknown
reviewersstuart
bugs514522
Bug 514522: Disable text zooming, r=stuart
mobile/chrome/content/browser.js
--- a/mobile/chrome/content/browser.js
+++ b/mobile/chrome/content/browser.js
@@ -55,18 +55,17 @@ const FINDSTATE_FIND_PREVIOUS = 2;
 const endl = '\n';
 
 Cu.import("resource://gre/modules/SpatialNavigation.js");
 
 function getBrowser() {
   return Browser.selectedBrowser;
 }
 
-const kDefaultTextZoom = 1.2;
-const kDefaultBrowserWidth = 1024;
+const kDefaultBrowserWidth = 800;
 
 function debug() {
   let bv = Browser._browserView;
   let tc = bv._tileManager._tileCache;
   let scrollbox = document.getElementById("tile-container-container")
 		.boxObject
 		.QueryInterface(Components.interfaces.nsIScrollBoxObject);
 
@@ -2208,25 +2207,19 @@ ProgressController.prototype = {
   // This method is called to indicate a status changes for the currently
   // loading page.  The message is already formatted for display.
   onStatusChange: function(aWebProgress, aRequest, aStatus, aMessage) {
   },
 
   _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);
     this.browser.dispatchEvent(event);
   },
 
   _networkStop: function _networkStop() {
     this._tab.endLoading();