Bug 627103 - Don't wait for reflow to finish before zooming [r=mfinkle]

This commit is contained in:
Matt Brubeck 2011-02-24 20:30:11 -08:00
parent 2c58d5ed1d
commit acb86b6829

View File

@ -503,6 +503,7 @@ let Content = {
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;