Bug 627103 - Don't wait for reflow to finish before zooming [r=mfinkle]
--- 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;
}
}
}