mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-19 10:55:45 +01:00
This commit is contained in:
@@ -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 = {};
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user