From 52b7a5364d77cea362f80f80f304a142449b681f Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Tue, 5 Apr 2011 17:34:58 -0400 Subject: =?UTF-8?q?Fix=20Minefield=20button=20on=20Windows=C2=AE=20with=20?= =?UTF-8?q?Personas=20garbage=20installed.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/content/events.js | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'common') diff --git a/common/content/events.js b/common/content/events.js index 5997d70f..bd21c653 100644 --- a/common/content/events.js +++ b/common/content/events.js @@ -1490,14 +1490,16 @@ var Events = Module("events", { key === "" || key === "", isHidden: function isHidden(elem, aggressive) { - for (let e = elem; e instanceof Element; e = e.parentNode) { - if (util.computedStyle(e).visibility !== "visible" || - aggressive && !/set$/.test(e.localName) - && e.boxObject && e.boxObject.height === 0) - return true; - else if (e.namespaceURI == XUL && e.localName === "panel") - break; - } + if (util.computedStyle(elem).visibility !== "visible") + return true; + + if (aggressive) + for (let e = elem; e instanceof Element; e = e.parentNode) { + if (!/set$/.test(e.localName) && e.boxObject && e.boxObject.height === 0) + return true; + else if (e.namespaceURI == XUL && e.localName === "panel") + break; + } return false; }, -- cgit v1.2.3