chrome-devtools-frontend 1.0.1739869 → 1.0.1742811
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/rules/ui-and-widgets/ui-accessibility-and-semantic-html.md +1 -1
- package/.agents/rules/ui-and-widgets/ui-css-scoping-and-flex-layout.md +44 -7
- package/.agents/rules/ui-and-widgets/ui-lit-declarative-templates-and-directives.md +1 -1
- package/.agents/rules/ui-and-widgets/ui-view-output-and-callback-contracts.md +2 -2
- package/.agents/rules/ui-and-widgets/ui-widget-dom-and-listener-lifecycle.md +1 -1
- package/.agents/skills/code-review/SKILL.md +23 -6
- package/.agents/skills/devtools-verification/SKILL.md +2 -1
- package/.agents/skills/migrate-chromium-test/SKILL.md +1 -0
- package/.agents/skills/ui-eng-vision-local-lit-renderer/SKILL.md +27 -11
- package/.agents/skills/ui-eng-vision-orchestrator/SKILL.md +41 -23
- package/.agents/skills/ui-eng-vision-test-scaffolder/SKILL.md +12 -7
- package/.agents/skills/ui-eng-vision-widget-promoter/SKILL.md +3 -0
- package/.agents/skills/ui-widgets/SKILL.md +22 -7
- package/.agents/skills/version-control/SKILL.md +10 -1
- package/.agents/skills/visual-regression-audit/SKILL.md +88 -0
- package/.gitallowed +2 -1
- package/.stylelintignore +1 -0
- package/.stylelintrc.json +2 -0
- package/AUTHORS +1 -0
- package/DIR_METADATA +2 -1
- package/PRESUBMIT_test.py +143 -0
- package/config/owner/INFRA_OWNERS +0 -1
- package/docs/contributing/infrastructure.md +2 -2
- package/docs/ui_engineering.md +14 -4
- package/eslint.config.mjs +1 -18
- package/front_end/application_tokens.css +0 -35
- package/front_end/core/host/AidaClient.ts +1 -1
- package/front_end/core/host/AidaClientTypes.ts +2 -0
- package/front_end/core/host/AidaErrors.ts +3 -3
- package/front_end/core/host/AidaGcaTranslation.ts +39 -0
- package/front_end/core/host/GcaClient.ts +32 -20
- package/front_end/core/host/GcaTypes.ts +4 -2
- package/front_end/core/host/InspectorFrontendHostAPI.ts +2 -0
- package/front_end/core/i18n/DevToolsLocale.ts +0 -1
- package/front_end/core/sdk/DebuggerModel.ts +25 -13
- package/front_end/core/sdk/PreloadingModel.ts +2 -2
- package/front_end/core/sdk/RehydratingConnection.ts +59 -30
- package/front_end/core/sdk/StorageKeyManager.ts +0 -1
- package/front_end/core/sdk/Target.ts +6 -0
- package/front_end/core/sdk/TargetManager.ts +10 -4
- package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshot.ts +12 -2
- package/front_end/entrypoints/inspector_main/OutermostTargetSelector.ts +159 -52
- package/front_end/entrypoints/inspector_main/outermostTargetSelector.css +77 -25
- package/front_end/entrypoints/main/MainImpl.ts +32 -15
- package/front_end/models/ai_assistance/AiAgent2.ts +95 -46
- package/front_end/models/ai_assistance/AiConversation.ts +1 -1
- package/front_end/models/ai_assistance/agents/AiAgent.ts +9 -2
- package/front_end/models/ai_assistance/agents/ExecuteJavascript.ts +3 -2
- package/front_end/models/ai_assistance/agents/StylingAgent.snapshot.txt +1 -1
- package/front_end/models/ai_assistance/data_formatters/FileFormatter.ts +1 -1
- package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.ts +5 -4
- package/front_end/models/ai_assistance/performance/AICallTree.ts +7 -9
- package/front_end/models/ai_assistance/performance/AIQueries.ts +4 -8
- package/front_end/models/ai_assistance/skills/SkillRegistry.ts +11 -1
- package/front_end/models/ai_assistance/skills/lighthouse.md +1 -0
- package/front_end/models/ai_assistance/skills/network.md +3 -4
- package/front_end/models/ai_assistance/skills/sources.md +1 -2
- package/front_end/models/ai_assistance/skills/styling.md +3 -4
- package/front_end/models/ai_assistance/tools/ExecuteJavaScript.ts +11 -3
- package/front_end/models/ai_assistance/tools/ListNetworkRequests.ts +84 -23
- package/front_end/models/ai_assistance/tools/ListSources.ts +41 -13
- package/front_end/models/badges/Badge.ts +0 -1
- package/front_end/models/bindings/ResourceMapping.ts +1 -1
- package/front_end/models/bindings/ResourceScriptMapping.ts +1 -1
- package/front_end/models/breakpoints/BreakpointManager.ts +2 -4
- package/front_end/models/breakpoints/RecurringPauseDetector.ts +140 -0
- package/front_end/models/breakpoints/breakpoints.ts +2 -1
- package/front_end/models/heap_snapshot/HeapSnapshotModel.ts +2 -2
- package/front_end/models/persistence/Automapping.ts +0 -1
- package/front_end/models/trace/Processor.ts +16 -7
- package/front_end/models/trace/README.md +17 -1
- package/front_end/models/trace/extras/ThirdParties.ts +4 -6
- package/front_end/models/trace/extras/TraceTree.ts +69 -72
- package/front_end/models/trace/handlers/MetaHandler.ts +3 -0
- package/front_end/models/trace/handlers/types.ts +15 -0
- package/front_end/models/trace/helpers/Trace.ts +5 -3
- package/front_end/models/trace/lantern/simulation/Simulator.ts +4 -1
- package/front_end/models/web_mcp/WebMCPModel.ts +19 -9
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +30 -3
- package/front_end/panels/ai_assistance/components/ChatMessage.ts +2 -4
- package/front_end/panels/ai_assistance/components/chatMessage.css +1 -22
- package/front_end/panels/ai_assistance/components/exploreWidget.css +1 -19
- package/front_end/panels/ai_assistance/components/optInChangeDialog.css +1 -1
- package/front_end/panels/ai_assistance/components/walkthroughView.css +0 -13
- package/front_end/panels/animation/AnimationGroupPreviewUI.ts +3 -2
- package/front_end/panels/animation/AnimationTimeline.ts +5 -3
- package/front_end/panels/animation/animationTimeline.css +10 -8
- package/front_end/panels/application/ApplicationPanelSidebar.ts +14 -11
- package/front_end/panels/application/ReportingApiView.ts +0 -1
- package/front_end/panels/application/SubAppsView.ts +0 -1
- package/front_end/panels/application/WebMCPTreeElement.ts +3 -6
- package/front_end/panels/application/WebMCPView.ts +30 -0
- package/front_end/panels/application/components/ReportsGrid.ts +0 -1
- package/front_end/panels/application/components/backForwardCacheView.css +0 -7
- package/front_end/panels/application/components/permissionsPolicySection.css +2 -2
- package/front_end/panels/application/components/protocolHandlersView.css +46 -39
- package/front_end/panels/application/components/trustTokensView.css +0 -4
- package/front_end/panels/application/cookieItemsView.css +0 -7
- package/front_end/panels/application/indexedDBViews.css +0 -6
- package/front_end/panels/application/preloading/components/PreloadingDetailsReportView.ts +0 -2
- package/front_end/panels/application/preloading/components/PreloadingString.ts +0 -1
- package/front_end/panels/application/preloading/components/UsedPreloadingView.ts +4 -5
- package/front_end/panels/application/preloading/components/preloadingGrid.css +0 -9
- package/front_end/panels/application/serviceWorkerUpdateCycleView.css +2 -9
- package/front_end/panels/application/serviceWorkersView.css +5 -4
- package/front_end/panels/application/storageView.css +0 -5
- package/front_end/panels/application/webMCPView.css +17 -0
- package/front_end/panels/browser_debugger/ObjectEventListenersSidebarPane.ts +15 -20
- package/front_end/panels/changes/changesView.css +0 -5
- package/front_end/panels/common/ExtensionServer.ts +80 -10
- package/front_end/panels/console/ConsolePanel.ts +92 -18
- package/front_end/panels/console/consoleContextSelector.css +1 -8
- package/front_end/panels/console/consoleInsightTeaser.css +10 -17
- package/front_end/panels/console/consolePinPane.css +3 -1
- package/front_end/panels/console/consoleView.css +13 -17
- package/front_end/panels/coverage/coverageListView.css +0 -4
- package/front_end/panels/css_overview/cssOverviewCompletedView.css +0 -22
- package/front_end/panels/css_overview/cssOverviewStartView.css +0 -43
- package/front_end/panels/developer_resources/developerResourcesListView.css +0 -4
- package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +52 -45
- package/front_end/panels/elements/LayoutPane.ts +1 -3
- package/front_end/panels/elements/PropertiesWidget.ts +26 -8
- package/front_end/panels/elements/PropertyRenderer.ts +45 -21
- package/front_end/panels/elements/StandaloneStylesContainer.ts +6 -7
- package/front_end/panels/elements/StyleEditorWidget.ts +110 -63
- package/front_end/panels/elements/StylePropertiesSection.ts +14 -5
- package/front_end/panels/elements/StylePropertyTreeElement.ts +529 -518
- package/front_end/panels/elements/StylesContainer.ts +5 -6
- package/front_end/panels/elements/StylesSidebarPane.ts +12 -15
- package/front_end/panels/elements/components/CSSVariableValueView.ts +17 -4
- package/front_end/panels/elements/components/StylePropertyEditor.ts +178 -140
- package/front_end/panels/elements/components/cssQuery.css +1 -1
- package/front_end/panels/elements/components/stylePropertyEditor.css +60 -56
- package/front_end/panels/elements/layoutPane.css +2 -2
- package/front_end/panels/elements/metricsSidebarPane.css +6 -7
- package/front_end/panels/elements/platformFontsWidget.css +1 -1
- package/front_end/panels/elements/stylePropertiesTreeOutline.css +1 -6
- package/front_end/panels/elements/stylesSidebarPane.css +3 -4
- package/front_end/panels/emulation/deviceModeView.css +1 -1
- package/front_end/panels/event_listeners/EventListenersView.ts +9 -2
- package/front_end/panels/event_listeners/eventListenersView.css +1 -1
- package/front_end/panels/explain/components/consoleInsight.css +1 -2
- package/front_end/panels/issues/issuesTree.css +6 -43
- package/front_end/panels/layer_viewer/PaintProfilerView.ts +1 -1
- package/front_end/panels/layer_viewer/paintProfiler.css +4 -3
- package/front_end/panels/lighthouse/LighthouseReportSelector.ts +1 -6
- package/front_end/panels/lighthouse/lighthouseStartView.css +5 -16
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryValueInterpreter.ts +0 -1
- package/front_end/panels/linear_memory_inspector/components/linearMemoryHighlightChipList.css +2 -2
- package/front_end/panels/linear_memory_inspector/components/linearMemoryViewer.css +2 -2
- package/front_end/panels/linear_memory_inspector/components/valueInterpreterSettings.css +1 -1
- package/front_end/panels/media/playerListView.css +1 -2
- package/front_end/panels/media/playerPropertiesView.css +1 -1
- package/front_end/panels/mobile_throttling/throttlingSettingsTab.css +2 -2
- package/front_end/panels/network/NetworkLogView.ts +594 -580
- package/front_end/panels/network/RequestCookiesView.ts +0 -1
- package/front_end/panels/network/networkConfigView.css +1 -2
- package/front_end/panels/network/networkLogView.css +363 -364
- package/front_end/panels/network/networkPanel.css +1 -5
- package/front_end/panels/network/networkTimingTable.css +1 -1
- package/front_end/panels/network/networkWaterfallColumn.css +1 -1
- package/front_end/panels/network/requestConditionsDrawer.css +0 -4
- package/front_end/panels/network/requestCookiesView.css +7 -1
- package/front_end/panels/network/requestPayloadTree.css +0 -4
- package/front_end/panels/profiler/HeapProfileView.ts +1 -3
- package/front_end/panels/profiler/HeapSnapshotView.ts +0 -7
- package/front_end/panels/recorder/RecorderPanel.ts +1 -1
- package/front_end/panels/recorder/RecordingView.ts +10 -10
- package/front_end/panels/recorder/StepView.ts +5 -4
- package/front_end/panels/recorder/createRecordingView.css +1 -1
- package/front_end/panels/recorder/recorderPanel.css +0 -8
- package/front_end/panels/recorder/recordingListView.css +4 -4
- package/front_end/panels/recorder/recordingView.css +12 -20
- package/front_end/panels/recorder/stepEditor.css +4 -4
- package/front_end/panels/recorder/stepView.css +31 -9
- package/front_end/panels/recorder/timelineSection.css +4 -0
- package/front_end/panels/screencast/ScreencastApp.ts +0 -1
- package/front_end/panels/security/mainView.css +1 -1
- package/front_end/panels/security/originView.css +2 -2
- package/front_end/panels/sensors/SensorsView.ts +273 -346
- package/front_end/panels/settings/BackendLinkingSettingsTab.ts +0 -1
- package/front_end/panels/settings/backendLinkingSettingsTab.css +7 -7
- package/front_end/panels/settings/components/syncSection.css +0 -1
- package/front_end/panels/settings/workspaceSettingsTab.css +0 -5
- package/front_end/panels/sources/CSSPlugin.ts +177 -98
- package/front_end/panels/sources/DebuggerPausedMessage.ts +100 -27
- package/front_end/panels/sources/NavigatorView.ts +926 -946
- package/front_end/panels/sources/SourcesPanel.ts +9 -2
- package/front_end/panels/sources/breakpointsView.css +6 -29
- package/front_end/panels/sources/components/HeadersView.css +2 -2
- package/front_end/panels/sources/debuggerPausedMessage.css +7 -0
- package/front_end/panels/sources/navigatorTree.css +7 -2
- package/front_end/panels/sources/sourcesNavigator.css +0 -9
- package/front_end/panels/sources/watchExpressionsSidebarPane.css +0 -10
- package/front_end/panels/timeline/CompatibilityTracksAppender.ts +3 -0
- package/front_end/panels/timeline/LayoutShiftsTrackAppender.ts +0 -10
- package/front_end/panels/timeline/ModificationsManager.ts +0 -1
- package/front_end/panels/timeline/ThreadAppender.ts +2 -6
- package/front_end/panels/timeline/TimelinePanel.ts +2 -2
- package/front_end/panels/timeline/TimelineTreeView.ts +38 -41
- package/front_end/panels/timeline/TimelineUIUtils.ts +8 -10
- package/front_end/panels/timeline/components/LayoutShiftDetails.ts +0 -2
- package/front_end/panels/timeline/components/fieldSettingsDialog.css +1 -6
- package/front_end/panels/timeline/components/insights/baseInsightComponent.css +0 -12
- package/front_end/panels/timeline/components/interactionBreakdown.css +1 -2
- package/front_end/panels/timeline/components/layoutShiftDetails.css +2 -9
- package/front_end/panels/timeline/components/liveMetricsView.css +0 -16
- package/front_end/panels/timeline/components/metricCard.css +1 -5
- package/front_end/panels/timeline/components/networkRequestDetails.css +3 -4
- package/front_end/panels/timeline/components/networkRequestTooltip.css +6 -4
- package/front_end/panels/timeline/components/sidebarAnnotationsTab.css +1 -1
- package/front_end/panels/timeline/components/sidebarInsightsTab.css +1 -2
- package/front_end/panels/timeline/timelineDetailsView.css +1 -12
- package/front_end/panels/timeline/timelineFlamechartPopover.css +0 -4
- package/front_end/panels/timeline/timelineMiniMap.css +1 -4
- package/front_end/panels/timeline/timelinePanel.css +0 -4
- package/front_end/panels/timeline/timelineStatusDialog.css +1 -1
- package/front_end/panels/timeline/timelineTreeView.css +0 -12
- package/front_end/panels/timeline/utils/EntryNodes.ts +1 -1
- package/front_end/panels/webauthn/webauthnPane.css +1 -7
- package/front_end/panels/whats_new/ReleaseNoteText.ts +1 -1
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/ui/components/adorners/adorner.css +1 -1
- package/front_end/ui/components/buttons/button.css +0 -28
- package/front_end/ui/components/buttons/textButton.css +1 -45
- package/front_end/ui/components/input/checkbox.css +3 -3
- package/front_end/ui/components/issue_counter/issueLinkIcon.css +2 -2
- package/front_end/ui/components/menus/Menu.ts +14 -0
- package/front_end/ui/components/menus/menu.css +2 -14
- package/front_end/ui/components/menus/menuItem.css +0 -4
- package/front_end/ui/components/request_link_icon/requestLinkIcon.css +2 -2
- package/front_end/ui/components/survey_link/SurveyLink.ts +1 -1
- package/front_end/ui/components/survey_link/surveyLink.css +3 -3
- package/front_end/ui/components/switch/switch.css +3 -2
- package/front_end/ui/components/text_editor/theme.ts +1 -1
- package/front_end/ui/components/tooltips/Tooltip.ts +3 -3
- package/front_end/ui/components/tree_outline/treeOutline.css +0 -23
- package/front_end/ui/legacy/ContextMenu.ts +5 -5
- package/front_end/ui/legacy/SoftContextMenu.ts +24 -8
- package/front_end/ui/legacy/Toolbar.ts +1 -1
- package/front_end/ui/legacy/Treeoutline.ts +31 -78
- package/front_end/ui/legacy/UIUtils.ts +9 -17
- package/front_end/ui/legacy/checkboxTextLabel.css +2 -44
- package/front_end/ui/legacy/components/color_picker/Spectrum.ts +39 -27
- package/front_end/ui/legacy/components/color_picker/spectrum.css +2 -10
- package/front_end/ui/legacy/components/data_grid/dataGrid.css +2 -6
- package/front_end/ui/legacy/components/inline_editor/BezierEditor.ts +34 -26
- package/front_end/ui/legacy/components/inline_editor/SwatchPopoverHelper.ts +1 -0
- package/front_end/ui/legacy/components/inline_editor/cssShadowEditor.css +1 -1
- package/front_end/ui/legacy/components/inline_editor/swatchPopover.css +1 -1
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +49 -1
- package/front_end/ui/legacy/components/object_ui/objectPopover.css +0 -4
- package/front_end/ui/legacy/components/perf_ui/chartViewport.css +1 -9
- package/front_end/ui/legacy/components/perf_ui/filmStripView.css +1 -1
- package/front_end/ui/legacy/components/perf_ui/overviewGrid.css +2 -1
- package/front_end/ui/legacy/components/quick_open/filteredListWidget.css +0 -5
- package/front_end/ui/legacy/components/settings_ui/SettingsUI.ts +6 -3
- package/front_end/ui/legacy/components/source_frame/JSONView.ts +95 -1
- package/front_end/ui/legacy/filter.css +1 -1
- package/front_end/ui/legacy/inspectorCommon.css +6 -28
- package/front_end/ui/legacy/inspectorDrawerTabbedPane.css +1 -1
- package/front_end/ui/legacy/listWidget.css +1 -1
- package/front_end/ui/legacy/progressIndicator.css +1 -1
- package/front_end/ui/legacy/tabbedPane.css +6 -2
- package/front_end/ui/visual_logging/KnownContextValues.ts +1 -0
- package/front_end/ui/visual_logging/LoggingDriver.ts +4 -0
- package/front_end/ui/visual_logging/visual_logging.ts +1 -1
- package/inspector_overlay/common.ts +0 -3
- package/inspector_overlay/main.ts +1 -3
- package/inspector_overlay/tool_source_order.css +0 -4
- package/package.json +1 -1
- package/front_end/generated/SupportedCSSProperties.ts +0 -9705
|
@@ -13,7 +13,7 @@ import * as InlineEditor from '../../ui/legacy/components/inline_editor/inline_e
|
|
|
13
13
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
14
14
|
|
|
15
15
|
import {type RenderingContext, ValueEditEvent} from './PropertyRenderer.js';
|
|
16
|
-
import type {
|
|
16
|
+
import type {StylePropertyData} from './StylePropertyTreeElement.js';
|
|
17
17
|
|
|
18
18
|
const UIStrings = {
|
|
19
19
|
/**
|
|
@@ -26,7 +26,7 @@ const str_ = i18n.i18n.registerUIStrings('panels/elements/ColorSwatchPopoverIcon
|
|
|
26
26
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
27
27
|
|
|
28
28
|
interface BezierPopoverIconParams {
|
|
29
|
-
|
|
29
|
+
propertyData: StylePropertyData;
|
|
30
30
|
swatchPopoverHelper: InlineEditor.SwatchPopoverHelper.SwatchPopoverHelper;
|
|
31
31
|
swatch: Icon;
|
|
32
32
|
match: SDK.CSSPropertyParser.Match;
|
|
@@ -34,25 +34,25 @@ interface BezierPopoverIconParams {
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
export class BezierPopoverIcon {
|
|
37
|
-
private
|
|
37
|
+
private propertyData: StylePropertyData;
|
|
38
38
|
private readonly swatchPopoverHelper: InlineEditor.SwatchPopoverHelper.SwatchPopoverHelper;
|
|
39
39
|
private readonly swatch: Icon;
|
|
40
40
|
private readonly match: SDK.CSSPropertyParser.Match;
|
|
41
41
|
private readonly context: RenderingContext;
|
|
42
|
-
private readonly boundBezierChanged: (event:
|
|
42
|
+
private readonly boundBezierChanged: (event: InlineEditor.BezierEditor.BezierChangedEvent) => void;
|
|
43
43
|
private readonly boundOnScroll: (event: Event) => void;
|
|
44
44
|
private bezierEditor?: InlineEditor.BezierEditor.BezierEditor;
|
|
45
45
|
private scrollerElement?: Element;
|
|
46
46
|
private originalPropertyText?: string|null;
|
|
47
47
|
|
|
48
48
|
constructor({
|
|
49
|
-
|
|
49
|
+
propertyData,
|
|
50
50
|
swatchPopoverHelper,
|
|
51
51
|
swatch,
|
|
52
52
|
match,
|
|
53
53
|
context,
|
|
54
54
|
}: BezierPopoverIconParams) {
|
|
55
|
-
this.
|
|
55
|
+
this.propertyData = propertyData;
|
|
56
56
|
this.swatchPopoverHelper = swatchPopoverHelper;
|
|
57
57
|
this.swatch = swatch;
|
|
58
58
|
this.match = match;
|
|
@@ -81,26 +81,27 @@ export class BezierPopoverIcon {
|
|
|
81
81
|
const model = InlineEditor.AnimationTimingModel.AnimationTimingModel.parse(text) ||
|
|
82
82
|
InlineEditor.AnimationTimingModel.LINEAR_BEZIER;
|
|
83
83
|
this.bezierEditor = new InlineEditor.BezierEditor.BezierEditor(model);
|
|
84
|
-
this.bezierEditor.addEventListener(InlineEditor.BezierEditor.
|
|
84
|
+
this.bezierEditor.element.addEventListener(InlineEditor.BezierEditor.BezierChangedEvent.eventName,
|
|
85
|
+
this.boundBezierChanged);
|
|
85
86
|
this.swatchPopoverHelper.show(this.bezierEditor, this.swatch, this.onPopoverHidden.bind(this));
|
|
86
87
|
this.scrollerElement = this.swatch.enclosingNodeOrSelfWithClass('style-panes-wrapper');
|
|
87
88
|
if (this.scrollerElement) {
|
|
88
89
|
this.scrollerElement.addEventListener('scroll', this.boundOnScroll, false);
|
|
89
90
|
}
|
|
90
91
|
|
|
91
|
-
this.originalPropertyText = this.
|
|
92
|
-
this.
|
|
92
|
+
this.originalPropertyText = this.propertyData.property.propertyText;
|
|
93
|
+
this.propertyData.stylesContainer().setEditingStyle(true);
|
|
93
94
|
const uiLocation = Bindings.CSSWorkspaceBinding.CSSWorkspaceBinding.instance().propertyUILocation(
|
|
94
|
-
this.
|
|
95
|
+
this.propertyData.property, false /* forName */);
|
|
95
96
|
if (uiLocation) {
|
|
96
97
|
void Common.Revealer.reveal(uiLocation, true /* omitFocus */);
|
|
97
98
|
}
|
|
98
99
|
}
|
|
99
100
|
|
|
100
|
-
private bezierChanged(event:
|
|
101
|
+
private bezierChanged(event: InlineEditor.BezierEditor.BezierChangedEvent): void {
|
|
101
102
|
this.swatch.dispatchEvent(new ValueEditEvent(event.data));
|
|
102
103
|
this.context.recordEdit(this.match, event.data);
|
|
103
|
-
void this.
|
|
104
|
+
void this.propertyData.applyStyleText(this.propertyData.renderedPropertyText(), false);
|
|
104
105
|
}
|
|
105
106
|
|
|
106
107
|
private onScroll(_event: Event): void {
|
|
@@ -113,13 +114,14 @@ export class BezierPopoverIcon {
|
|
|
113
114
|
}
|
|
114
115
|
|
|
115
116
|
if (this.bezierEditor) {
|
|
116
|
-
this.bezierEditor.removeEventListener(InlineEditor.BezierEditor.
|
|
117
|
+
this.bezierEditor.element.removeEventListener(InlineEditor.BezierEditor.BezierChangedEvent.eventName,
|
|
118
|
+
this.boundBezierChanged);
|
|
117
119
|
}
|
|
118
120
|
this.bezierEditor = undefined;
|
|
119
121
|
|
|
120
|
-
const propertyText = commitEdit ? this.
|
|
121
|
-
void this.
|
|
122
|
-
this.
|
|
122
|
+
const propertyText = commitEdit ? this.propertyData.renderedPropertyText() : this.originalPropertyText || '';
|
|
123
|
+
void this.propertyData.applyStyleText(propertyText, true);
|
|
124
|
+
this.propertyData.stylesContainer().setEditingStyle(false);
|
|
123
125
|
delete this.originalPropertyText;
|
|
124
126
|
}
|
|
125
127
|
}
|
|
@@ -133,39 +135,41 @@ export interface ColorSwatchPopoverIconEventTypes {
|
|
|
133
135
|
}
|
|
134
136
|
|
|
135
137
|
export class ColorSwatchPopoverIcon extends Common.ObjectWrapper.ObjectWrapper<ColorSwatchPopoverIconEventTypes> {
|
|
136
|
-
private
|
|
138
|
+
private propertyData: StylePropertyData;
|
|
137
139
|
private readonly swatchPopoverHelper: InlineEditor.SwatchPopoverHelper.SwatchPopoverHelper;
|
|
138
140
|
private swatch: InlineEditor.ColorSwatch.ColorSwatch;
|
|
139
141
|
private contrastInfo: ColorPicker.ContrastInfo.ContrastInfo|null;
|
|
140
|
-
private readonly boundSpectrumChanged: (event:
|
|
142
|
+
private readonly boundSpectrumChanged: (event: ColorPicker.Spectrum.ColorChangedEvent) => void;
|
|
143
|
+
private readonly boundSpectrumResized: () => void;
|
|
141
144
|
private readonly boundOnScroll: (event: Event) => void;
|
|
142
145
|
private spectrum?: ColorPicker.Spectrum.Spectrum;
|
|
143
146
|
private scrollerElement?: Element;
|
|
144
147
|
private originalPropertyText?: string|null;
|
|
145
148
|
|
|
146
|
-
constructor(
|
|
147
|
-
|
|
148
|
-
|
|
149
|
+
constructor(propertyData: StylePropertyData,
|
|
150
|
+
swatchPopoverHelper: InlineEditor.SwatchPopoverHelper.SwatchPopoverHelper,
|
|
151
|
+
swatch: InlineEditor.ColorSwatch.ColorSwatch) {
|
|
149
152
|
super();
|
|
150
153
|
|
|
151
|
-
this.
|
|
154
|
+
this.propertyData = propertyData;
|
|
152
155
|
this.swatchPopoverHelper = swatchPopoverHelper;
|
|
153
156
|
this.swatch = swatch;
|
|
154
157
|
this.swatch.addEventListener(InlineEditor.ColorSwatch.ClickEvent.eventName, this.iconClick.bind(this));
|
|
155
158
|
this.contrastInfo = null;
|
|
156
159
|
|
|
157
160
|
this.boundSpectrumChanged = this.spectrumChanged.bind(this);
|
|
161
|
+
this.boundSpectrumResized = this.spectrumResized.bind(this);
|
|
158
162
|
this.boundOnScroll = this.onScroll.bind(this);
|
|
159
163
|
}
|
|
160
164
|
|
|
161
165
|
private generateCSSVariablesPalette(): ColorPicker.Spectrum.Palette {
|
|
162
|
-
const matchedStyles = this.
|
|
163
|
-
const style = this.
|
|
166
|
+
const matchedStyles = this.propertyData.matchedStyles();
|
|
167
|
+
const style = this.propertyData.property.ownerStyle;
|
|
164
168
|
const cssVariables = matchedStyles.availableCSSVariables(style);
|
|
165
169
|
const colors = [];
|
|
166
170
|
const colorNames = [];
|
|
167
171
|
for (const cssVariable of cssVariables) {
|
|
168
|
-
if (cssVariable === this.
|
|
172
|
+
if (cssVariable === this.propertyData.property.name) {
|
|
169
173
|
continue;
|
|
170
174
|
}
|
|
171
175
|
const value = matchedStyles.computeCSSVariable(style, cssVariable);
|
|
@@ -207,21 +211,21 @@ export class ColorSwatchPopoverIcon extends Common.ObjectWrapper.ObjectWrapper<C
|
|
|
207
211
|
}
|
|
208
212
|
|
|
209
213
|
this.spectrum = new ColorPicker.Spectrum.Spectrum(this.contrastInfo);
|
|
210
|
-
this.spectrum.
|
|
214
|
+
this.spectrum.color = color;
|
|
211
215
|
this.spectrum.addPalette(this.generateCSSVariablesPalette());
|
|
212
216
|
|
|
213
|
-
this.spectrum.addEventListener(ColorPicker.Spectrum.
|
|
214
|
-
this.spectrum.addEventListener(ColorPicker.Spectrum.
|
|
217
|
+
this.spectrum.element.addEventListener(ColorPicker.Spectrum.SizeChangedEvent.eventName, this.boundSpectrumResized);
|
|
218
|
+
this.spectrum.element.addEventListener(ColorPicker.Spectrum.ColorChangedEvent.eventName, this.boundSpectrumChanged);
|
|
215
219
|
this.swatchPopoverHelper.show(this.spectrum, this.swatch, this.onPopoverHidden.bind(this));
|
|
216
220
|
this.scrollerElement = this.swatch.enclosingNodeOrSelfWithClass('style-panes-wrapper');
|
|
217
221
|
if (this.scrollerElement) {
|
|
218
222
|
this.scrollerElement.addEventListener('scroll', this.boundOnScroll, false);
|
|
219
223
|
}
|
|
220
224
|
|
|
221
|
-
this.originalPropertyText = this.
|
|
222
|
-
this.
|
|
225
|
+
this.originalPropertyText = this.propertyData.property.propertyText;
|
|
226
|
+
this.propertyData.stylesContainer().setEditingStyle(true);
|
|
223
227
|
const uiLocation = Bindings.CSSWorkspaceBinding.CSSWorkspaceBinding.instance().propertyUILocation(
|
|
224
|
-
this.
|
|
228
|
+
this.propertyData.property, false /* forName */);
|
|
225
229
|
if (uiLocation) {
|
|
226
230
|
void Common.Revealer.reveal(uiLocation, true /* omitFocus */);
|
|
227
231
|
}
|
|
@@ -233,7 +237,7 @@ export class ColorSwatchPopoverIcon extends Common.ObjectWrapper.ObjectWrapper<C
|
|
|
233
237
|
this.swatchPopoverHelper.reposition();
|
|
234
238
|
}
|
|
235
239
|
|
|
236
|
-
private async spectrumChanged(event:
|
|
240
|
+
private async spectrumChanged(event: ColorPicker.Spectrum.ColorChangedEvent): Promise<void> {
|
|
237
241
|
const getColor = (colorText: string): Common.Color.Color|null => {
|
|
238
242
|
const color = Common.Color.parse(colorText);
|
|
239
243
|
const customProperty = this.spectrum?.colorName()?.startsWith('--') && `var(${this.spectrum.colorName()})`;
|
|
@@ -292,13 +296,16 @@ export class ColorSwatchPopoverIcon extends Common.ObjectWrapper.ObjectWrapper<C
|
|
|
292
296
|
}
|
|
293
297
|
|
|
294
298
|
if (this.spectrum) {
|
|
295
|
-
this.spectrum.removeEventListener(ColorPicker.Spectrum.
|
|
299
|
+
this.spectrum.element.removeEventListener(ColorPicker.Spectrum.SizeChangedEvent.eventName,
|
|
300
|
+
this.boundSpectrumResized);
|
|
301
|
+
this.spectrum.element.removeEventListener(ColorPicker.Spectrum.ColorChangedEvent.eventName,
|
|
302
|
+
this.boundSpectrumChanged);
|
|
296
303
|
}
|
|
297
304
|
this.spectrum = undefined;
|
|
298
305
|
|
|
299
|
-
const propertyText = commitEdit ? this.
|
|
300
|
-
void this.
|
|
301
|
-
this.
|
|
306
|
+
const propertyText = commitEdit ? this.propertyData.renderedPropertyText() : this.originalPropertyText || '';
|
|
307
|
+
void this.propertyData.applyStyleText(propertyText, true);
|
|
308
|
+
this.propertyData.stylesContainer().setEditingStyle(false);
|
|
302
309
|
delete this.originalPropertyText;
|
|
303
310
|
|
|
304
311
|
UI.Context.Context.instance().setFlavor(ColorSwatchPopoverIcon, null);
|
|
@@ -314,7 +321,7 @@ export interface ShadowEventTypes {
|
|
|
314
321
|
}
|
|
315
322
|
|
|
316
323
|
export class ShadowSwatchPopoverHelper extends Common.ObjectWrapper.ObjectWrapper<ShadowEventTypes> {
|
|
317
|
-
private
|
|
324
|
+
private propertyData: StylePropertyData;
|
|
318
325
|
private readonly swatchPopoverHelper: InlineEditor.SwatchPopoverHelper.SwatchPopoverHelper;
|
|
319
326
|
private readonly boundShadowChanged:
|
|
320
327
|
(event: Common.EventTarget.EventTargetEvent<InlineEditor.CSSShadowEditor.CSSShadowModel>) => void;
|
|
@@ -322,10 +329,10 @@ export class ShadowSwatchPopoverHelper extends Common.ObjectWrapper.ObjectWrappe
|
|
|
322
329
|
private cssShadowEditor?: InlineEditor.CSSShadowEditor.CSSShadowEditor;
|
|
323
330
|
private scrollerElement?: Element;
|
|
324
331
|
private originalPropertyText?: string|null;
|
|
325
|
-
constructor(
|
|
332
|
+
constructor(propertyData: StylePropertyData,
|
|
326
333
|
swatchPopoverHelper: InlineEditor.SwatchPopoverHelper.SwatchPopoverHelper) {
|
|
327
334
|
super();
|
|
328
|
-
this.
|
|
335
|
+
this.propertyData = propertyData;
|
|
329
336
|
this.swatchPopoverHelper = swatchPopoverHelper;
|
|
330
337
|
|
|
331
338
|
this.boundShadowChanged = this.shadowChanged.bind(this);
|
|
@@ -349,10 +356,10 @@ export class ShadowSwatchPopoverHelper extends Common.ObjectWrapper.ObjectWrappe
|
|
|
349
356
|
this.scrollerElement.addEventListener('scroll', this.boundOnScroll, false);
|
|
350
357
|
}
|
|
351
358
|
|
|
352
|
-
this.originalPropertyText = this.
|
|
353
|
-
this.
|
|
359
|
+
this.originalPropertyText = this.propertyData.property.propertyText;
|
|
360
|
+
this.propertyData.stylesContainer().setEditingStyle(true);
|
|
354
361
|
const uiLocation = Bindings.CSSWorkspaceBinding.CSSWorkspaceBinding.instance().propertyUILocation(
|
|
355
|
-
this.
|
|
362
|
+
this.propertyData.property, false /* forName */);
|
|
356
363
|
if (uiLocation) {
|
|
357
364
|
void Common.Revealer.reveal(uiLocation, true /* omitFocus */);
|
|
358
365
|
}
|
|
@@ -377,9 +384,9 @@ export class ShadowSwatchPopoverHelper extends Common.ObjectWrapper.ObjectWrappe
|
|
|
377
384
|
}
|
|
378
385
|
this.cssShadowEditor = undefined;
|
|
379
386
|
|
|
380
|
-
const propertyText = commitEdit ? this.
|
|
381
|
-
void this.
|
|
382
|
-
this.
|
|
387
|
+
const propertyText = commitEdit ? this.propertyData.renderedPropertyText() : this.originalPropertyText || '';
|
|
388
|
+
void this.propertyData.applyStyleText(propertyText, true);
|
|
389
|
+
this.propertyData.stylesContainer().setEditingStyle(false);
|
|
383
390
|
delete this.originalPropertyText;
|
|
384
391
|
}
|
|
385
392
|
}
|
|
@@ -427,9 +427,7 @@ export class LayoutPane extends UI.Widget.Widget {
|
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
429
|
} catch (error) {
|
|
430
|
-
//
|
|
431
|
-
// has been removed. This causes an error that a node has not been found.
|
|
432
|
-
// We can skip nodes that resulted in an error.
|
|
430
|
+
// Skip models whose DOM nodes were removed while the layout panel was updating.
|
|
433
431
|
console.warn(error);
|
|
434
432
|
}
|
|
435
433
|
}
|
|
@@ -104,7 +104,7 @@ export const DEFAULT_VIEW: View = (input, _output, target) => {
|
|
|
104
104
|
${input.objectTree && input.allChildrenFiltered ? html`
|
|
105
105
|
<div class="gray-info-message">${i18nString(UIStrings.noMatchingProperty)}</div>
|
|
106
106
|
` : nothing}
|
|
107
|
-
<devtools-tree show-selection-on-keyboard-focus
|
|
107
|
+
<devtools-tree show-selection-on-keyboard-focus .template=${html`
|
|
108
108
|
<style>${ObjectUI.ObjectPropertiesSection.objectValueStyles}</style>
|
|
109
109
|
<style>${ObjectUI.ObjectPropertiesSection.objectPropertiesSectionStyles}</style>
|
|
110
110
|
<ul role=tree open class="source-code object-properties-section" ${
|
|
@@ -122,13 +122,6 @@ export const DEFAULT_VIEW: View = (input, _output, target) => {
|
|
|
122
122
|
const getShowAllPropertiesSetting = (): Common.Settings.Setting<boolean> =>
|
|
123
123
|
Common.Settings.Settings.instance().createSetting('show-all-properties', /* defaultValue */ false);
|
|
124
124
|
|
|
125
|
-
function onExpand(event: Event): void {
|
|
126
|
-
const expanded = (event as CustomEvent<{expanded: boolean}>).detail.expanded;
|
|
127
|
-
if (expanded) {
|
|
128
|
-
Host.userMetrics.actionTaken(Host.UserMetrics.Action.DOMPropertiesExpanded);
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
|
|
132
125
|
export class PropertiesWidget extends UI.Widget.VBox {
|
|
133
126
|
private readonly showAllPropertiesSetting: Common.Settings.Setting<boolean>;
|
|
134
127
|
private filterRegex: RegExp|null = null;
|
|
@@ -139,6 +132,24 @@ export class PropertiesWidget extends UI.Widget.VBox {
|
|
|
139
132
|
#isRegex = false;
|
|
140
133
|
#filterText = '';
|
|
141
134
|
|
|
135
|
+
#onNodeExpanded(): void {
|
|
136
|
+
Host.userMetrics.actionTaken(Host.UserMetrics.Action.DOMPropertiesExpanded);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
override wasShown(): void {
|
|
140
|
+
super.wasShown();
|
|
141
|
+
this.#objectTree?.removeEventListener(ObjectUI.ObjectPropertiesSection.ObjectTreeNodeBase.Events.NODE_EXPANDED,
|
|
142
|
+
this.#onNodeExpanded, this);
|
|
143
|
+
this.#objectTree?.addEventListener(ObjectUI.ObjectPropertiesSection.ObjectTreeNodeBase.Events.NODE_EXPANDED,
|
|
144
|
+
this.#onNodeExpanded, this);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
override willHide(): void {
|
|
148
|
+
super.willHide();
|
|
149
|
+
this.#objectTree?.removeEventListener(ObjectUI.ObjectPropertiesSection.ObjectTreeNodeBase.Events.NODE_EXPANDED,
|
|
150
|
+
this.#onNodeExpanded, this);
|
|
151
|
+
}
|
|
152
|
+
|
|
142
153
|
constructor(view: View = DEFAULT_VIEW) {
|
|
143
154
|
super({useShadowDom: true});
|
|
144
155
|
|
|
@@ -210,6 +221,9 @@ export class PropertiesWidget extends UI.Widget.VBox {
|
|
|
210
221
|
this.#lastRequestedNode?.domModel().runtimeModel().releaseObjectGroup(OBJECT_GROUP_NAME);
|
|
211
222
|
this.#lastRequestedNode = UI.Context.Context.instance().flavor(SDK.DOMModel.DOMNode);
|
|
212
223
|
|
|
224
|
+
this.#objectTree?.removeEventListener(ObjectUI.ObjectPropertiesSection.ObjectTreeNodeBase.Events.NODE_EXPANDED,
|
|
225
|
+
this.#onNodeExpanded, this);
|
|
226
|
+
|
|
213
227
|
if (!this.#lastRequestedNode) {
|
|
214
228
|
this.#objectTree = null;
|
|
215
229
|
return;
|
|
@@ -224,6 +238,10 @@ export class PropertiesWidget extends UI.Widget.VBox {
|
|
|
224
238
|
readOnly: true,
|
|
225
239
|
});
|
|
226
240
|
this.#objectTree.expanded = true;
|
|
241
|
+
if (this.isShowing()) {
|
|
242
|
+
this.#objectTree.addEventListener(ObjectUI.ObjectPropertiesSection.ObjectTreeNodeBase.Events.NODE_EXPANDED,
|
|
243
|
+
this.#onNodeExpanded, this);
|
|
244
|
+
}
|
|
227
245
|
this.#updateFilter();
|
|
228
246
|
}
|
|
229
247
|
|
|
@@ -728,20 +728,29 @@ export class Renderer extends SDK.CSSPropertyParser.TreeWalker {
|
|
|
728
728
|
}
|
|
729
729
|
|
|
730
730
|
static renderNameElement(name: string): HTMLElement {
|
|
731
|
-
const
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
})}`);
|
|
737
|
-
UI.ARIAUtils.setLabel(nameElement, i18nString(UIStrings.cssPropertyName, {PH1: name}));
|
|
738
|
-
nameElement.className = 'webkit-css-property';
|
|
739
|
-
nameElement.textContent = name;
|
|
731
|
+
const fragment = document.createDocumentFragment();
|
|
732
|
+
render(this.nameTemplate(name), fragment);
|
|
733
|
+
const nameElement = fragment.firstElementChild as HTMLElement;
|
|
734
|
+
// Detach from the render fragment so callers get a standalone element.
|
|
735
|
+
nameElement.remove();
|
|
740
736
|
nameElement.normalize();
|
|
741
|
-
nameElement.tabIndex = -1;
|
|
742
737
|
return nameElement;
|
|
743
738
|
}
|
|
744
739
|
|
|
740
|
+
static nameTemplate(name: string): LitTemplate {
|
|
741
|
+
// clang-format off
|
|
742
|
+
return html`<span
|
|
743
|
+
jslog=${VisualLogging.key().track({
|
|
744
|
+
change: true,
|
|
745
|
+
keydown: 'ArrowLeft|ArrowUp|PageUp|Home|PageDown|ArrowRight|ArrowDown|End|Space|Tab|Enter|Escape',
|
|
746
|
+
})}
|
|
747
|
+
aria-label=${i18nString(UIStrings.cssPropertyName, {PH1: name})}
|
|
748
|
+
class="webkit-css-property"
|
|
749
|
+
tabindex="-1"
|
|
750
|
+
>${name}</span>`;
|
|
751
|
+
// clang-format on
|
|
752
|
+
}
|
|
753
|
+
|
|
745
754
|
// This function renders a property value as HTML, customizing the presentation with a set of given AST matchers. This
|
|
746
755
|
// comprises the following steps:
|
|
747
756
|
// 1. Build an AST of the property.
|
|
@@ -758,21 +767,36 @@ export class Renderer extends SDK.CSSPropertyParser.TreeWalker {
|
|
|
758
767
|
renderers: Array<MatchRenderer<SDK.CSSPropertyParser.Match>>, tracing?: TracingContext,
|
|
759
768
|
signal?: AbortSignal,
|
|
760
769
|
edits?: ValueUpdateTracking): {valueElement: HTMLElement, cssControls: CSSControlMap} {
|
|
761
|
-
const
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
UI.ARIAUtils.setLabel(valueElement, i18nString(UIStrings.cssPropertyValue, {PH1: property.value}));
|
|
768
|
-
valueElement.className = 'value';
|
|
769
|
-
valueElement.tabIndex = -1;
|
|
770
|
-
const {nodes, cssControls} = this.renderValueNodes(property, matchedResult, renderers, tracing, signal, edits);
|
|
771
|
-
render(nodes, valueElement);
|
|
770
|
+
const {template, cssControls} = this.valueTemplate(property, matchedResult, renderers, tracing, signal, edits);
|
|
771
|
+
const fragment = document.createDocumentFragment();
|
|
772
|
+
render(template, fragment);
|
|
773
|
+
const valueElement = fragment.firstElementChild as HTMLElement;
|
|
774
|
+
// Detach from the render fragment so callers get a standalone element.
|
|
775
|
+
valueElement.remove();
|
|
772
776
|
valueElement.normalize();
|
|
773
777
|
return {valueElement, cssControls};
|
|
774
778
|
}
|
|
775
779
|
|
|
780
|
+
static valueTemplate(property: SDK.CSSProperty.CSSProperty|{name: string, value: string},
|
|
781
|
+
matchedResult: SDK.CSSPropertyParser.BottomUpTreeMatching|null,
|
|
782
|
+
renderers: Array<MatchRenderer<SDK.CSSPropertyParser.Match>>, tracing?: TracingContext,
|
|
783
|
+
signal?: AbortSignal,
|
|
784
|
+
edits?: ValueUpdateTracking): {template: LitTemplate, cssControls: CSSControlMap} {
|
|
785
|
+
const {nodes, cssControls} = this.renderValueNodes(property, matchedResult, renderers, tracing, signal, edits);
|
|
786
|
+
// clang-format off
|
|
787
|
+
const template = html`<span
|
|
788
|
+
jslog=${VisualLogging.value().track({
|
|
789
|
+
change: true,
|
|
790
|
+
keydown: 'ArrowLeft|ArrowUp|PageUp|Home|PageDown|ArrowRight|ArrowDown|End|Space|Tab|Enter|Escape',
|
|
791
|
+
})}
|
|
792
|
+
aria-label=${i18nString(UIStrings.cssPropertyValue, {PH1: property.value})}
|
|
793
|
+
class="value"
|
|
794
|
+
tabindex="-1"
|
|
795
|
+
>${nodes}</span>`;
|
|
796
|
+
// clang-format on
|
|
797
|
+
return {template, cssControls};
|
|
798
|
+
}
|
|
799
|
+
|
|
776
800
|
static renderValueNodes(property: SDK.CSSProperty.CSSProperty|{name: string, value: string},
|
|
777
801
|
matchedResult: SDK.CSSPropertyParser.BottomUpTreeMatching|null,
|
|
778
802
|
renderers: Array<MatchRenderer<SDK.CSSPropertyParser.Match>>, tracing?: TracingContext,
|
|
@@ -15,7 +15,7 @@ import * as VisualLogging from '../../ui/visual_logging/visual_logging.js';
|
|
|
15
15
|
|
|
16
16
|
import type * as ElementsComponents from './components/components.js';
|
|
17
17
|
import {StylePropertiesSection} from './StylePropertiesSection.js';
|
|
18
|
-
import type {
|
|
18
|
+
import type {StylePropertyData} from './StylePropertyTreeElement.js';
|
|
19
19
|
import type {StylesContainer} from './StylesContainer.js';
|
|
20
20
|
import stylesSidebarPaneStyles from './stylesSidebarPane.css.js';
|
|
21
21
|
import {WebCustomData} from './WebCustomData.js';
|
|
@@ -233,14 +233,13 @@ export class StandaloneStylesContainer extends StandaloneStylesContainerBase imp
|
|
|
233
233
|
return this.#computedStyleModelInternal;
|
|
234
234
|
}
|
|
235
235
|
|
|
236
|
-
setActiveProperty(
|
|
236
|
+
setActiveProperty(_propertyData: StylePropertyData|null): void {
|
|
237
237
|
}
|
|
238
238
|
|
|
239
|
-
refreshUpdate(editedSection: StylePropertiesSection,
|
|
240
|
-
|
|
241
|
-
if (editedTreeElement) {
|
|
239
|
+
refreshUpdate(editedSection: StylePropertiesSection, editedProperty?: StylePropertyData, force = false): void {
|
|
240
|
+
if (editedProperty) {
|
|
242
241
|
for (const section of this.#sections) {
|
|
243
|
-
section.updateVarFunctions(
|
|
242
|
+
section.updateVarFunctions(editedProperty);
|
|
244
243
|
}
|
|
245
244
|
}
|
|
246
245
|
|
|
@@ -296,7 +295,7 @@ export class StandaloneStylesContainer extends StandaloneStylesContainerBase imp
|
|
|
296
295
|
}
|
|
297
296
|
|
|
298
297
|
getVariableParserError(_matchedStyles: SDK.CSSMatchedStyles.CSSMatchedStyles, _variableName: string):
|
|
299
|
-
ElementsComponents.CSSVariableValueView.
|
|
298
|
+
ElementsComponents.CSSVariableValueView.RegisteredPropertyDetails|null {
|
|
300
299
|
return null;
|
|
301
300
|
}
|
|
302
301
|
|