Changeset 244327 in webkit
- Timestamp:
- Apr 15, 2019 11:57:16 PM (5 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r244318 r244327 1 2019-04-15 Joseph Pecoraro <pecoraro@apple.com> 2 3 Web Inspector: DOM Nodes should not show $0 when selected in Console area 4 https://bugs.webkit.org/show_bug.cgi?id=196953 5 6 Reviewed by Devin Rousso. 7 8 * UserInterface/Views/DOMTreeContentView.js: 9 (WI.DOMTreeContentView): 10 Enable showing the last selected element. 11 12 * UserInterface/Views/DOMTreeOutline.js: 13 Make parameters explicit. Drop "selectable" which was always true. 14 And add a new option for adding a class name. 15 16 * UserInterface/Views/DOMTreeOutline.css: 17 (.tree-outline.dom.show-last-selected li.last-selected > span::after): 18 (.tree-outline.dom.show-last-selected:focus li.last-selected > span::after): 19 Only show the "= $0" for a DOM tree that has enabled showing the last selected element. 20 21 * UserInterface/Views/FormattedValue.css: 22 (.formatted-node > .tree-outline.dom li.selected .selection-area): 23 Don't show the selection-area for a console formatted node. 24 1 25 2019-04-15 Devin Rousso <drousso@apple.com> 2 26 -
trunk/Source/WebInspectorUI/UserInterface/Views/DOMTreeContentView.js
r244264 r244327 64 64 this.element.addEventListener("click", this._mouseWasClicked.bind(this), false); 65 65 66 this._domTreeOutline = new WI.DOMTreeOutline( true, true, true);66 this._domTreeOutline = new WI.DOMTreeOutline({omitRootDOMNode: true, excludeRevealElementContextMenu: true, showLastSelected: true}); 67 67 this._domTreeOutline.allowsEmptySelection = false; 68 68 this._domTreeOutline.allowsMultipleSelection = true; -
trunk/Source/WebInspectorUI/UserInterface/Views/DOMTreeOutline.css
r242768 r244327 71 71 } 72 72 73 .tree-outline.dom li.last-selected > span::after {73 .tree-outline.dom.show-last-selected li.last-selected > span::after { 74 74 content: " = $0"; 75 75 color: var(--console-secondary-text-color); … … 78 78 } 79 79 80 .tree-outline.dom :focus li.last-selected > span::after {80 .tree-outline.dom.show-last-selected:focus li.last-selected > span::after { 81 81 color: var(--selected-secondary-text-color); 82 82 } -
trunk/Source/WebInspectorUI/UserInterface/Views/DOMTreeOutline.js
r244271 r244327 31 31 WI.DOMTreeOutline = class DOMTreeOutline extends WI.TreeOutline 32 32 { 33 constructor( omitRootDOMNode, selectable, excludeRevealElementContextMenu)34 { 35 super( selectable);33 constructor({omitRootDOMNode, excludeRevealElementContextMenu, showLastSelected} = {}) 34 { 35 super(); 36 36 37 37 this.element.addEventListener("mousedown", this._onmousedown.bind(this), false); … … 45 45 46 46 this.element.classList.add("dom", WI.SyntaxHighlightedStyleClassName); 47 48 if (showLastSelected) 49 this.element.classList.add("show-last-selected"); 47 50 48 51 this._includeRootDOMNode = !omitRootDOMNode; -
trunk/Source/WebInspectorUI/UserInterface/Views/FormattedValue.css
r239760 r244327 73 73 } 74 74 75 .formatted-node > .tree-outline.dom li.selected .selection-area { 76 background-color: transparent; 77 } 78 75 79 .formatted-node > .tree-outline.dom li.hovered:not(.selected) .selection-area { 76 80 display: block;
Note: See TracChangeset
for help on using the changeset viewer.