Bug 813616 - Ensure the reflow-on-zoom pref change is picked up even while the content document is not visible. r=jwir3

This commit is contained in:
Kartikaya Gupta 2012-11-20 12:51:39 -05:00
parent 12803634ae
commit 92bf35b49f

View File

@ -3721,6 +3721,11 @@ var BrowserEventHandler = {
} }
}); });
return; return;
} else if (aTopic == "nsPref:changed") {
if (aData == "browser.zoom.reflowOnZoom") {
this.updateReflozPref();
}
return;
} }
// the remaining events are all dependent on the browser content document being the // the remaining events are all dependent on the browser content document being the
@ -3800,10 +3805,6 @@ var BrowserEventHandler = {
this.onPinch(aData); this.onPinch(aData);
} else if (aTopic == "MozMagnifyGesture") { } else if (aTopic == "MozMagnifyGesture") {
this.onPinchFinish(aData, this._mLastPinchPoint.x, this._mLastPinchPoint.y); this.onPinchFinish(aData, this._mLastPinchPoint.x, this._mLastPinchPoint.y);
} else if (aTopic == "nsPref:changed") {
if (aData == "browser.zoom.reflowOnZoom") {
this.updateReflozPref();
}
} }
}, },