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
|
@@ -4,73 +4,77 @@
|
|
|
4
4
|
* found in the LICENSE file.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
@scope to (devtools-widget > *) {
|
|
8
|
+
.container {
|
|
9
|
+
min-width: var(--sys-size-24);
|
|
10
|
+
}
|
|
10
11
|
|
|
11
|
-
.row {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
12
|
+
.row {
|
|
13
|
+
padding: 0;
|
|
14
|
+
color: var(--sys-color-on-surface);
|
|
15
|
+
padding-bottom: var(--sys-size-8);
|
|
16
|
+
}
|
|
16
17
|
|
|
17
|
-
.row:last-child {
|
|
18
|
-
|
|
19
|
-
}
|
|
18
|
+
.row:last-child {
|
|
19
|
+
padding-bottom: 0;
|
|
20
|
+
}
|
|
20
21
|
|
|
21
|
-
.property {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
22
|
+
.property {
|
|
23
|
+
padding-bottom: var(--sys-size-3);
|
|
24
|
+
white-space: nowrap;
|
|
25
|
+
}
|
|
25
26
|
|
|
26
|
-
.property-name {
|
|
27
|
-
|
|
28
|
-
}
|
|
27
|
+
.property-name {
|
|
28
|
+
color: var(--sys-color-token-property-special);
|
|
29
|
+
}
|
|
29
30
|
|
|
30
|
-
.property-value {
|
|
31
|
-
|
|
32
|
-
}
|
|
31
|
+
.property-value {
|
|
32
|
+
color: var(--sys-color-on-surface);
|
|
33
|
+
}
|
|
33
34
|
|
|
34
|
-
.property-value.not-authored {
|
|
35
|
-
|
|
36
|
-
}
|
|
35
|
+
.property-value.not-authored {
|
|
36
|
+
color: var(--sys-color-state-disabled);
|
|
37
|
+
}
|
|
37
38
|
|
|
38
|
-
.buttons {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
39
|
+
.buttons {
|
|
40
|
+
display: flex;
|
|
41
|
+
flex-direction: row;
|
|
42
|
+
}
|
|
42
43
|
|
|
43
|
-
.buttons > :first-child {
|
|
44
|
-
|
|
45
|
-
}
|
|
44
|
+
.buttons > :first-child {
|
|
45
|
+
border-radius: var(--sys-shape-corner-extra-small) 0 0 var(--sys-shape-corner-extra-small);
|
|
46
|
+
}
|
|
46
47
|
|
|
47
|
-
.buttons > :last-child {
|
|
48
|
-
|
|
49
|
-
}
|
|
48
|
+
.buttons > :last-child {
|
|
49
|
+
border-radius: 0 var(--sys-shape-corner-extra-small) var(--sys-shape-corner-extra-small) 0;
|
|
50
|
+
}
|
|
50
51
|
|
|
51
|
-
.button {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
52
|
+
.button {
|
|
53
|
+
border: var(--sys-size-1) solid var(--sys-color-neutral-outline);
|
|
54
|
+
background-color: var(--sys-color-cdt-base-container);
|
|
55
|
+
width: var(--sys-size-11);
|
|
56
|
+
height: var(--sys-size-11);
|
|
57
|
+
min-width: var(--sys-size-11);
|
|
58
|
+
min-height: var(--sys-size-11);
|
|
59
|
+
padding: 0;
|
|
60
|
+
margin: 0;
|
|
61
|
+
display: flex;
|
|
62
|
+
justify-content: center;
|
|
63
|
+
align-items: center;
|
|
64
|
+
cursor: pointer;
|
|
65
|
+
}
|
|
65
66
|
|
|
66
|
-
.button devtools-icon {
|
|
67
|
-
color: var(--icon-default);
|
|
68
|
-
}
|
|
69
67
|
|
|
70
|
-
.button
|
|
71
|
-
|
|
72
|
-
}
|
|
68
|
+
.button devtools-icon {
|
|
69
|
+
color: var(--icon-default);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.button:hover devtools-icon {
|
|
73
|
+
color: var(--icon-default-hover);
|
|
74
|
+
}
|
|
73
75
|
|
|
74
|
-
.button.selected devtools-icon {
|
|
75
|
-
|
|
76
|
+
.button.selected devtools-icon {
|
|
77
|
+
color: var(--icon-toggled);
|
|
78
|
+
}
|
|
76
79
|
}
|
|
80
|
+
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
:host {
|
|
29
|
-
--metrics-height:
|
|
29
|
+
--metrics-height: var(--sys-size-25);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
.metrics.collapsed {
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
background-color: var(--sys-color-cdt-base-container);
|
|
54
54
|
display: inline-block;
|
|
55
55
|
text-align: center;
|
|
56
|
-
padding: var(--sys-size-2);
|
|
56
|
+
padding: var(--sys-size-2) var(--sys-size-4);
|
|
57
57
|
margin: var(--sys-size-2);
|
|
58
58
|
position: relative;
|
|
59
59
|
}
|
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
display: inline-block;
|
|
65
65
|
text-align: center;
|
|
66
66
|
vertical-align: middle;
|
|
67
|
-
padding:
|
|
68
|
-
margin:
|
|
67
|
+
padding: var(--sys-size-2) var(--sys-size-4);
|
|
68
|
+
margin: var(--sys-size-2);
|
|
69
69
|
position: relative;
|
|
70
70
|
}
|
|
71
71
|
|
|
@@ -86,10 +86,9 @@
|
|
|
86
86
|
display: inline-block;
|
|
87
87
|
text-align: center;
|
|
88
88
|
vertical-align: middle;
|
|
89
|
-
padding:
|
|
90
|
-
margin:
|
|
89
|
+
padding: var(--sys-size-2) var(--sys-size-4);
|
|
90
|
+
margin: var(--sys-size-2);
|
|
91
91
|
position: relative;
|
|
92
|
-
min-width: 120px;
|
|
93
92
|
}
|
|
94
93
|
|
|
95
94
|
.metrics .content {
|
|
@@ -291,15 +291,10 @@ devtools-icon.icon-link {
|
|
|
291
291
|
vertical-align: bottom;
|
|
292
292
|
}
|
|
293
293
|
|
|
294
|
-
devtools-css-angle
|
|
295
|
-
devtools-css-length {
|
|
294
|
+
devtools-css-angle {
|
|
296
295
|
display: inline-block;
|
|
297
296
|
}
|
|
298
297
|
|
|
299
|
-
devtools-css-length {
|
|
300
|
-
margin-left: var(--sys-size-1);
|
|
301
|
-
}
|
|
302
|
-
|
|
303
298
|
devtools-icon.open-in-animations-panel {
|
|
304
299
|
position: relative;
|
|
305
300
|
transform: scale(0.7);
|
|
@@ -245,13 +245,13 @@
|
|
|
245
245
|
|
|
246
246
|
.sidebar-separator {
|
|
247
247
|
background-color: var(--sys-color-surface2);
|
|
248
|
-
padding: 0
|
|
248
|
+
padding: 0 var(--sys-size-3);
|
|
249
249
|
border-bottom: var(--sys-size-1) solid var(--sys-color-divider);
|
|
250
250
|
color: var(--sys-color-on-surface-subtle);
|
|
251
251
|
white-space: nowrap;
|
|
252
252
|
text-overflow: ellipsis;
|
|
253
253
|
overflow: hidden;
|
|
254
|
-
line-height: var(--sys-
|
|
254
|
+
line-height: var(--sys-typescale-body2-line-height);
|
|
255
255
|
|
|
256
256
|
&.layer-separator {
|
|
257
257
|
display: flex;
|
|
@@ -266,12 +266,11 @@
|
|
|
266
266
|
.sidebar-pane-section-toolbar {
|
|
267
267
|
position: absolute;
|
|
268
268
|
right: 0;
|
|
269
|
-
bottom:
|
|
269
|
+
bottom: var(--sys-size-2);
|
|
270
270
|
z-index: 0;
|
|
271
271
|
|
|
272
272
|
&.new-rule-toolbar {
|
|
273
273
|
visibility: hidden;
|
|
274
|
-
margin-bottom: 5px;
|
|
275
274
|
|
|
276
275
|
--toolbar-height: var(--sys-size-8);
|
|
277
276
|
}
|
|
@@ -342,7 +342,7 @@ devtools-toolbar.device-mode-toolbar-options {
|
|
|
342
342
|
|
|
343
343
|
.device-mode-ruler-left .device-mode-ruler-marker {
|
|
344
344
|
height: 0;
|
|
345
|
-
width:
|
|
345
|
+
width: var(--sys-size-3);
|
|
346
346
|
right: 0;
|
|
347
347
|
border-bottom: var(--sys-size-1) solid var(--sys-color-token-subtle);
|
|
348
348
|
margin-bottom: calc(-1 * var(--sys-size-1));
|
|
@@ -66,6 +66,7 @@ interface ViewInput {
|
|
|
66
66
|
reveal(object: SDK.RemoteObject.RemoteObject): void;
|
|
67
67
|
listeners: Map<string, ListenerEntry[]>;
|
|
68
68
|
filter?: {showFramework: boolean, showPassive: boolean, showBlocking: boolean};
|
|
69
|
+
jslog?: string;
|
|
69
70
|
}
|
|
70
71
|
|
|
71
72
|
type View = (input: ViewInput, output: undefined, target: HTMLElement) => void;
|
|
@@ -203,10 +204,11 @@ export const DEFAULT_VIEW: View = (input, output, target) => {
|
|
|
203
204
|
</ul>
|
|
204
205
|
`}></devtools-tree>`}`,
|
|
205
206
|
// clang-format on
|
|
206
|
-
target);
|
|
207
|
+
target, {container: {attributes: {jslog: input.jslog}}});
|
|
207
208
|
};
|
|
208
209
|
|
|
209
210
|
export class EventListenersView extends UI.Widget.VBox {
|
|
211
|
+
protected readonly jslog?: string;
|
|
210
212
|
#objects: Array<SDK.RemoteObject.RemoteObject|null> = [];
|
|
211
213
|
#filter: {showFramework: boolean, showPassive: boolean, showBlocking: boolean}|undefined;
|
|
212
214
|
#view: View;
|
|
@@ -224,9 +226,13 @@ export class EventListenersView extends UI.Widget.VBox {
|
|
|
224
226
|
if (this.#objects === val) {
|
|
225
227
|
return;
|
|
226
228
|
}
|
|
229
|
+
this.setObjects(val);
|
|
230
|
+
this.requestUpdate();
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
protected setObjects(val: Array<SDK.RemoteObject.RemoteObject|null>): void {
|
|
227
234
|
this.#listeners = undefined;
|
|
228
235
|
this.#objects = val;
|
|
229
|
-
this.requestUpdate();
|
|
230
236
|
}
|
|
231
237
|
get filter(): {showFramework: boolean, showPassive: boolean, showBlocking: boolean}|undefined {
|
|
232
238
|
return this.#filter;
|
|
@@ -252,6 +258,7 @@ export class EventListenersView extends UI.Widget.VBox {
|
|
|
252
258
|
const input: ViewInput = {
|
|
253
259
|
listeners: listeners ?? new Map(),
|
|
254
260
|
filter: this.#filter,
|
|
261
|
+
jslog: this.jslog,
|
|
255
262
|
togglePassiveListener: (listener: SDK.DOMDebuggerModel.EventListener) => {
|
|
256
263
|
void listener.togglePassive().then(() => {
|
|
257
264
|
this.#listeners = undefined;
|
|
@@ -203,12 +203,11 @@ devtools-icon.leading-issue-icon {
|
|
|
203
203
|
}
|
|
204
204
|
|
|
205
205
|
.link-wrapper {
|
|
206
|
-
margin-top:
|
|
206
|
+
margin-top: var(--sys-size-8);
|
|
207
207
|
user-select: text;
|
|
208
208
|
}
|
|
209
209
|
|
|
210
|
-
.affected-resources-label
|
|
211
|
-
.resolutions-label {
|
|
210
|
+
.affected-resources-label {
|
|
212
211
|
margin-top: var(--sys-size-3);
|
|
213
212
|
font-size: var(--sys-typescale-body5-size);
|
|
214
213
|
font-weight: 500;
|
|
@@ -224,11 +223,6 @@ devtools-icon.leading-issue-icon {
|
|
|
224
223
|
padding-inline-start: 0;
|
|
225
224
|
}
|
|
226
225
|
|
|
227
|
-
.resolutions-list {
|
|
228
|
-
list-style-type: none;
|
|
229
|
-
list-style-position: inside;
|
|
230
|
-
padding-inline-start: 0;
|
|
231
|
-
}
|
|
232
226
|
|
|
233
227
|
/* We inherit all the styles from treeoutline, but these are simple text <li>, so we override some styles */
|
|
234
228
|
.link-list li::before {
|
|
@@ -236,33 +230,9 @@ devtools-icon.leading-issue-icon {
|
|
|
236
230
|
mask-image: none;
|
|
237
231
|
}
|
|
238
232
|
|
|
239
|
-
.resolutions-list li::before {
|
|
240
|
-
content: "→";
|
|
241
|
-
mask-image: none;
|
|
242
|
-
padding-right: 5px;
|
|
243
|
-
position: relative;
|
|
244
|
-
top: calc(-1 * var(--sys-size-1));
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
.resolutions-list li {
|
|
248
|
-
display: list-item;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
ul > li.plain-enum {
|
|
252
|
-
display: list-item;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
/* This is a hack because the tree view's CSS overrides list styling in a non-compositional way. This
|
|
256
|
-
can be removed once we've moved to proper components. */
|
|
257
|
-
ul > li.plain-enum::before {
|
|
258
|
-
content: "";
|
|
259
|
-
padding: 0;
|
|
260
|
-
margin: 0;
|
|
261
|
-
max-width: 0;
|
|
262
|
-
}
|
|
263
233
|
|
|
264
234
|
.affected-resources-label + .affected-resources {
|
|
265
|
-
padding:
|
|
235
|
+
padding: var(--sys-size-3) 0 0;
|
|
266
236
|
position: relative;
|
|
267
237
|
user-select: text;
|
|
268
238
|
}
|
|
@@ -289,7 +259,7 @@ ul > li.plain-enum::before {
|
|
|
289
259
|
|
|
290
260
|
.affected-resource-row {
|
|
291
261
|
font-size: var(--sys-typescale-body4-size);
|
|
292
|
-
line-height:
|
|
262
|
+
line-height: var(--sys-typescale-body4-line-height);
|
|
293
263
|
border: 0;
|
|
294
264
|
border-collapse: collapse;
|
|
295
265
|
vertical-align: top;
|
|
@@ -316,7 +286,7 @@ ul > li.plain-enum::before {
|
|
|
316
286
|
|
|
317
287
|
.affected-resource-source {
|
|
318
288
|
font-size: var(--sys-typescale-body4-size);
|
|
319
|
-
line-height:
|
|
289
|
+
line-height: var(--sys-typescale-body4-line-height);
|
|
320
290
|
color: var(--sys-color-primary);
|
|
321
291
|
border: 0;
|
|
322
292
|
border-collapse: collapse;
|
|
@@ -367,12 +337,6 @@ ul > li.plain-enum::before {
|
|
|
367
337
|
padding: var(--sys-size-2);
|
|
368
338
|
}
|
|
369
339
|
|
|
370
|
-
.affected-resource-heavy-ad-info-frame {
|
|
371
|
-
display: flex;
|
|
372
|
-
align-items: center;
|
|
373
|
-
color: var(--sys-color-token-subtle);
|
|
374
|
-
padding: var(--sys-size-2);
|
|
375
|
-
}
|
|
376
340
|
|
|
377
341
|
.affected-resource-cell {
|
|
378
342
|
color: var(--sys-color-token-subtle);
|
|
@@ -413,7 +377,7 @@ ul > li.plain-enum::before {
|
|
|
413
377
|
|
|
414
378
|
.affected-resource-directive {
|
|
415
379
|
font-size: var(--sys-typescale-body4-size);
|
|
416
|
-
line-height:
|
|
380
|
+
line-height: var(--sys-typescale-body4-line-height);
|
|
417
381
|
border: 0;
|
|
418
382
|
border-collapse: collapse;
|
|
419
383
|
}
|
|
@@ -436,7 +400,6 @@ devtools-icon.link-icon {
|
|
|
436
400
|
devtools-icon.elements-panel,
|
|
437
401
|
devtools-icon.network-panel {
|
|
438
402
|
margin-right: 0.5ex;
|
|
439
|
-
vertical-align: baseline;
|
|
440
403
|
height: var(--sys-size-7);
|
|
441
404
|
}
|
|
442
405
|
|
|
@@ -202,7 +202,7 @@ const DEFAULT_VIEW = (input: ViewInput, output: ViewOutput, target: HTMLElement)
|
|
|
202
202
|
|
|
203
203
|
const emptyPieChartData: PerfUI.PieChart.PieChartData = {
|
|
204
204
|
chartName: i18nString(UIStrings.profilingResults),
|
|
205
|
-
size:
|
|
205
|
+
size: 56,
|
|
206
206
|
formatter: formatPieChartTime,
|
|
207
207
|
showLegend: false,
|
|
208
208
|
total: 0,
|
|
@@ -17,11 +17,12 @@
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
.paint-profiler-pie-chart {
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
/* 56px (--sys-size-17) pie chart SVG + 2 * 2px (--sys-size-2) padding. */
|
|
21
|
+
width: calc(var(--sys-size-17) + 2 * var(--sys-size-2)) !important; /* stylelint-disable-line declaration-no-important */
|
|
22
|
+
height: calc(var(--sys-size-17) + 2 * var(--sys-size-2)) !important; /* stylelint-disable-line declaration-no-important */
|
|
22
23
|
padding: var(--sys-size-2);
|
|
23
24
|
overflow: hidden;
|
|
24
|
-
font-size:
|
|
25
|
+
font-size: var(--sys-typescale-body5-size);
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
.paint-profiler-canvas-container canvas {
|
|
@@ -119,12 +119,7 @@ export class Item {
|
|
|
119
119
|
this.renderReport = renderReport;
|
|
120
120
|
this.showLandingCallback = showLandingCallback;
|
|
121
121
|
|
|
122
|
-
|
|
123
|
-
// `finalDisplayedUrl` is the new preferred URL to use for cosmetic identification.
|
|
124
|
-
// TODO: Remove the `finalUrl` backport once Lighthouse 10.0 is rolled into DevTools.
|
|
125
|
-
const finalDisplayedUrl = lighthouseResult.finalDisplayedUrl || lighthouseResult.finalUrl || '';
|
|
126
|
-
|
|
127
|
-
const url = new Common.ParsedURL.ParsedURL(finalDisplayedUrl);
|
|
122
|
+
const url = new Common.ParsedURL.ParsedURL(lighthouseResult.finalDisplayedUrl);
|
|
128
123
|
const timestamp = lighthouseResult.fetchTime;
|
|
129
124
|
this.element = document.createElement('option');
|
|
130
125
|
this.element.textContent = `${new Date(timestamp).toLocaleTimeString()} - ${url.domain()}`;
|
|
@@ -6,13 +6,11 @@
|
|
|
6
6
|
/* <3 */
|
|
7
7
|
|
|
8
8
|
.lighthouse-start-view {
|
|
9
|
-
line-height:
|
|
9
|
+
line-height: var(--sys-typescale-body4-line-height);
|
|
10
10
|
padding: var(--sys-size-11);
|
|
11
11
|
overflow: auto;
|
|
12
12
|
height: 100%;
|
|
13
|
-
|
|
14
|
-
--legacy-accent-color: #0535c1;
|
|
15
|
-
--legacy-accent-color-hover: #17b;
|
|
13
|
+
|
|
16
14
|
--font-size: var(--sys-typescale-body2-size);
|
|
17
15
|
--report-font-family: roboto, helvetica, arial, sans-serif;
|
|
18
16
|
}
|
|
@@ -33,8 +31,8 @@
|
|
|
33
31
|
}
|
|
34
32
|
|
|
35
33
|
.lighthouse-logo {
|
|
36
|
-
width:
|
|
37
|
-
height:
|
|
34
|
+
width: var(--sys-size-15);
|
|
35
|
+
height: var(--sys-size-15);
|
|
38
36
|
flex-shrink: 0;
|
|
39
37
|
background-repeat: no-repeat;
|
|
40
38
|
background-size: contain;
|
|
@@ -42,11 +40,6 @@
|
|
|
42
40
|
background-image: var(--image-file-lighthouse_logo);
|
|
43
41
|
}
|
|
44
42
|
|
|
45
|
-
.lighthouse-start-view .lighthouse-logo {
|
|
46
|
-
width: var(--sys-size-15);
|
|
47
|
-
height: var(--sys-size-15);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
43
|
.lighthouse-form-section {
|
|
51
44
|
padding: var(--sys-size-5);
|
|
52
45
|
flex: 1 1;
|
|
@@ -68,10 +61,6 @@
|
|
|
68
61
|
top: calc(-1 * var(--sys-size-2));
|
|
69
62
|
}
|
|
70
63
|
|
|
71
|
-
.lighthouse-form-section-label span.largeicon-checkmark {
|
|
72
|
-
top: calc(-1 * var(--sys-size-3));
|
|
73
|
-
}
|
|
74
|
-
|
|
75
64
|
.lighthouse-form-section-label .lighthouse-learn-more {
|
|
76
65
|
margin: var(--sys-size-9);
|
|
77
66
|
}
|
|
@@ -136,7 +125,7 @@
|
|
|
136
125
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
137
126
|
font-weight: bold;
|
|
138
127
|
padding-left: var(--sys-size-5);
|
|
139
|
-
padding-top:
|
|
128
|
+
padding-top: var(--sys-size-5);
|
|
140
129
|
}
|
|
141
130
|
|
|
142
131
|
.lighthouse-warning-text::before {
|
|
@@ -73,7 +73,6 @@ export const DEFAULT_VIEW = (input: ViewInput, _output: undefined, target: HTMLE
|
|
|
73
73
|
// Disabled until https://crbug.com/1079231 is fixed.
|
|
74
74
|
// clang-format off
|
|
75
75
|
render(html`
|
|
76
|
-
<style>${UI.inspectorCommonStyles}</style>
|
|
77
76
|
<style>${linearMemoryValueInterpreterStyles}</style>
|
|
78
77
|
<div class="value-interpreter">
|
|
79
78
|
<div class="settings-toolbar">
|
package/front_end/panels/linear_memory_inspector/components/linearMemoryHighlightChipList.css
CHANGED
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
.highlight-chip {
|
|
20
20
|
background: var(--sys-color-cdt-base-container);
|
|
21
21
|
border: var(--sys-size-1) solid var(--sys-color-divider);
|
|
22
|
-
height:
|
|
22
|
+
height: calc(var(--sys-size-8) + 2 * var(--sys-size-1)); /* --sys-size-8 micro button height + top/bottom --sys-size-1 borders */
|
|
23
23
|
border-radius: var(--sys-shape-corner-extra-small);
|
|
24
24
|
flex: 0 0 auto;
|
|
25
|
-
max-width:
|
|
25
|
+
max-width: var(--sys-size-29);
|
|
26
26
|
position: relative;
|
|
27
27
|
padding: 0 var(--sys-size-4);
|
|
28
28
|
}
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
.cell {
|
|
34
34
|
text-align: center;
|
|
35
35
|
border: var(--sys-size-1) solid transparent;
|
|
36
|
-
border-radius:
|
|
36
|
+
border-radius: var(--sys-shape-corner-extra-small);
|
|
37
37
|
|
|
38
38
|
&.focused-area {
|
|
39
39
|
background-color: var(--sys-color-tonal-container);
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
.byte-cell {
|
|
51
|
-
min-width:
|
|
51
|
+
min-width: var(--sys-size-9);
|
|
52
52
|
color: var(--sys-color-on-surface);
|
|
53
53
|
}
|
|
54
54
|
|