Bug 734479 - Remove deadcode that was introduce via bad merge 3dcb40ebd487. r=BenWa

This commit is contained in:
Kartikaya Gupta 2012-03-09 17:14:30 -05:00
Родитель 9612045323
Коммит 69be8538e2
1 изменённых файлов: 0 добавлений и 30 удалений

Просмотреть файл

@ -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);