Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: bf8c27cd3d2a8fe001a1fc907f0b315dba4e9fb3
https://github.com/WebKit/WebKit/commit/bf8c27cd3d2a8fe001a1fc907f0b315dba4e9fb3
Author: Devin Rousso <[email protected]>
Date: 2026-08-14 (Fri, 14 Aug 2026)
Changed paths:
M Source/WebInspectorUI/UserInterface/Views/RecordingActionTreeElement.css
M Source/WebInspectorUI/UserInterface/Views/RecordingActionTreeElement.js
Log Message:
-----------
Web Inspector: Canvas: add syntax highlighting to recording actions
https://bugs.webkit.org/show_bug.cgi?id=321759
Reviewed by Mike Wyrzykowski.
* Source/WebInspectorUI/UserInterface/Views/RecordingActionTreeElement.js:
(WI.RecordingActionTreeElement._generateDOM):
(WI.RecordingActionTreeElement._generateDOM.appendJSON):
(WI.RecordingActionTreeElement._generateDOM.createParameterElement):
Format primitive action parameters and values inside structured parameters with
`WI.FormattedValue` to get standard syntax highlighting.
Reuse the existing `WI.ObjectPreviewView` styles for object keys.
* Source/WebInspectorUI/UserInterface/Views/RecordingActionTreeElement.css:
(.item.recording-action > .titles :is(.object-handle, .receiver, .subtitle)):
(.item.recording-action > .titles .parameter.swizzled):
(.item.recording-action > .titles .parameter > .formatted-string): Added.
(body:not(.window-inactive, .window-docked-inactive) .tree-outline:focus-within
.item.recording-action.selected > .titles :is(.formatted-bigint,
.formatted-boolean, .formatted-null, .formatted-number, .formatted-string,
.formatted-symbol, .formatted-undefined), body:not(.window-inactive,
.window-docked-inactive) .tree-outline:focus-within
.item.recording-action.selected > .titles .object-preview .name): Added.
Use the existing syntax highlighting color for recorded object references and
italics for unavailable swizzled placeholders.
Keep highlighted values readable when an action is selected.
Canonical link: https://commits.webkit.org/319189@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications