Web Inspector: DOM: "Capture Screenshot" should only be shown if the node is attached
authordrousso@apple.com <drousso@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 19 Mar 2019 18:03:33 +0000 (18:03 +0000)
committerdrousso@apple.com <drousso@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 19 Mar 2019 18:03:33 +0000 (18:03 +0000)
commit10e5a7bcd5986e5273247cd3d4ac0125d4fb4d5d
tree4c6b90dabfcfb42a00712b15015c4deb6ce0bdbd
parentf723b1da32b70b43b796ada6f52ad78a7508462a
Web Inspector: DOM: "Capture Screenshot" should only be shown if the node is attached
https://bugs.webkit.org/show_bug.cgi?id=195793
<rdar://problem/48916594>

Reviewed by Joseph Pecoraro.

* UserInterface/Models/DOMNode.js:
(WI.DOMNode.prototype.get attached): Added.

* UserInterface/Views/ContextMenuUtilities.js:
(WI.appendContextMenuItemsForDOMNode):
* UserInterface/Views/DOMTreeElement.js:
(WI.DOMTreeElement.prototype._populateTagContextMenu):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@243152 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Models/DOMNode.js
Source/WebInspectorUI/UserInterface/Views/ContextMenuUtilities.js
Source/WebInspectorUI/UserInterface/Views/DOMTreeElement.js