From b60a45cbf73eb55e253c2b8a26c8100dd0b306f3 Mon Sep 17 00:00:00 2001 From: Eitan Isaacson Date: Tue, 26 May 2015 10:13:17 -0700 Subject: [PATCH] Bug 1144516 - Remove offset of mozbrowser iframe. r=yzen --- accessible/jsat/AccessFu.jsm | 8 -------- 1 file changed, 8 deletions(-) diff --git a/accessible/jsat/AccessFu.jsm b/accessible/jsat/AccessFu.jsm index fa04330d59e3..dc0b72971070 100644 --- a/accessible/jsat/AccessFu.jsm +++ b/accessible/jsat/AccessFu.jsm @@ -417,14 +417,6 @@ this.AccessFu = { // jshint ignore:line let dpr = win.devicePixelRatio; let offset = { left: -win.mozInnerScreenX, top: -win.mozInnerScreenY }; - if (!aBrowser.contentWindow) { - // OOP browser, add offset of browser. - // The offset of the browser element in relation to its parent window. - let clientRect = aBrowser.getBoundingClientRect(); - let win = aBrowser.ownerDocument.defaultView; - offset.left += clientRect.left + win.mozInnerScreenX; - offset.top += clientRect.top + win.mozInnerScreenY; - } // Add the offset; the offset is in CSS pixels, so multiply the // devicePixelRatio back in before adding to preserve unit consistency. bounds = bounds.translate(offset.left * dpr, offset.top * dpr);