Bug 627103 - Don't wait for reflow to finish before zooming [r=mfinkle]
authorMatt Brubeck <mbrubeck@mozilla.com>
Thu, 24 Feb 2011 20:30:11 -0800
changeset 67428 c0f4045c775e336b1f773a5dc418ce961f7981cd
parent 67427 5e86352d3348458e0e1feb5d41b28c65416a000d
child 67429 2a72edbaaa25b926e74179526b8ecbbf33909bf7
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle
bugs627103
Bug 627103 - Don't wait for reflow to finish before zooming [r=mfinkle]
mobile/chrome/content/content.js
--- a/mobile/chrome/content/content.js
+++ b/mobile/chrome/content/content.js
@@ -498,16 +498,17 @@ let Content = {
           this._isZoomedToElement = true;
           let element = elementFromPoint(x, y);
           let win = element.ownerDocument.defaultView;
           while (element && win.getComputedStyle(element,null).display == "inline")
             element = element.parentNode;
           if (element) {
             rect = getBoundingContentRect(element);
             if (Services.prefs.getBoolPref("browser.ui.zoom.reflow")) {
+              sendAsyncMessage("Browser:ZoomToPoint:Return", { x: x, y: y, zoomTo: rect });
               this._setTextZoom(Math.max(1, rect.width / json.width));
 
               let oldRect = rect;
               rect = getBoundingContentRect(element);
               y += rect.top - oldRect.top;
             }
           }
         }