RESOLVED FIXED104146
Web Inspector: Add shortcut to set visibility:hidden on elements in the ElementsPanel
https://bugs.webkit.org/show_bug.cgi?id=104146
Summary Web Inspector: Add shortcut to set visibility:hidden on elements in the Eleme...
egraether
Reported 2012-12-05 11:30:47 PST
Web Inspector: Add shortcut to set visibility:hidden on elements in the ElementsPanel
Attachments
Patch (6.96 KB, patch)
2012-12-05 11:32 PST, egraether
no flags
Patch (7.40 KB, patch)
2012-12-05 15:08 PST, egraether
no flags
Patch (6.21 KB, patch)
2012-12-07 11:25 PST, egraether
no flags
egraether
Comment 1 2012-12-05 11:32:56 PST
egraether
Comment 2 2012-12-05 15:08:36 PST
egraether
Comment 3 2012-12-05 15:12:38 PST
pfeldman, thanks for the feedback. I rewrote the patch to using cssStyleModel.
WebKit Review Bot
Comment 4 2012-12-05 15:54:55 PST
Comment on attachment 177840 [details] Patch Attachment 177840 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/15147671 New failing tests: inspector-protocol/debugger-terminate-dedicated-worker-while-paused.html
Pavel Feldman
Comment 5 2012-12-07 05:10:53 PST
Comment on attachment 177840 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=177840&action=review > Source/WebCore/inspector/front-end/DOMAgent.js:777 > + WebInspector.cssModel.getInlineStylesAsync(this.id, updateInlineVisibility); Lets keep CSS -> DOM dependency one way. I.e. toggleInlineVisibility should be in CSSStyleModel and should accept node id (or node) as a parameter. > Source/WebCore/inspector/front-end/treeoutline.js:377 > + else if (event.keyCode === WebInspector.KeyboardShortcut.Keys.H.code) Hide is not generic enough to be dispatched from treeoutline. You should add explicit listener in the ElementsPanel.js that does it.
egraether
Comment 6 2012-12-07 11:25:24 PST
egraether
Comment 7 2012-12-07 11:28:55 PST
(In reply to comment #5) I updated the patch: > (From update of attachment 177840 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=177840&action=review > > > Source/WebCore/inspector/front-end/DOMAgent.js:777 > > + WebInspector.cssModel.getInlineStylesAsync(this.id, updateInlineVisibility); > > Lets keep CSS -> DOM dependency one way. I.e. toggleInlineVisibility should be in CSSStyleModel and should accept node id (or node) as a parameter. done > > Source/WebCore/inspector/front-end/treeoutline.js:377 > > + else if (event.keyCode === WebInspector.KeyboardShortcut.Keys.H.code) > > Hide is not generic enough to be dispatched from treeoutline. You should add explicit listener in the ElementsPanel.js that does it. I found a spot in ElementsTreeOutline.js that seemed to fit.
WebKit Review Bot
Comment 8 2012-12-07 12:53:33 PST
Comment on attachment 178244 [details] Patch Clearing flags on attachment: 178244 Committed r136974: <http://trac.webkit.org/changeset/136974>
WebKit Review Bot
Comment 9 2012-12-07 12:53:37 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.