Bug 1480735 - Replace MousePosTracker._windowUtils with window.windowUtils. r=dao

MozReview-Commit-ID: AcADGJH4r2R

--HG--
extra : rebase_source : 0f2613fd6c5da81a7abf3f16b36d365b96be4ff6
This commit is contained in:
Thi Huynh 2018-08-03 22:01:09 +07:00
parent 6bf788e479
commit b85f1c8fe9

View File

@ -7710,11 +7710,6 @@ var MousePosTracker = {
_y: 0, _y: 0,
_mostRecentEvent: null, _mostRecentEvent: null,
get _windowUtils() {
delete this._windowUtils;
return this._windowUtils = window.windowUtils;
},
/** /**
* Registers a listener, and then waits for the next refresh * Registers a listener, and then waits for the next refresh
* driver tick before running the listener to see if the * driver tick before running the listener to see if the
@ -7788,7 +7783,7 @@ var MousePosTracker = {
let event = this._mostRecentEvent; let event = this._mostRecentEvent;
if (event) { if (event) {
let fullZoom = this._windowUtils.fullZoom; let fullZoom = window.windowUtils.fullZoom;
this._x = event.screenX / fullZoom - window.mozInnerScreenX; this._x = event.screenX / fullZoom - window.mozInnerScreenX;
this._y = event.screenY / fullZoom - window.mozInnerScreenY; this._y = event.screenY / fullZoom - window.mozInnerScreenY;