Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Web Inspector: Elements: Computed: should not show non-preview inline…
… swatches https://bugs.webkit.org/show_bug.cgi?id=243509 Reviewed by Patrick Angle. * Source/WebInspectorUI/UserInterface/Views/SpreadsheetStyleProperty.js: (WI.SpreadsheetStyleProperty.prototype._createInlineSwatch): (WI.SpreadsheetStyleProperty.prototype._addTimingFunctionTokens): (WI.SpreadsheetStyleProperty.prototype._addBoxShadowTokens): Hide `box-shadow` and timing function inline swatches since they do not show a preview of the value, instead always having the same icon (i.e. color swatches actually show the color, while these don't). * Source/WebInspectorUI/UserInterface/Views/InlineSwatch.js: (WI.InlineSwatch): Allow variable swatches to be interacted with even when `readOnly` since they do not allow for editing and instead just display the value of the variable. * Source/WebInspectorUI/UserInterface/Views/ComputedStyleSection.js: (WI.ComputedStyleSection.prototype.layout): Drive-by: Also mark the top-level `WI.SpreadsheetStyleProperty` as being `readOnly`. * Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js: Canonical link: https://commits.webkit.org/253214@main
- Loading branch information
Showing 4 changed files with 15 additions and 5 deletions.