Bug 676321 - Small coding style fix in mobile's browser.js (r=mbrubeck)
authorLucas Rocha <lucasr@mozilla.com>
Fri, 19 Aug 2011 15:41:06 +0200
changeset 75536 bac63bffbc15af42f8b2bfe1fd87df78d1fce3d5
parent 75535 d103df4833c4f032085c051355a0ee5d917cdcb6
child 75537 38f76966da562e1b1040c8023370415e1ac2ba78
push id1337
push userMs2ger@gmail.com
push dateFri, 19 Aug 2011 13:44:20 +0000
treeherdermozilla-inbound@79399ce1a1fb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmbrubeck
bugs676321
milestone9.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 676321 - Small coding style fix in mobile's browser.js (r=mbrubeck)
mobile/chrome/content/browser.js
--- a/mobile/chrome/content/browser.js
+++ b/mobile/chrome/content/browser.js
@@ -2925,18 +2925,17 @@ Tab.prototype = {
     if (!browser)
       return;
 
     let isDefault = this.isDefaultZoomLevel();
     this._defaultZoomLevel = this.getDefaultZoomLevel();
     if (isDefault) {
       if (browser.scale != this._defaultZoomLevel) {
         browser.scale = this._defaultZoomLevel;
-      }
-      else {
+      } else {
         // If the scale level has not changed we want to be sure the content
         // render correctly since the page refresh process could have been
         // stalled during page load. In this case if the page has the exact
         // same width (like the same page, so by doing 'refresh') and the
         // page was scrolled the content is just checkerboard at this point
         // and this call ensure we render it correctly.
         browser.getRootView()._updateCacheViewport();
       }