Permalink
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.
Browse files
Web Inspector: Color swatches for layout container overlays allow for…
…mat changes via context menu https://bugs.webkit.org/show_bug.cgi?id=241055 rdar://94063968 Reviewed by Devin Rousso. NodeOverlayListSection already signaled that the color swatches it creates should not allow changing formats (although it expressed this as preventing Shift+Clicking to change the format). This only makes sense if we prevent the context menu from being shown as well, which current allows changing the color format for these swatches. Because currently we only support sRGB color for overlays anyways, this is unnecessary and confusing. * Source/WebInspectorUI/UserInterface/Views/InlineSwatch.js: (WI.InlineSwatch): - Add an option to prevent changing color formats and convert read-only to an option as well. - Don't add the context menu click handler for color swatches when changing formats is disabled. (WI.InlineSwatch.prototype._allowChangingColorFormats): (WI.InlineSwatch.prototype.set shiftClickColorEnabled): Deleted. (WI.InlineSwatch.prototype._swatchElementClicked): * Source/WebInspectorUI/UserInterface/Views/AnimationDetailsSidebarPanel.js: (WI.AnimationDetailsSidebarPanel.prototype._refreshEffectSection.optionsForType): (WI.AnimationDetailsSidebarPanel.prototype._refreshEffectSection): * Source/WebInspectorUI/UserInterface/Views/NodeOverlayListSection.js: (WI.NodeOverlayListSection.prototype.layout): * Source/WebInspectorUI/UserInterface/Views/RecordingActionTreeElement.js: (WI.RecordingActionTreeElement._createSwatchForColorParameters): * Source/WebInspectorUI/UserInterface/Views/RecordingStateDetailsSidebarPanel.js: (WI.RecordingStateDetailsSidebarPanel.prototype._generateDetailsCanvas2D): (WI.RecordingStateDetailsSidebarPanel): * Source/WebInspectorUI/UserInterface/Views/SpreadsheetStyleProperty.js: (WI.SpreadsheetStyleProperty.prototype._createInlineSwatch): - Adopt new WI.InlineSwatch constructor. Canonical link: https://commits.webkit.org/251194@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@295099 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
6 changed files
with
16 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters