1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-19 10:55:45 +01:00

Muck with buffer.findLink against my better judgement. Closes issue #607. Closes issue #200.

This commit is contained in:
Kris Maglione
2011-08-06 08:04:09 -04:00
parent b1042eb74c
commit 99f3840b72
3 changed files with 26 additions and 14 deletions

View File

@@ -1077,6 +1077,18 @@ var Hints = Module("hints", {
this.hintSession = HintSession(mode, opts);
}
}, {
isVisible: function isVisible(elem) {
let rect = elem.getBoundingClientRect();
if (!rect.width || !rect.height)
if (!Array.some(elem.childNodes, function (elem) elem instanceof Element && util.computedStyle(elem).float != "none" && isVisible(elem)))
return false;
let computedStyle = util.computedStyle(elem, null);
if (computedStyle.visibility != "visible" || computedStyle.display == "none")
return false;
return true;
},
translitTable: Class.memoize(function () {
const table = {};
[