Changeset 196739 in webkit
- Timestamp:
- Feb 17, 2016 7:57:23 PM (8 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r196713 r196739 1 2016-02-17 Devin Rousso <dcrousso+webkit@gmail.com> 2 3 Web Inspector: Add Context menu separators to Styles sidebar 4 https://bugs.webkit.org/show_bug.cgi?id=154360 5 6 Reviewed by Joseph Pecoraro. 7 8 In the Styles sidebar, there are three main sections for the context menu: 9 - Copy and Duplicate/Show-source 10 - Add pseudo-class rules 11 - Add/Select pseudo-element rules 12 These three sections were all put together in the same context menu, which 13 was very crowded as a result. Separators have been added to make it so that 14 these three sections are now separated and clearly show their different uses. 15 16 * UserInterface/Views/CSSStyleDeclarationSection.js: 17 (WebInspector.CSSStyleDeclarationSection.prototype._handleSelectorPaste): 18 19 * UserInterface/Views/VisualStyleSelectorTreeItem.js: 20 (WebInspector.VisualStyleSelectorTreeItem.prototype._handleContextMenuEvent): 21 1 22 2016-02-17 Matt Baker <mattbaker@apple.com> 2 23 -
trunk/Source/WebInspectorUI/UserInterface/Views/CSSStyleDeclarationSection.js
r196184 r196739 464 464 465 465 if (WebInspector.CSSStyleManager.ForceablePseudoClasses.every((className) => !this._style.selectorText.includes(":" + className))) { 466 contextMenu.appendSeparator(); 467 466 468 for (let pseudoClass of WebInspector.CSSStyleManager.ForceablePseudoClasses) { 467 469 if (pseudoClass === "visited" && this._style.node.nodeName() !== "A") … … 486 488 } 487 489 } 490 491 contextMenu.appendSeparator(); 488 492 489 493 for (let pseudoElement of WebInspector.CSSStyleManager.PseudoElementNames) { -
trunk/Source/WebInspectorUI/UserInterface/Views/VisualStyleSelectorTreeItem.js
r196184 r196739 165 165 166 166 if (WebInspector.CSSStyleManager.ForceablePseudoClasses.every((className) => !this.representedObject.selectorText.includes(":" + className))) { 167 contextMenu.appendSeparator(); 168 167 169 for (let pseudoClass of WebInspector.CSSStyleManager.ForceablePseudoClasses) { 168 170 if (pseudoClass === "visited" && this.representedObject.node.nodeName() !== "A") … … 178 180 } 179 181 } 182 183 contextMenu.appendSeparator(); 180 184 181 185 for (let pseudoElement of WebInspector.CSSStyleManager.PseudoElementNames) {
Note: See TracChangeset
for help on using the changeset viewer.