mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-29 21:25:35 +00:00
Bug 985597 - Don't highlight hidden nodes; r=miker
This commit is contained in:
parent
23e9947c95
commit
ffc117236f
@ -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