зеркало из https://github.com/mozilla/gecko-dev.git
Bug 734479 - Remove deadcode that was introduce via bad merge 3dcb40ebd487. r=BenWa
This commit is contained in:
Родитель
9612045323
Коммит
69be8538e2
|
@ -2607,36 +2607,6 @@ var BrowserEventHandler = {
|
|||
const kReferenceDpi = 240; // standard "pixel" size used in some preferences
|
||||
|
||||
const ElementTouchHelper = {
|
||||
toBrowserCoords: function(aWindow, aX, aY) {
|
||||
if (!aWindow)
|
||||
throw "Must provide a window";
|
||||
|
||||
let tab = BrowserApp.getTabForWindow(aWindow.top);
|
||||
if (!tab)
|
||||
throw "Unable to find a tab";
|
||||
|
||||
let viewport = tab.viewport;
|
||||
return [
|
||||
((aX - tab.viewportExcess.x) * viewport.zoom + viewport.offsetX),
|
||||
((aY - tab.viewportExcess.y) * viewport.zoom + viewport.offsetY)
|
||||
];
|
||||
},
|
||||
|
||||
toScreenCoords: function(aWindow, aX, aY) {
|
||||
if (!aWindow)
|
||||
throw "Must provide a window";
|
||||
|
||||
let tab = BrowserApp.getTabForWindow(aWindow.top);
|
||||
if (!tab)
|
||||
throw "Unable to find a tab";
|
||||
|
||||
let viewport = tab.viewport;
|
||||
return [
|
||||
(aX - viewport.offsetX)/viewport.zoom + tab.viewportExcess.x,
|
||||
(aY - viewport.offsetY)/viewport.zoom + tab.viewportExcess.y
|
||||
];
|
||||
},
|
||||
|
||||
anyElementFromPoint: function(aWindow, aX, aY) {
|
||||
let cwu = aWindow.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIDOMWindowUtils);
|
||||
let elem = cwu.elementFromPoint(aX, aY, false, true);
|
||||
|
|
Загрузка…
Ссылка в новой задаче