mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 574971 - Remove WindowDraggingElement's redundant 'window' argument. r=enn
This commit is contained in:
parent
9c57959afd
commit
986d179535
@ -5455,7 +5455,7 @@ var TabsInTitlebar = {
|
||||
if (!this._draghandle) {
|
||||
let tmp = {};
|
||||
Components.utils.import("resource://gre/modules/WindowDraggingUtils.jsm", tmp);
|
||||
this._draghandle = new tmp.WindowDraggingElement(tabsToolbar, window);
|
||||
this._draghandle = new tmp.WindowDraggingElement(tabsToolbar);
|
||||
this._draghandle.mouseDownCheck = function () {
|
||||
return !this._dragBindingAlive && TabsInTitlebar.enabled;
|
||||
};
|
||||
|
@ -36,9 +36,9 @@
|
||||
|
||||
let EXPORTED_SYMBOLS = [ "WindowDraggingElement" ];
|
||||
|
||||
function WindowDraggingElement(elem, window) {
|
||||
function WindowDraggingElement(elem) {
|
||||
this._elem = elem;
|
||||
this._window = window;
|
||||
this._window = elem.ownerDocument.defaultView;
|
||||
#ifdef XP_WIN
|
||||
if (!this.isPanel())
|
||||
this._elem.addEventListener("MozMouseHittest", this, false);
|
||||
|
@ -167,7 +167,7 @@
|
||||
try {
|
||||
let tmp = {};
|
||||
Components.utils.import("resource://gre/modules/WindowDraggingUtils.jsm", tmp);
|
||||
let draghandle = new tmp.WindowDraggingElement(this, window);
|
||||
let draghandle = new tmp.WindowDraggingElement(this);
|
||||
draghandle.mouseDownCheck = function () this._dragBindingAlive;
|
||||
} catch (e) {}
|
||||
}
|
||||
@ -274,7 +274,7 @@
|
||||
try {
|
||||
let tmp = {};
|
||||
Components.utils.import("resource://gre/modules/WindowDraggingUtils.jsm", tmp);
|
||||
let draghandle = new tmp.WindowDraggingElement(this, window);
|
||||
let draghandle = new tmp.WindowDraggingElement(this);
|
||||
draghandle.mouseDownCheck = function () this._dragBindingAlive;
|
||||
} catch (e) {}
|
||||
}
|
||||
|
@ -237,7 +237,7 @@
|
||||
try {
|
||||
let tmp = {};
|
||||
Components.utils.import("resource://gre/modules/WindowDraggingUtils.jsm", tmp);
|
||||
let draghandle = new tmp.WindowDraggingElement(this, window);
|
||||
let draghandle = new tmp.WindowDraggingElement(this);
|
||||
draghandle.mouseDownCheck = function () this._dragBindingAlive;
|
||||
} catch (e) {}
|
||||
}
|
||||
|
@ -486,7 +486,7 @@
|
||||
try {
|
||||
let tmp = {};
|
||||
Components.utils.import("resource://gre/modules/WindowDraggingUtils.jsm", tmp);
|
||||
let draggableThis = new tmp.WindowDraggingElement(this, window);
|
||||
let draggableThis = new tmp.WindowDraggingElement(this);
|
||||
draggableThis.mouseDownCheck = function(e) {
|
||||
// Don't move while customizing.
|
||||
return this._dragBindingAlive &&
|
||||
|
Loading…
Reference in New Issue
Block a user