1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 04:07:59 +01:00

Try harder not to count invisible elements in <count>gi.

This commit is contained in:
Kris Maglione
2010-10-17 17:18:00 -04:00
parent b542c6b0b4
commit 699b487ab2
3 changed files with 6 additions and 3 deletions

View File

@@ -1626,8 +1626,9 @@ const Buffer = Module("buffer", {
return false;
let computedStyle = util.computedStyle(elem);
let rect = elem.getBoundingClientRect();
return computedStyle.visibility != "hidden" && computedStyle.display != "none" &&
computedStyle.MozUserFocus != "ignore";
computedStyle.MozUserFocus != "ignore" && rect.width && rect.height;
});
dactyl.assert(elements.length > 0);