mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 985597 - Don't highlight hidden nodes; r=miker
This commit is contained in:
parent
fb314af007
commit
9a8e2bb715
@ -999,11 +999,16 @@ BoxModelHighlighter.prototype = Heritage.extend(AutoRefreshHighlighter.prototype
|
||||
},
|
||||
|
||||
_nodeNeedsHighlighting: function() {
|
||||
let hasNoQuads = !this.currentQuads.margin &&
|
||||
!this.currentQuads.border &&
|
||||
!this.currentQuads.padding &&
|
||||
!this.currentQuads.content;
|
||||
if (!this.currentNode ||
|
||||
Cu.isDeadWrapper(this.currentNode) ||
|
||||
this.currentNode.nodeType !== Ci.nsIDOMNode.ELEMENT_NODE ||
|
||||
!this.currentNode.ownerDocument ||
|
||||
!this.currentNode.ownerDocument.defaultView) {
|
||||
!this.currentNode.ownerDocument.defaultView ||
|
||||
hasNoQuads) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user