Bug 1204508 - Remove calls to function that was removed. r=mfinkle
authorKartikaya Gupta <kgupta@mozilla.com>
Mon, 14 Sep 2015 13:08:47 -0400
changeset 294989 71a37a05fc1d1756d8fa86450bd7336fdc1a7bef
parent 294988 db888b35735375727a820567d3cac8bef4baa25f
child 294990 0fda784c668279c596cec34642a00444cafba781
push id5245
push userraliiev@mozilla.com
push dateThu, 29 Oct 2015 11:30:51 +0000
treeherdermozilla-beta@dac831dc1bd0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle
bugs1204508
milestone43.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 1204508 - Remove calls to function that was removed. r=mfinkle
mobile/android/chrome/content/ZoomHelper.js
--- a/mobile/android/chrome/content/ZoomHelper.js
+++ b/mobile/android/chrome/content/ZoomHelper.js
@@ -1,16 +1,15 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at http://mozilla.org/MPL/2.0/. */
 "use strict";
 
 var ZoomHelper = {
   zoomOut: function() {
-    BrowserEventHandler.resetMaxLineBoxWidth();
     Messaging.sendRequest({ type: "Browser:ZoomToPageWidth" });
   },
 
   isRectZoomedIn: function(aRect, aViewport) {
     // This function checks to see if the area of the rect visible in the
     // viewport (i.e. the "overlapArea" variable below) is approximately
     // the max area of the rect we can show. It also checks that the rect
     // is actually on-screen by testing the left and right edges of the rect.
@@ -103,15 +102,11 @@ var ZoomHelper = {
       // the 1.2 multiplier is just a little fuzz to compensate for aRect including horizontal 
       // margins but not vertical ones.
       let cssTapY = viewport.cssY + aClickY;
       if ((aRect.height > rect.h) && (cssTapY > rect.y + (rect.h * 1.2))) {
         rect.y = cssTapY - (rect.h / 2);
       }
     }
 
-    if (rect.w > viewport.cssWidth || rect.h > viewport.cssHeight) {
-      BrowserEventHandler.resetMaxLineBoxWidth();
-    }
-
     Messaging.sendRequest(rect);
   },
 };