Changeset 214843 in webkit
- Timestamp:
- Apr 3, 2017 3:07:46 PM (7 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r214841 r214843 1 2017-04-03 Matt Baker <mattbaker@apple.com> 2 3 Web Inspector: DetailsSection should hide header "options" when collapsed 4 https://bugs.webkit.org/show_bug.cgi?id=170029 5 6 Reviewed by Timothy Hatcher. 7 8 * UserInterface/Views/DOMNodeDetailsSidebarPanel.css: 9 (.sidebar > .panel.dom-node-details .details-section.dom-node-event-listeners > .header > .filter): 10 (.sidebar > .panel.dom-node-details .details-section.dom-node-event-listeners.collapsed > .header > .filter): Deleted. 11 DetailsSection is responsible for hiding options when collapsed. 12 13 * UserInterface/Views/DebuggerSidebarPanel.css: 14 (.sidebar > .panel.navigation.debugger .details-section.paused-reason.collapsed > .header > .options): 15 16 * UserInterface/Views/DetailsSection.css: 17 (body[dir=ltr] .details-section > .header > .options,): 18 (body[dir=ltr] .details-section > .header::before,): 19 (.details-section.collapsed > .header > .options): 20 (body[dir=ltr] .details-section > .header > :matches(label, .node-link, .go-to-arrow),): Deleted. 21 (.details-section.collapsed > .header > label): Deleted. 22 Removed unnecessary rules. The "options" class covers these cases. 23 24 * UserInterface/Views/DetailsSection.js: 25 (WebInspector.DetailsSection.prototype.get titleElement): 26 (WebInspector.DetailsSection.prototype.set titleElement): 27 Added title element customization so that the hack used by ProbeSetDetailsSection 28 to get a link into the title can be removed. Yuck! 29 30 * UserInterface/Views/ProbeSetDetailsSection.js: 31 (WebInspector.ProbeSetDetailsSection): 32 (WebInspector.ProbeSetDetailsSection.prototype._updateLinkElement): 33 Use the new DetailsSection title element setter. 34 35 * UserInterface/Views/VisualStyleDetailsPanel.css: 36 (.sidebar > .panel.details.css-style .visual > .details-section .details-section > .header > .options): 37 (.sidebar > .panel.details.css-style .visual > .details-section .details-section > .header > .visual-style-section-clear): Deleted. 38 (.sidebar > .panel.details.css-style .visual > .details-section .details-section.collapsed > .header > .visual-style-section-clear,): Deleted. 39 Remove the "visual-style-section-clear" class, as it's no longer needed. 40 41 * UserInterface/Views/VisualStyleDetailsPanel.js: 42 (WebInspector.VisualStyleDetailsPanel.prototype._generateSection.createOptionsElement): 43 (WebInspector.VisualStyleDetailsPanel.prototype._generateSection): 44 1 45 2017-04-03 Joseph Pecoraro <pecoraro@apple.com> 2 46 -
trunk/Source/WebInspectorUI/UserInterface/Views/DOMNodeDetailsSidebarPanel.css
r213874 r214843 25 25 26 26 .sidebar > .panel.dom-node-details .details-section.dom-node-event-listeners > .header > .filter { 27 display: inline-block;28 27 position: relative; 29 28 width: 14px; … … 47 46 } 48 47 49 .sidebar > .panel.dom-node-details .details-section.dom-node-event-listeners.collapsed > .header > .filter {50 display: none;51 }52 53 48 .sidebar > .panel.dom-node-details .details-section.dom-node-event-listeners > .header > .filter > select { 54 49 position: absolute; -
trunk/Source/WebInspectorUI/UserInterface/Views/DebuggerSidebarPanel.css
r213765 r214843 80 80 } 81 81 82 .sidebar > .panel.navigation.debugger .details-section.paused-reason.collapsed > .header > .options { 83 display: block; 84 } 85 82 86 .sidebar > .panel.navigation.debugger .details-section > .content { 83 87 display: block; -
trunk/Source/WebInspectorUI/UserInterface/Views/DetailsSection.css
r213874 r214843 80 80 } 81 81 82 body[dir=ltr] .details-section > .header > :matches(label, .node-link, .go-to-arrow), 83 body[dir=ltr] .details-section > .header > .options > .navigation-bar, 82 body[dir=ltr] .details-section > .header > .options, 84 83 body[dir=rtl] .details-section > .header::before { 85 84 float: right; … … 87 86 88 87 body[dir=ltr] .details-section > .header::before, 89 body[dir=rtl] .details-section > .header > .options > .navigation-bar, 90 body[dir=rtl] .details-section > .header > :matches(label, .node-link, .go-to-arrow) { 88 body[dir=rtl] .details-section > .header > .options { 91 89 float: left; 92 90 } … … 147 145 } 148 146 149 .details-section.collapsed > .header > label{147 .details-section.collapsed > .header > .options { 150 148 display: none; 151 149 } -
trunk/Source/WebInspectorUI/UserInterface/Views/DetailsSection.js
r194490 r214843 86 86 } 87 87 88 get titleElement() 89 { 90 return this._titleElement; 91 } 92 93 set titleElement(element) 94 { 95 console.assert(element instanceof HTMLElement, "Expected titleElement to be an HTMLElement.", element); 96 97 this._headerElement.replaceChild(element, this._titleElement); 98 this._titleElement = element; 99 } 100 88 101 get collapsed() 89 102 { -
trunk/Source/WebInspectorUI/UserInterface/Views/ProbeSetDetailsSection.js
r214439 r214843 42 42 43 43 this.element.classList.add("probe-set"); 44 45 this._optionsElement = optionsElement;46 44 47 45 this._listenerSet = new WebInspector.EventListenerSet(this, "ProbeSetDetailsSection UI listeners"); … … 97 95 { 98 96 var breakpoint = this._probeSet.breakpoint; 99 var titleElement = null;100 97 if (breakpoint.sourceCodeLocation.sourceCode) 101 t itleElement = WebInspector.createSourceCodeLocationLink(breakpoint.sourceCodeLocation);98 this.titleElement = WebInspector.createSourceCodeLocationLink(breakpoint.sourceCodeLocation); 102 99 else { 103 100 // Fallback for when we can't create a live source link. … … 105 102 106 103 var location = breakpoint.sourceCodeLocation; 107 t itleElement = WebInspector.linkifyLocation(breakpoint.contentIdentifier, location.displayLineNumber, location.displayColumnNumber);104 this.titleElement = WebInspector.linkifyLocation(breakpoint.contentIdentifier, location.displayLineNumber, location.displayColumnNumber); 108 105 } 109 106 110 titleElement.classList.add(WebInspector.ProbeSetDetailsSection.DontFloatLinkStyleClassName); 111 112 if (this._linkElement) 113 this._optionsElement.removeChild(this._linkElement); 114 115 this._linkElement = titleElement; 116 this._optionsElement.appendChild(this._linkElement); 107 this.titleElement.classList.add(WebInspector.ProbeSetDetailsSection.DontFloatLinkStyleClassName); 117 108 } 118 109 -
trunk/Source/WebInspectorUI/UserInterface/Views/VisualStyleDetailsPanel.css
r204757 r214843 36 36 } 37 37 38 .sidebar > .panel.details.css-style .visual > .details-section .details-section > .header > .visual-style-section-clear { 39 position: absolute; 40 right: 5px; 38 .sidebar > .panel.details.css-style .visual > .details-section .details-section > .header > .options { 41 39 width: 15px; 42 40 height: 15px; … … 44 42 background-size: 15px 15px; 45 43 opacity: 0.7; 46 }47 48 .sidebar > .panel.details.css-style .visual > .details-section .details-section.collapsed > .header > .visual-style-section-clear,49 .sidebar > .panel.details.css-style .visual > .details-section .details-section:not(.modified) > .header > .visual-style-section-clear {50 display: none;51 44 } 52 45 -
trunk/Source/WebInspectorUI/UserInterface/Views/VisualStyleDetailsPanel.js
r211462 r214843 148 148 function createOptionsElement() { 149 149 let container = document.createElement("div"); 150 container.classList.add("visual-style-section-clear");151 150 container.title = WebInspector.UIString("Clear modified properties"); 152 151 container.addEventListener("click", this._clearModifiedSection.bind(this, camelCaseId));
Note: See TracChangeset
for help on using the changeset viewer.