chrome-devtools-frontend 1.0.1689415 → 1.0.1690531

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.
Files changed (318) hide show
  1. package/.gitmodules +4 -0
  2. package/eslint.config.mjs +8 -2
  3. package/front_end/core/common/Object.ts +10 -4
  4. package/front_end/core/i18n/collect-ui-strings.js +5 -5
  5. package/front_end/core/i18n/generate-locales-js.js +1 -1
  6. package/front_end/core/i18n/i18n.ts +6 -0
  7. package/front_end/core/root/Runtime.ts +1 -5
  8. package/front_end/core/sdk/CSSMetadata.ts +3 -5
  9. package/front_end/core/sdk/DOMModel.ts +46 -11
  10. package/front_end/core/sdk/EmulationModel.ts +18 -0
  11. package/front_end/core/sdk/NetworkRequest.ts +50 -4
  12. package/front_end/core/sdk/NetworkRequestAccess.ts +172 -0
  13. package/front_end/core/sdk/SDKSettings.ts +9 -0
  14. package/front_end/core/sdk/Script.ts +0 -1
  15. package/front_end/core/sdk/SecurityOrigin.ts +160 -25
  16. package/front_end/core/sdk/Target.ts +1 -5
  17. package/front_end/core/sdk/sdk.ts +2 -0
  18. package/front_end/generated/SupportedCSSProperties.ts +1 -1
  19. package/front_end/models/ai_assistance/AiAgent2.ts +4 -1
  20. package/front_end/models/ai_assistance/AiConversation.ts +29 -18
  21. package/front_end/models/ai_assistance/AiUtils.ts +0 -10
  22. package/front_end/models/ai_assistance/agents/AccessibilityAgent.ts +6 -10
  23. package/front_end/models/ai_assistance/agents/StylingAgent.ts +0 -1
  24. package/front_end/models/ai_assistance/injected.ts +0 -2
  25. package/front_end/models/javascript_metadata/NativeFunctions.ts +1 -1
  26. package/front_end/models/trace/insights/CLSCulprits.ts +1 -2
  27. package/front_end/models/trace/insights/Cache.ts +1 -3
  28. package/front_end/models/trace/insights/CharacterSet.ts +1 -3
  29. package/front_end/models/trace/insights/DOMSize.ts +1 -3
  30. package/front_end/models/trace/insights/DocumentLatency.ts +1 -3
  31. package/front_end/models/trace/insights/DuplicatedJavaScript.ts +1 -3
  32. package/front_end/models/trace/insights/FontDisplay.ts +1 -2
  33. package/front_end/models/trace/insights/ForcedReflow.ts +1 -2
  34. package/front_end/models/trace/insights/INPBreakdown.ts +1 -3
  35. package/front_end/models/trace/insights/ImageDelivery.ts +1 -3
  36. package/front_end/models/trace/insights/LCPBreakdown.ts +1 -3
  37. package/front_end/models/trace/insights/LCPDiscovery.ts +1 -3
  38. package/front_end/models/trace/insights/LegacyJavaScript.ts +1 -3
  39. package/front_end/models/trace/insights/ModernHTTP.ts +1 -2
  40. package/front_end/models/trace/insights/NetworkDependencyTree.ts +1 -2
  41. package/front_end/models/trace/insights/RenderBlocking.ts +1 -3
  42. package/front_end/models/trace/insights/SlowCSSSelector.ts +1 -3
  43. package/front_end/models/trace/insights/ThirdParties.ts +1 -3
  44. package/front_end/models/trace/insights/Viewport.ts +1 -2
  45. package/front_end/panels/accessibility/ARIAAttributesView.ts +1 -1
  46. package/front_end/panels/accessibility/AccessibilityAnnouncementRecordingView.ts +3 -3
  47. package/front_end/panels/accessibility/AccessibilityNodeView.ts +1 -2
  48. package/front_end/panels/accessibility/AccessibilityStrings.ts +7 -3
  49. package/front_end/panels/ai_assistance/components/AIv2MarkdownRenderer.ts +2 -2
  50. package/front_end/panels/ai_assistance/components/AccessibilityAgentMarkdownRenderer.ts +1 -3
  51. package/front_end/panels/ai_assistance/components/chatMessage.css +3 -1
  52. package/front_end/panels/animation/AnimationGroupPreviewUI.ts +1 -1
  53. package/front_end/panels/animation/AnimationTimeline.ts +1 -1
  54. package/front_end/panels/animation/AnimationUI.ts +1 -1
  55. package/front_end/panels/application/AppManifestView.ts +6 -2
  56. package/front_end/panels/application/ApplicationPanelSidebar.ts +2 -4
  57. package/front_end/panels/application/BounceTrackingMitigationsTreeElement.ts +1 -1
  58. package/front_end/panels/application/FrameDetailsView.ts +1 -1
  59. package/front_end/panels/application/IndexedDBViews.ts +3 -2
  60. package/front_end/panels/application/ReportingApiTreeElement.ts +1 -1
  61. package/front_end/panels/application/ReportingApiView.ts +2 -2
  62. package/front_end/panels/application/ServiceWorkerUpdateCycleView.ts +1 -1
  63. package/front_end/panels/application/ServiceWorkersView.ts +1 -1
  64. package/front_end/panels/application/StorageBucketsTreeElement.ts +1 -1
  65. package/front_end/panels/application/StorageItemsToolbar.ts +6 -2
  66. package/front_end/panels/application/StorageView.ts +9 -8
  67. package/front_end/panels/application/TrustTokensTreeElement.ts +1 -1
  68. package/front_end/panels/application/WebMCPView.ts +2 -1
  69. package/front_end/panels/application/components/BackForwardCacheView.ts +1 -1
  70. package/front_end/panels/application/components/BounceTrackingMitigationsView.ts +1 -1
  71. package/front_end/panels/application/components/CrashReportContextGrid.ts +1 -1
  72. package/front_end/panels/application/components/EndpointsGrid.ts +3 -2
  73. package/front_end/panels/application/components/PermissionsPolicySection.ts +1 -1
  74. package/front_end/panels/application/components/ReportsGrid.ts +1 -1
  75. package/front_end/panels/application/components/ServiceWorkerRouterView.ts +1 -1
  76. package/front_end/panels/application/components/TrustTokensView.ts +2 -2
  77. package/front_end/panels/application/preloading/components/MismatchedPreloadingGrid.ts +1 -1
  78. package/front_end/panels/application/preloading/components/PreloadingDetailsReportView.ts +2 -1
  79. package/front_end/panels/application/preloading/components/PreloadingGrid.ts +1 -1
  80. package/front_end/panels/application/preloading/components/RuleSetDetailsView.ts +2 -1
  81. package/front_end/panels/application/preloading/components/RuleSetGrid.ts +7 -2
  82. package/front_end/panels/application/preloading/components/UsedPreloadingView.ts +1 -1
  83. package/front_end/panels/application/serviceWorkerUpdateCycleView.css +2 -0
  84. package/front_end/panels/autofill/AutofillView.ts +2 -2
  85. package/front_end/panels/browser_debugger/CategorizedBreakpointsSidebarPane.ts +2 -3
  86. package/front_end/panels/browser_debugger/DOMBreakpointsSidebarPane.ts +1 -1
  87. package/front_end/panels/changes/ChangesSidebar.ts +56 -15
  88. package/front_end/panels/changes/ChangesView.ts +1 -1
  89. package/front_end/panels/common/CPUThrottlingOption.ts +12 -6
  90. package/front_end/panels/common/DOMLinkifier.ts +1 -1
  91. package/front_end/panels/common/ExtensionView.ts +2 -1
  92. package/front_end/panels/console/ConsolePinPane.ts +4 -2
  93. package/front_end/panels/console/ConsolePrompt.ts +6 -2
  94. package/front_end/panels/console/ConsoleSidebar.ts +12 -4
  95. package/front_end/panels/console/PromptBuilder.ts +1 -1
  96. package/front_end/panels/coverage/CoverageListView.ts +1 -1
  97. package/front_end/panels/coverage/CoverageModel.ts +6 -4
  98. package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +9 -9
  99. package/front_end/panels/css_overview/CSSOverviewPanel.ts +3 -3
  100. package/front_end/panels/css_overview/CSSOverviewProcessingView.ts +2 -2
  101. package/front_end/panels/css_overview/CSSOverviewSidebarPanel.ts +3 -3
  102. package/front_end/panels/css_overview/CSSOverviewStartView.ts +3 -3
  103. package/front_end/panels/developer_resources/DeveloperResourcesListView.ts +1 -1
  104. package/front_end/panels/elements/ComputedStyleWidget.ts +1 -1
  105. package/front_end/panels/elements/ElementsTreeElement.ts +16 -3
  106. package/front_end/panels/elements/ElementsTreeOutline.ts +402 -130
  107. package/front_end/panels/elements/MetricsSidebarPane.ts +1 -1
  108. package/front_end/panels/elements/PropertyNameCategories.ts +1 -1
  109. package/front_end/panels/elements/PropertyRenderer.ts +22 -15
  110. package/front_end/panels/elements/ShortcutTreeElement.ts +2 -1
  111. package/front_end/panels/elements/StandaloneStylesContainer.ts +7 -3
  112. package/front_end/panels/elements/StylePropertiesSection.ts +1 -1
  113. package/front_end/panels/elements/StylePropertyTreeElement.ts +75 -26
  114. package/front_end/panels/elements/StylesSidebarPane.ts +9 -4
  115. package/front_end/panels/elements/components/StylePropertyEditor.ts +160 -148
  116. package/front_end/panels/elements/elementsTreeOutline.css +4 -0
  117. package/front_end/panels/emulation/DeviceModeView.ts +6 -1
  118. package/front_end/panels/emulation/InspectedPagePlaceholder.ts +6 -2
  119. package/front_end/panels/emulation/MediaQueryInspector.ts +2 -1
  120. package/front_end/panels/issues/AffectedLazyLoadImagesView.ts +1 -1
  121. package/front_end/panels/layer_viewer/LayerDetailsView.ts +6 -2
  122. package/front_end/panels/layer_viewer/LayerTreeOutline.ts +7 -2
  123. package/front_end/panels/layer_viewer/Layers3DView.ts +8 -1
  124. package/front_end/panels/layer_viewer/PaintProfilerView.ts +6 -2
  125. package/front_end/panels/lighthouse/lighthousePanel.css +5 -5
  126. package/front_end/panels/lighthouse/lighthouseStartView.css +13 -13
  127. package/front_end/panels/linear_memory_inspector/LinearMemoryInspectorPane.ts +6 -2
  128. package/front_end/panels/linear_memory_inspector/components/LinearMemoryInspector.ts +6 -2
  129. package/front_end/panels/linear_memory_inspector/components/linearMemoryInspector.css +2 -2
  130. package/front_end/panels/linear_memory_inspector/components/linearMemoryNavigator.css +1 -1
  131. package/front_end/panels/linear_memory_inspector/components/linearMemoryValueInterpreter.css +5 -5
  132. package/front_end/panels/linear_memory_inspector/components/linearMemoryViewer.css +6 -6
  133. package/front_end/panels/linear_memory_inspector/components/valueInterpreterDisplay.css +6 -6
  134. package/front_end/panels/linear_memory_inspector/components/valueInterpreterSettings.css +2 -2
  135. package/front_end/panels/mobile_throttling/NetworkThrottlingSelector.ts +6 -2
  136. package/front_end/panels/mobile_throttling/ThrottlingManager.ts +25 -54
  137. package/front_end/panels/network/NetworkDataGridNode.ts +11 -9
  138. package/front_end/panels/network/NetworkLogView.ts +12 -4
  139. package/front_end/panels/network/RequestConditionsDrawer.ts +2 -2
  140. package/front_end/panels/network/RequestHeadersView.ts +1 -1
  141. package/front_end/panels/network/RequestPayloadView.ts +1 -1
  142. package/front_end/panels/network/RequestResponseView.ts +1 -1
  143. package/front_end/panels/network/RequestTimingView.ts +1 -1
  144. package/front_end/panels/network/ShowMoreDetailsWidget.ts +1 -1
  145. package/front_end/panels/network/components/RequestHeadersView.css +5 -0
  146. package/front_end/panels/network/components/ResponseHeaderSection.ts +1 -1
  147. package/front_end/panels/network/networkLogView.css +4 -0
  148. package/front_end/panels/network/requestInitiatorViewTree.css +2 -0
  149. package/front_end/panels/performance_monitor/performanceMonitor.css +3 -3
  150. package/front_end/panels/profiler/HeapDetachedElementsView.ts +7 -2
  151. package/front_end/panels/profiler/HeapProfileView.ts +7 -2
  152. package/front_end/panels/profiler/HeapSnapshotDataGrids.ts +8 -4
  153. package/front_end/panels/profiler/HeapSnapshotGridNodes.ts +8 -4
  154. package/front_end/panels/profiler/HeapSnapshotView.ts +15 -6
  155. package/front_end/panels/profiler/HeapTimelineOverview.ts +6 -2
  156. package/front_end/panels/profiler/ProfileFlameChartDataProvider.ts +12 -5
  157. package/front_end/panels/profiler/ProfileLauncherView.ts +6 -2
  158. package/front_end/panels/profiler/profilesPanel.css +8 -9
  159. package/front_end/panels/profiler/profilesSidebarTree.css +13 -13
  160. package/front_end/panels/protocol_monitor/JSONEditor.css +2 -2
  161. package/front_end/panels/protocol_monitor/JSONEditor.ts +6 -1
  162. package/front_end/panels/protocol_monitor/protocolMonitor.css +2 -2
  163. package/front_end/panels/sources/BreakpointEditDialog.ts +1 -1
  164. package/front_end/panels/sources/CallStackSidebarPane.ts +1 -1
  165. package/front_end/panels/sources/DebuggerPausedMessage.ts +8 -6
  166. package/front_end/panels/sources/ProfilePlugin.ts +2 -1
  167. package/front_end/panels/sources/ScopeChainSidebarPane.ts +1 -1
  168. package/front_end/panels/sources/SourcesView.ts +7 -2
  169. package/front_end/panels/sources/TabbedEditorContainer.ts +6 -2
  170. package/front_end/panels/sources/UISourceCodeFrame.ts +10 -3
  171. package/front_end/panels/timeline/AnimationsTrackAppender.ts +1 -1
  172. package/front_end/panels/timeline/AnnotationHelpers.ts +9 -9
  173. package/front_end/panels/timeline/CountersGraph.ts +8 -8
  174. package/front_end/panels/timeline/EventsTimelineTreeView.ts +3 -3
  175. package/front_end/panels/timeline/ExtensionTrackAppender.ts +1 -1
  176. package/front_end/panels/timeline/GPUTrackAppender.ts +1 -1
  177. package/front_end/panels/timeline/InteractionsTrackAppender.ts +1 -1
  178. package/front_end/panels/timeline/IsolateSelector.ts +3 -3
  179. package/front_end/panels/timeline/LayoutShiftsTrackAppender.ts +4 -4
  180. package/front_end/panels/timeline/NetworkTrackAppender.ts +2 -2
  181. package/front_end/panels/timeline/StatusDialog.ts +5 -6
  182. package/front_end/panels/timeline/ThirdPartyTreeView.ts +4 -4
  183. package/front_end/panels/timeline/ThreadAppender.ts +12 -14
  184. package/front_end/panels/timeline/TimelineController.ts +5 -8
  185. package/front_end/panels/timeline/TimelineDetailsView.ts +13 -9
  186. package/front_end/panels/timeline/TimelineEventOverview.ts +4 -4
  187. package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +18 -18
  188. package/front_end/panels/timeline/TimelineFlameChartView.ts +8 -3
  189. package/front_end/panels/timeline/TimelineHistoryManager.ts +9 -9
  190. package/front_end/panels/timeline/TimelineLoader.ts +1 -1
  191. package/front_end/panels/timeline/TimelineMiniMap.ts +7 -2
  192. package/front_end/panels/timeline/TimelinePaintProfilerView.ts +7 -3
  193. package/front_end/panels/timeline/TimelinePanel.ts +60 -62
  194. package/front_end/panels/timeline/TimelineSelectorStatsView.ts +27 -27
  195. package/front_end/panels/timeline/TimelineTreeView.ts +47 -45
  196. package/front_end/panels/timeline/TimelineUIUtils.ts +146 -120
  197. package/front_end/panels/timeline/TimingsTrackAppender.ts +1 -1
  198. package/front_end/panels/timeline/TrackConfigBanner.ts +4 -4
  199. package/front_end/panels/timeline/UIDevtoolsUtils.ts +15 -15
  200. package/front_end/panels/timeline/components/LayoutShiftDetails.ts +4 -3
  201. package/front_end/panels/timeline/components/LiveMetricsView.ts +1 -1
  202. package/front_end/panels/timeline/components/NetworkRequestDetails.ts +25 -24
  203. package/front_end/panels/timeline/components/RelatedInsightChips.ts +4 -3
  204. package/front_end/panels/timeline/components/Sidebar.ts +1 -1
  205. package/front_end/panels/timeline/components/SidebarAnnotationsTab.ts +4 -3
  206. package/front_end/panels/timeline/components/insights/Table.ts +1 -1
  207. package/front_end/panels/timeline/enable-easter-egg.js +1 -1
  208. package/front_end/panels/timeline/timeline-meta.ts +30 -30
  209. package/front_end/panels/timeline/timelineFlameChartView.css +10 -10
  210. package/front_end/panels/timeline/timelineFlamechartPopover.css +5 -5
  211. package/front_end/panels/timeline/timelineHistoryManager.css +7 -7
  212. package/front_end/panels/timeline/timelinePaintProfiler.css +2 -2
  213. package/front_end/panels/timeline/utils/Helpers.ts +1 -1
  214. package/front_end/panels/timeline/utils/IgnoreList.ts +4 -4
  215. package/front_end/panels/timeline/utils/ImageCache.ts +5 -3
  216. package/front_end/panels/web_audio/WebAudioView.ts +3 -3
  217. package/front_end/panels/webauthn/WebauthnPane.ts +5 -11
  218. package/front_end/third_party/acorn/acorn.ts +3 -3
  219. package/front_end/third_party/chromium/README.chromium +1 -1
  220. package/front_end/third_party/chromium/ahem/ahem.d.ts +1 -0
  221. package/front_end/third_party/csp_evaluator/package/csp.ts +4 -4
  222. package/front_end/third_party/csp_evaluator/package/parser.ts +3 -1
  223. package/front_end/third_party/csp_evaluator/package/utils.ts +1 -1
  224. package/front_end/third_party/diff/diff_match_patch.d.ts +10 -0
  225. package/front_end/third_party/json5/json5.ts +2 -2
  226. package/front_end/ui/comments/CommentAnchorResolver.ts +12 -3
  227. package/front_end/ui/comments/CommentOverlayManager.ts +9 -1
  228. package/front_end/ui/components/buttons/Button.docs.ts +1 -1
  229. package/front_end/ui/components/buttons/button.css +21 -0
  230. package/front_end/ui/components/buttons/floatingButton.css +25 -0
  231. package/front_end/ui/components/report_view/ReportView.docs.ts +1 -1
  232. package/front_end/ui/components/snackbars/Snackbars.docs.ts +1 -1
  233. package/front_end/ui/components/spinners/Spinner.ts +1 -1
  234. package/front_end/ui/components/spinners/Spinners.docs.ts +1 -1
  235. package/front_end/ui/components/srgb_overlay/SrgbOverlay.ts +1 -1
  236. package/front_end/ui/components/suggestion_input/SuggestionInput.ts +46 -27
  237. package/front_end/ui/components/switch/Switch.docs.ts +1 -1
  238. package/front_end/ui/components/text_editor/AiCodeCompletionProvider.ts +10 -8
  239. package/front_end/ui/components/text_editor/AiCodeGenerationProvider.ts +2 -1
  240. package/front_end/ui/components/text_editor/ExecutionPositionHighlighter.ts +2 -2
  241. package/front_end/ui/components/text_editor/TextEditor.ts +19 -0
  242. package/front_end/ui/components/text_editor/config.ts +109 -96
  243. package/front_end/ui/components/text_editor/cursor_tooltip.ts +1 -1
  244. package/front_end/ui/components/text_editor/theme.ts +1 -1
  245. package/front_end/ui/components/tooltips/Tooltip.docs.ts +1 -1
  246. package/front_end/ui/components/tooltips/Tooltip.ts +1 -1
  247. package/front_end/ui/components/tree_outline/TreeOutlineUtils.ts +4 -1
  248. package/front_end/ui/kit/cards/Card.ts +1 -1
  249. package/front_end/ui/kit/icons/Icon.ts +1 -1
  250. package/front_end/ui/kit/link/Link.docs.ts +1 -1
  251. package/front_end/ui/kit/link/Link.ts +1 -1
  252. package/front_end/ui/legacy/ContextMenu.docs.ts +1 -1
  253. package/front_end/ui/legacy/ContextMenu.ts +2 -2
  254. package/front_end/ui/legacy/Dialog.ts +10 -2
  255. package/front_end/ui/legacy/DropTarget.ts +6 -1
  256. package/front_end/ui/legacy/EmptyWidget.ts +1 -1
  257. package/front_end/ui/legacy/FilterBar.ts +6 -1
  258. package/front_end/ui/legacy/GlassPane.ts +1 -1
  259. package/front_end/ui/legacy/RadioButton.docs.ts +1 -1
  260. package/front_end/ui/legacy/SelectMenu.docs.ts +1 -1
  261. package/front_end/ui/legacy/ShortcutRegistry.ts +2 -2
  262. package/front_end/ui/legacy/Slider.docs.ts +1 -1
  263. package/front_end/ui/legacy/SplitWidget.ts +7 -2
  264. package/front_end/ui/legacy/StackedPane.ts +1 -1
  265. package/front_end/ui/legacy/TabbedPane.ts +5 -1
  266. package/front_end/ui/legacy/TargetCrashedScreen.ts +1 -1
  267. package/front_end/ui/legacy/TextPrompt.ts +2 -1
  268. package/front_end/ui/legacy/Toolbar.ts +1 -1
  269. package/front_end/ui/legacy/Treeoutline.ts +13 -37
  270. package/front_end/ui/legacy/UIUtils.ts +6 -3
  271. package/front_end/ui/legacy/ViewManager.ts +1 -1
  272. package/front_end/ui/legacy/Widget.ts +1 -1
  273. package/front_end/ui/legacy/components/color_picker/Spectrum.ts +13 -2
  274. package/front_end/ui/legacy/components/data_grid/DataGrid.ts +1 -1
  275. package/front_end/ui/legacy/components/data_grid/DataGridElement.ts +3 -2
  276. package/front_end/ui/legacy/components/data_grid/ViewportDataGrid.ts +6 -2
  277. package/front_end/ui/legacy/components/inline_editor/AnimationTimingModel.ts +1 -1
  278. package/front_end/ui/legacy/components/inline_editor/BezierEditor.ts +54 -45
  279. package/front_end/ui/legacy/components/inline_editor/CSSAngleUtils.ts +1 -1
  280. package/front_end/ui/legacy/components/inline_editor/CSSShadowEditor.ts +6 -2
  281. package/front_end/ui/legacy/components/object_ui/CustomPreviewComponent.ts +141 -106
  282. package/front_end/ui/legacy/components/object_ui/ObjectPopoverHelper.ts +1 -1
  283. package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +10 -10
  284. package/front_end/ui/legacy/components/object_ui/objectPropertiesSection.css +2 -0
  285. package/front_end/ui/legacy/components/perf_ui/FilmStripView.ts +6 -1
  286. package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +6 -2
  287. package/front_end/ui/legacy/components/perf_ui/TimelineOverviewPane.ts +8 -4
  288. package/front_end/ui/legacy/components/perf_ui/pieChart.css +7 -5
  289. package/front_end/ui/legacy/components/quick_open/FilteredListWidget.ts +8 -3
  290. package/front_end/ui/legacy/components/quick_open/QuickOpen.ts +6 -1
  291. package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +15 -7
  292. package/front_end/ui/legacy/components/utils/JSPresentationUtils.ts +1 -1
  293. package/front_end/ui/legacy/components/utils/Linkifier.ts +5 -5
  294. package/front_end/ui/legacy/inspectorCommon.css +11 -0
  295. package/front_end/ui/visual_logging/Debugging.ts +2 -1
  296. package/front_end/ui/visual_logging/KnownContextValues.ts +1 -1
  297. package/front_end/ui/visual_logging/LoggingDriver.ts +3 -3
  298. package/front_end/ui/visual_logging/LoggingEvents.ts +5 -5
  299. package/front_end/ui/visual_logging/LoggingState.ts +1 -1
  300. package/front_end/ui/visual_logging/visual_logging.ts +67 -56
  301. package/package.json +3 -2
  302. package/front_end/third_party/acorn/acorn-tsconfig.json +0 -12
  303. package/front_end/third_party/acorn/estree-tsconfig.json +0 -8
  304. package/front_end/third_party/chromium/client-variations/client-variations-tsconfig.json +0 -8
  305. package/front_end/third_party/codemirror/codemirror-legacy-types-tsconfig.json +0 -8
  306. package/front_end/third_party/codemirror/codemirror-tsconfig.json +0 -15
  307. package/front_end/third_party/codemirror.next/bundle-tsconfig.json +0 -24
  308. package/front_end/third_party/intl-messageformat/intl-messageformat-tsconfig.json +0 -16
  309. package/front_end/third_party/json5/json5-tsconfig.json +0 -8
  310. package/front_end/third_party/legacy-javascript/legacy-javascript-tsconfig.json +0 -8
  311. package/front_end/third_party/lighthouse/lighthouse-tsconfig.json +0 -11
  312. package/front_end/third_party/lighthouse/report/bundle-tsconfig.json +0 -8
  313. package/front_end/third_party/lit/lit-tsconfig.json +0 -15
  314. package/front_end/third_party/marked/marked-tsconfig.json +0 -8
  315. package/front_end/third_party/puppeteer/puppeteer-tsconfig.json +0 -191
  316. package/front_end/third_party/third-party-web/third-party-web-tsconfig.json +0 -8
  317. package/front_end/third_party/wasmparser/wasmparser-tsconfig.json +0 -9
  318. package/front_end/third_party/web-vitals/web-vitals-tsconfig.json +0 -47
@@ -9,16 +9,16 @@ import * as UI from '../../ui/legacy/legacy.js';
9
9
 
10
10
  const UIStrings = {
11
11
  /**
12
- * @description Message shown in a banner when some tracks are hidden in the timeline.
12
+ * @description Message shown in a banner when some tracks are hidden in the Performance panel.
13
13
  */
14
14
  someTracksAreHidden:
15
- 'Some tracks are hidden in this trace. You can configure tracks by right clicking the track name.',
15
+ 'Some tracks are hidden in this trace. You can configure tracks by right-clicking the track name.',
16
16
  /**
17
- * @description Text for a button to show all hidden tracks.
17
+ * @description Button label to show all hidden tracks in the Performance panel.
18
18
  */
19
19
  showAll: 'Show all',
20
20
  /**
21
- * @description Text for a button that opens a view to configure which tracks are visible.
21
+ * @description Button label to open the track configuration view in the Performance panel.
22
22
  */
23
23
  configureTracks: 'Configure tracks',
24
24
  } as const;
@@ -8,63 +8,63 @@ import * as Trace from '../../models/trace/trace.js';
8
8
 
9
9
  const UIStrings = {
10
10
  /**
11
- * @description Text in Timeline UIUtils of the Performance panel
11
+ * @description Label for a frame start event in the Performance panel.
12
12
  */
13
13
  frameStart: 'Frame start',
14
14
  /**
15
- * @description Text in Timeline UIUtils of the Performance panel
15
+ * @description Label for a draw frame event in the Performance panel.
16
16
  */
17
17
  drawFrame: 'Draw frame',
18
18
  /**
19
- * @description Text in Timeline UIUtils of the Performance panel
19
+ * @description Label for a layout event in the Performance panel.
20
20
  */
21
21
  layout: 'Layout',
22
22
  /**
23
- * @description Text in UIDevtools Utils of the Performance panel
23
+ * @description Label for a rasterizing event in the Performance panel.
24
24
  */
25
25
  rasterizing: 'Rasterizing',
26
26
  /**
27
- * @description Text in UIDevtools Utils of the Performance panel
27
+ * @description Label for a drawing event in the Performance panel.
28
28
  */
29
29
  drawing: 'Drawing',
30
30
  /**
31
- * @description Text in Timeline UIUtils of the Performance panel
31
+ * @description Label for a painting event in the Performance panel.
32
32
  */
33
33
  painting: 'Painting',
34
34
  /**
35
- * @description Text in Timeline UIUtils of the Performance panel
35
+ * @description Event category for system activity in the Performance panel.
36
36
  */
37
37
  system: 'System',
38
38
  /**
39
- * @description Text in Timeline UIUtils of the Performance panel
39
+ * @description Event category for idle time in the Performance panel.
40
40
  */
41
41
  idle: 'Idle',
42
42
  /**
43
- * @description Category in the Summary view of the Performance panel to indicate time spent to load resources
43
+ * @description Event category for network and resource loading in the Performance panel.
44
44
  */
45
45
  loading: 'Loading',
46
46
  /**
47
- * @description Text in Timeline for the Experience title
47
+ * @description Header for the user experience events track in the Performance panel.
48
48
  */
49
49
  experience: 'Experience',
50
50
  /**
51
- * @description Category in the Summary view of the Performance panel to indicate time spent in script execution
51
+ * @description Event category for script execution in the Performance panel.
52
52
  */
53
53
  scripting: 'Scripting',
54
54
  /**
55
- * @description Category in the Summary view of the Performance panel to indicate time spent in rendering the web page
55
+ * @description Event category for layout and rendering in the Performance panel.
56
56
  */
57
57
  rendering: 'Rendering',
58
58
  /**
59
- * @description Event category in the Performance panel for time spent in the GPU
59
+ * @description Event category for GPU activity in the Performance panel.
60
60
  */
61
61
  gpu: 'GPU',
62
62
  /**
63
- * @description Text in Timeline UIUtils of the Performance panel
63
+ * @description Event category for asynchronous activity in the Performance panel.
64
64
  */
65
65
  async: 'Async',
66
66
  /**
67
- * @description Text in Timeline UIUtils of the Performance panel
67
+ * @description Event category for messaging activity in the Performance panel.
68
68
  */
69
69
  messaging: 'Messaging',
70
70
  } as const;
@@ -88,14 +88,15 @@ export interface ViewInput {
88
88
  togglePopover: (e: MouseEvent) => void;
89
89
  onEventClick: (event: Trace.Types.Events.Event) => void;
90
90
  }
91
+ export type View = (input: ViewInput, output: object, target: HTMLElement) => void;
91
92
 
92
93
  export class LayoutShiftDetails extends UI.Widget.Widget {
93
- #view: typeof DEFAULT_VIEW;
94
+ #view: View;
94
95
  #event: Trace.Types.Events.SyntheticLayoutShift|Trace.Types.Events.SyntheticLayoutShiftCluster|null = null;
95
96
  #parsedTrace: Trace.TraceModel.ParsedTrace|null = null;
96
97
  #isFreshRecording = false;
97
98
 
98
- constructor(element?: HTMLElement, view = DEFAULT_VIEW) {
99
+ constructor(element?: HTMLElement, view: View = DEFAULT_VIEW) {
99
100
  super(element);
100
101
  this.#view = view;
101
102
  }
@@ -155,7 +156,7 @@ export class LayoutShiftDetails extends UI.Widget.Widget {
155
156
  }
156
157
  }
157
158
 
158
- export const DEFAULT_VIEW: (input: ViewInput, output: object, target: HTMLElement) => void =
159
+ export const DEFAULT_VIEW: View =
159
160
  (input, _output, target) => {
160
161
  if (!input.event || !input.parsedTrace) {
161
162
  render(Lit.nothing, target);
@@ -1123,7 +1123,7 @@ export const DEFAULT_VIEW: View = (input, output, target) => {
1123
1123
  };
1124
1124
 
1125
1125
  export class LiveMetricsView extends UI.Widget.Widget {
1126
- isNode = Root.Runtime.Runtime.isNode();
1126
+ isNode: boolean = Root.Runtime.Runtime.isNode();
1127
1127
 
1128
1128
  #lcpValue?: LiveMetrics.LcpValue;
1129
1129
  #clsValue?: LiveMetrics.ClsValue;
@@ -117,8 +117,19 @@ const UIStrings = {
117
117
  const str_ = i18n.i18n.registerUIStrings('panels/timeline/components/NetworkRequestDetails.ts', UIStrings);
118
118
  const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
119
119
 
120
+ export interface ViewInput {
121
+ request: Trace.Types.Events.SyntheticNetworkRequest|null;
122
+ target: SDK.Target.Target|null;
123
+ previewElementsCache: WeakMap<Trace.Types.Events.SyntheticNetworkRequest, HTMLElement>;
124
+ entityMapper: Trace.EntityMapper.EntityMapper|null;
125
+ serverTimings: SDK.ServerTiming.ServerTiming[]|null;
126
+ linkifier: LegacyComponents.Linkifier.Linkifier|null;
127
+ parsedTrace: Trace.TraceModel.ParsedTrace|null;
128
+ }
129
+ export type View = (input: ViewInput, output: object, target: HTMLElement) => void;
130
+
120
131
  export class NetworkRequestDetails extends UI.Widget.Widget {
121
- #view: typeof DEFAULT_VIEW;
132
+ #view: View;
122
133
  #request: Trace.Types.Events.SyntheticNetworkRequest|null = null;
123
134
  #requestPreviewElements = new WeakMap<Trace.Types.Events.SyntheticNetworkRequest, HTMLElement>();
124
135
  #entityMapper: Trace.EntityMapper.EntityMapper|null = null;
@@ -127,7 +138,7 @@ export class NetworkRequestDetails extends UI.Widget.Widget {
127
138
  #serverTimings: SDK.ServerTiming.ServerTiming[]|null = null;
128
139
  #parsedTrace: Trace.TraceModel.ParsedTrace|null = null;
129
140
 
130
- constructor(element?: HTMLElement, view = DEFAULT_VIEW) {
141
+ constructor(element?: HTMLElement, view: View = DEFAULT_VIEW) {
131
142
  super(element);
132
143
  this.#view = view;
133
144
  this.requestUpdate();
@@ -186,27 +197,17 @@ export class NetworkRequestDetails extends UI.Widget.Widget {
186
197
  }
187
198
  }
188
199
 
189
- export interface ViewInput {
190
- request: Trace.Types.Events.SyntheticNetworkRequest|null;
191
- target: SDK.Target.Target|null;
192
- previewElementsCache: WeakMap<Trace.Types.Events.SyntheticNetworkRequest, HTMLElement>;
193
- entityMapper: Trace.EntityMapper.EntityMapper|null;
194
- serverTimings: SDK.ServerTiming.ServerTiming[]|null;
195
- linkifier: LegacyComponents.Linkifier.Linkifier|null;
196
- parsedTrace: Trace.TraceModel.ParsedTrace|null;
197
- }
198
-
199
- export const DEFAULT_VIEW: (
200
- input: ViewInput, output: object, target: HTMLElement) => void = (input, _output, target) => {
201
- if (!input.request) {
202
- render(Lit.nothing, target);
203
- return;
204
- }
205
- const {request} = input;
206
- const {data} = request.args;
200
+ export const DEFAULT_VIEW: View =
201
+ (input, _output, target) => {
202
+ if (!input.request) {
203
+ render(Lit.nothing, target);
204
+ return;
205
+ }
206
+ const {request} = input;
207
+ const {data} = request.args;
207
208
 
208
- const redirectsHtml = NetworkRequestTooltip.renderRedirects(request);
209
- // clang-format off
209
+ const redirectsHtml = NetworkRequestTooltip.renderRedirects(request);
210
+ // clang-format off
210
211
  render(html`
211
212
  <style>${networkRequestDetailsStyles}</style>
212
213
  <style>${networkRequestTooltipStyles}</style>
@@ -251,8 +252,8 @@ export const DEFAULT_VIEW: (
251
252
  </div>
252
253
  </div>
253
254
  `, target);
254
- // clang-format on
255
- };
255
+ // clang-format on
256
+ };
256
257
 
257
258
  function renderTitle(request: Trace.Types.Events.SyntheticNetworkRequest): Lit.TemplateResult {
258
259
  const style = {
@@ -37,6 +37,7 @@ export interface ViewInput {
37
37
  eventToInsightsMap: EventToRelatedInsightsMap;
38
38
  onInsightClick: (insight: RelatedInsight) => void;
39
39
  }
40
+ export type View = (input: ViewInput, output: object, target: HTMLElement) => void;
40
41
 
41
42
  export interface Data {
42
43
  eventToRelatedInsightsMap: EventToRelatedInsightsMap|null;
@@ -44,12 +45,12 @@ export interface Data {
44
45
  }
45
46
 
46
47
  export class RelatedInsightChips extends UI.Widget.Widget {
47
- #view: typeof DEFAULT_VIEW;
48
+ #view: View;
48
49
 
49
50
  #activeEvent: Trace.Types.Events.Event|null = null;
50
51
  #eventToInsightsMap: EventToRelatedInsightsMap = new Map();
51
52
 
52
- constructor(element?: HTMLElement, view = DEFAULT_VIEW) {
53
+ constructor(element?: HTMLElement, view: View = DEFAULT_VIEW) {
53
54
  super(element);
54
55
  this.#view = view;
55
56
  }
@@ -81,7 +82,7 @@ export class RelatedInsightChips extends UI.Widget.Widget {
81
82
  }
82
83
  }
83
84
 
84
- export const DEFAULT_VIEW: (input: ViewInput, output: object, target: HTMLElement) => void =
85
+ export const DEFAULT_VIEW: View =
85
86
  (input, _output, target) => {
86
87
  const {activeEvent, eventToInsightsMap} = input;
87
88
  const relatedInsights = activeEvent ? eventToInsightsMap.get(activeEvent) ?? [] : [];
@@ -59,7 +59,7 @@ export const enum SidebarTabs {
59
59
  INSIGHTS = 'insights',
60
60
  ANNOTATIONS = 'annotations',
61
61
  }
62
- export const DEFAULT_SIDEBAR_TAB = SidebarTabs.INSIGHTS;
62
+ export const DEFAULT_SIDEBAR_TAB: SidebarTabs = SidebarTabs.INSIGHTS;
63
63
 
64
64
  export const DEFAULT_SIDEBAR_WIDTH_PX = 240;
65
65
  const MIN_SIDEBAR_WIDTH_PX = 170;
@@ -100,6 +100,7 @@ export interface SidebarAnnotationsTabViewInput {
100
100
  onAnnotationHoverOut: () => void;
101
101
  onAnnotationDelete: (annotation: Trace.Types.File.Annotation) => void;
102
102
  }
103
+ export type View = (input: SidebarAnnotationsTabViewInput, output: object, target: HTMLElement) => void;
103
104
 
104
105
  export class SidebarAnnotationsTab extends UI.Widget.Widget {
105
106
  #annotations: Trace.Types.File.Annotation[] = [];
@@ -108,9 +109,9 @@ export class SidebarAnnotationsTab extends UI.Widget.Widget {
108
109
  #annotationEntryToColorMap = new Map<Trace.Types.Events.Event|Trace.Types.Events.LegacyTimelineFrame, string>();
109
110
 
110
111
  readonly #annotationsHiddenSetting: Common.Settings.Setting<boolean>;
111
- #view: typeof DEFAULT_VIEW;
112
+ #view: View;
112
113
 
113
- constructor(view = DEFAULT_VIEW) {
114
+ constructor(view: View = DEFAULT_VIEW) {
114
115
  super();
115
116
  this.#view = view;
116
117
  this.#annotationsHiddenSetting = Common.Settings.Settings.instance().moduleSetting('annotations-hidden');
@@ -406,7 +407,7 @@ function renderTutorial(): Lit.LitTemplate {
406
407
  // clang-format on
407
408
  }
408
409
 
409
- export const DEFAULT_VIEW: (input: SidebarAnnotationsTabViewInput, output: object, target: HTMLElement) => void =
410
+ export const DEFAULT_VIEW: View =
410
411
  (input, _output, target) => {
411
412
  // clang-format off
412
413
  render(html`
@@ -20,7 +20,7 @@ const UIStrings = {
20
20
  } as const;
21
21
 
22
22
  const str_ = i18n.i18n.registerUIStrings('panels/timeline/components/insights/Table.ts', UIStrings);
23
- export const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
23
+ export const i18nString: i18n.LocalizeString = i18n.i18n.getLocalizedString.bind(undefined, str_);
24
24
 
25
25
  const {html} = Lit;
26
26
 
@@ -14,7 +14,7 @@ if (process.argv.includes('--should-enable')) {
14
14
  value = 'true';
15
15
  }
16
16
 
17
- writeIfChanged(
17
+ await writeIfChanged(
18
18
  path.join(targetGenDir, 'EasterEgg.js'),
19
19
  `export const SHOULD_SHOW_EASTER_EGG = ${value};`,
20
20
  );
@@ -13,123 +13,123 @@ import type * as Timeline from './timeline.js';
13
13
 
14
14
  const UIStrings = {
15
15
  /**
16
- * @description Text for the performance of something
16
+ * @description Name of the Performance panel.
17
17
  */
18
18
  performance: 'Performance',
19
19
  /**
20
- * @description Command for showing the 'Performance' tool
20
+ * @description Command to show the Performance panel.
21
21
  */
22
22
  showPerformance: 'Show Performance',
23
23
  /**
24
- * @description Text to record a series of actions for analysis
24
+ * @description Title of an action to start recording a performance trace.
25
25
  */
26
26
  record: 'Record',
27
27
  /**
28
- * @description Text of an item that stops the running task
28
+ * @description Title of an action to stop recording a performance trace.
29
29
  */
30
30
  stop: 'Stop',
31
31
  /**
32
- * @description Title of an action in the timeline tool to record reload
32
+ * @description Title of an action to record a performance trace while reloading the page.
33
33
  */
34
34
  recordAndReload: 'Record and reload',
35
35
  /**
36
- * @description Tooltip text that appears when hovering over the largeicon download button
36
+ * @description Title of an action to save the current performance profile.
37
37
  */
38
38
  saveProfile: 'Save profile…',
39
39
  /**
40
- * @description Tooltip text that appears when hovering over the largeicon load button
40
+ * @description Title of an action to load a performance profile.
41
41
  */
42
42
  loadProfile: 'Load profile…',
43
43
  /**
44
- * @description Prev button title in Film Strip View of the Performance panel
44
+ * @description Title of an action to navigate to the previous frame in the film strip view of the Performance panel.
45
45
  */
46
46
  previousFrame: 'Previous frame',
47
47
  /**
48
- * @description Next button title in Film Strip View of the Performance panel
48
+ * @description Title of an action to navigate to the next frame in the film strip view of the Performance panel.
49
49
  */
50
50
  nextFrame: 'Next frame',
51
51
  /**
52
- * @description Title of an action in the timeline tool to show history
52
+ * @description Title of an action to show recent timeline sessions in the Performance panel.
53
53
  */
54
54
  showRecentTimelineSessions: 'Show recent timeline sessions',
55
55
  /**
56
- * @description Title of an action that opens the previous recording in the performance panel
56
+ * @description Title of an action to switch to the previous recording in the Performance panel.
57
57
  */
58
58
  previousRecording: 'Previous recording',
59
59
  /**
60
- * @description Title of an action that opens the next recording in the performance panel
60
+ * @description Title of an action to switch to the next recording in the Performance panel.
61
61
  */
62
62
  nextRecording: 'Next recording',
63
63
  /**
64
- * @description Title of a setting under the Performance category in Settings
64
+ * @description Title of a setting under the Performance category in Settings to show Chrome frame in the Layers view.
65
65
  */
66
66
  chromeFrameInLayersView: 'Chrome frame in Layers view',
67
67
  /**
68
- * @description Title of a setting under the Performance category in Settings
68
+ * @description Title of a setting under the Performance category in Settings to show all events.
69
69
  */
70
70
  timelineShowAllEvents: 'Show all events',
71
71
  /**
72
- * @description Title of a setting under the Performance category in Settings
72
+ * @description Title of a setting under the Performance category in Settings to enable soft navigation monitoring.
73
73
  */
74
74
  enableSoftNavigations: 'Enable soft navigation performance monitoring',
75
75
  /**
76
- * @description Title of a setting under the Performance category in Settings
76
+ * @description Title of a setting under the Performance category in Settings to enable timeline debug mode.
77
77
  */
78
78
  timelineDebugMode: 'Timeline debug mode (trace event details, etc.)',
79
79
  /**
80
- * @description Title of a setting under the Performance category in Settings
80
+ * @description Title of a setting under the Performance category in Settings for invalidation tracking.
81
81
  */
82
82
  timelineInvalidationTracking: 'Invalidation tracking',
83
83
  /**
84
- * @description Title of a setting in Performance panel.
84
+ * @description Title of a setting in the Performance panel to disable JavaScript samples.
85
85
  */
86
86
  disableJavascriptSamples: 'Disable JavaScript samples',
87
87
  /**
88
- * @description Title of a setting in Performance panel.
88
+ * @description Title of a setting in the Performance panel to enable advanced paint instrumentation.
89
89
  */
90
90
  enableAdvancedPaint: 'Enable advanced paint instrumentation (slow)',
91
91
  /**
92
- * @description Title of a setting in Performance panel.
92
+ * @description Title of a setting in the Performance panel to enable CSS selector stats.
93
93
  */
94
94
  enableSelectorStats: 'Enable CSS selector stats (slow)',
95
95
  /**
96
- * @description Title of a setting in Performance panel.
96
+ * @description Title of a setting in the Performance panel to configure screenshot capture.
97
97
  */
98
98
  screenshotCapture: 'Screenshot capture',
99
99
  /**
100
- * @description Title of a setting in Performance panel.
100
+ * @description Title of a setting in the Performance panel to capture screenshots.
101
101
  */
102
102
  screenshots: 'Screenshots',
103
103
  /**
104
- * @description Title of a setting in Performance panel.
104
+ * @description Title of a setting in the Performance panel to show memory counters.
105
105
  */
106
106
  memory: 'Memory',
107
107
  /**
108
- * @description Title of a setting in Performance panel.
108
+ * @description Title of a setting in the Performance panel to dim third parties.
109
109
  */
110
110
  dimThirdParties: 'Dim 3rd parties',
111
111
  /**
112
- * @description Title of a setting in Performance panel.
112
+ * @description Title of a setting in the Performance panel to show custom tracks.
113
113
  */
114
114
  showCustomtracks: 'Show custom tracks',
115
115
  /**
116
- * @description Title of a setting in Performance panel counters graph.
116
+ * @description Title of a counter setting in the Performance panel counters graph for the JS heap.
117
117
  */
118
118
  jsHeap: 'JS heap',
119
119
  /**
120
- * @description Title of a setting in Performance panel counters graph.
120
+ * @description Title of a counter setting in the Performance panel counters graph for documents.
121
121
  */
122
122
  documents: 'Documents',
123
123
  /**
124
- * @description Title of a setting in Performance panel counters graph.
124
+ * @description Title of a counter setting in the Performance panel counters graph for DOM nodes.
125
125
  */
126
126
  nodes: 'Nodes',
127
127
  /**
128
- * @description Title of a setting in Performance panel counters graph.
128
+ * @description Title of a counter setting in the Performance panel counters graph for event listeners.
129
129
  */
130
130
  listeners: 'Listeners',
131
131
  /**
132
- * @description Title of a setting in Performance panel counters graph.
132
+ * @description Title of a counter setting in the Performance panel counters graph for GPU memory.
133
133
  */
134
134
  gpuMemory: 'GPU memory',
135
135
  } as const;
@@ -41,7 +41,7 @@
41
41
  .overlay-type-ENTRY_SELECTED,
42
42
  .overlay-type-ENTRY_OUTLINE {
43
43
  pointer-events: none;
44
- border: 2px solid var(--sys-color-primary);
44
+ border: var(--sys-size-2) solid var(--sys-color-primary);
45
45
  background-color: var(--sys-color-state-ripple-primary);
46
46
 
47
47
  &.cut-off-top {
@@ -68,7 +68,7 @@
68
68
 
69
69
  .overlay-type-ENTRY_OUTLINE {
70
70
  background-color: transparent;
71
- border-width: 1px;
71
+ border-width: var(--sys-size-1);
72
72
  /* Ensure ENTRY_SELECTED overlays are always displayed on top of ENTRY_OUTLINE overlays */
73
73
  z-index: 0;
74
74
 
@@ -82,7 +82,7 @@
82
82
  }
83
83
 
84
84
  .overlay-type-CANDY_STRIPED_TIME_RANGE {
85
- --red-stripe-width: 2px;
85
+ --red-stripe-width: var(--sys-size-2);
86
86
  --white-stripe-width: 7px;
87
87
 
88
88
  background-image:
@@ -93,7 +93,7 @@
93
93
  transparent var(--red-stripe-width),
94
94
  transparent var(--white-stripe-width)
95
95
  );
96
- border: 1px solid var(--sys-color-error-bright);
96
+ border: var(--sys-size-1) solid var(--sys-color-error-bright);
97
97
 
98
98
  &.cut-off-bottom {
99
99
  border-bottom: none;
@@ -133,7 +133,7 @@
133
133
  .overlay-type-TIMESTAMP_MARKER {
134
134
  top: 0;
135
135
  bottom: 0;
136
- width: 2px;
136
+ width: var(--sys-size-2);
137
137
  background-color: var(--sys-color-primary);
138
138
  pointer-events: none;
139
139
  }
@@ -176,7 +176,7 @@
176
176
  bottom: 0;
177
177
  left: 0;
178
178
  right: 0;
179
- height: 40px;
179
+ height: var(--sys-size-14);
180
180
  /* Unlike other overlays, the user can click + interact with this one */
181
181
  pointer-events: auto;
182
182
  /* Ensure this one is always on top of any others */
@@ -211,9 +211,9 @@
211
211
  }
212
212
 
213
213
  .timeline-flamechart-resizer {
214
- flex: 8px 0 0;
214
+ flex: var(--sys-size-5) 0 0;
215
215
  background-color: var(--sys-color-surface2);
216
- border: 1px var(--sys-color-divider);
216
+ border: var(--sys-size-1) var(--sys-color-divider);
217
217
  border-style: solid none;
218
218
  display: flex;
219
219
  flex-direction: row;
@@ -227,6 +227,6 @@
227
227
 
228
228
  .timeline-flamechart-resizer::after {
229
229
  content: "...";
230
- font-size: 14px;
231
- margin-bottom: -1px;
230
+ font-size: var(--sys-typescale-body2-size);
231
+ margin-bottom: calc(-1 * var(--sys-size-1));
232
232
  }
@@ -7,8 +7,8 @@
7
7
  .timeline-flamechart-popover {
8
8
  overflow: hidden;
9
9
  /* extend padding into the parent element to avoid clipping the focus-visible outline. */
10
- padding: 4px;
11
- margin: -4px;
10
+ padding: var(--sys-size-3);
11
+ margin: calc(-1 * var(--sys-size-3));
12
12
  }
13
13
 
14
14
  .timeline-flamechart-popover devtools-interaction-breakdown {
@@ -34,7 +34,7 @@
34
34
  .timeline-flamechart-popover span.popoverinfo-url-path,
35
35
  .timeline-flamechart-popover span.popoverinfo-url-origin {
36
36
  color: var(--sys-color-token-subtle);
37
- font-size: 11px;
37
+ font-size: var(--sys-typescale-body5-size);
38
38
  white-space: normal;
39
39
  word-break: break-all;
40
40
  }
@@ -50,11 +50,11 @@
50
50
  .layout-shift-viz {
51
51
  position: relative;
52
52
  margin: var(--sys-size-8) var(--sys-size-5);
53
- outline: 1px solid var(--sys-color-divider);
53
+ outline: var(--sys-size-1) solid var(--sys-color-divider);
54
54
  }
55
55
 
56
56
  .layout-shift-viz-rect {
57
- outline: 1px solid color-mix(in srgb, var(--color-background-inverted) 20%, var(--app-color-rendering));
57
+ outline: var(--sys-size-1) solid color-mix(in srgb, var(--color-background-inverted) 20%, var(--app-color-rendering));
58
58
  background-color: color-mix(in srgb, var(--color-background-inverted-opacity-0) 50%, var(--app-color-rendering-children));
59
59
  position: absolute;
60
60
  z-index: 100;
@@ -10,13 +10,13 @@
10
10
  }
11
11
 
12
12
  .preview-item {
13
- border-bottom: 1px solid var(--sys-color-divider);
13
+ border-bottom: var(--sys-size-1) solid var(--sys-color-divider);
14
14
 
15
15
  &:first-child {
16
- border-top: 1px solid var(--sys-color-divider);
16
+ border-top: var(--sys-size-1) solid var(--sys-color-divider);
17
17
  }
18
18
 
19
- padding: 6px 10px;
19
+ padding: var(--sys-size-4) 10px;
20
20
  position: relative;
21
21
 
22
22
  .metadata {
@@ -32,7 +32,7 @@
32
32
  top: 0;
33
33
  bottom: 0;
34
34
  left: 0;
35
- width: 2px;
35
+ width: var(--sys-size-2);
36
36
  background-color: var(--sys-color-primary);
37
37
  }
38
38
  }
@@ -57,7 +57,7 @@
57
57
  overflow: hidden;
58
58
  text-overflow: ellipsis;
59
59
  white-space: nowrap;
60
- max-width: 240px;
60
+ max-width: var(--sys-size-28);
61
61
  }
62
62
 
63
63
  .text-details .metadata {
@@ -68,8 +68,8 @@
68
68
 
69
69
  .screenshot-thumb {
70
70
  display: flex;
71
- border: 1px solid var(--sys-color-surface3);
72
- margin: 2px 4px;
71
+ border: var(--sys-size-1) solid var(--sys-color-surface3);
72
+ margin: var(--sys-size-2) var(--sys-size-3);
73
73
  }
74
74
 
75
75
  .screenshot-thumb img {
@@ -13,7 +13,7 @@
13
13
  }
14
14
 
15
15
  .paint-profiler-image-view .paint-profiler-image-container div {
16
- border-color: 1px solid var(--sys-color-divider);
16
+ border-color: var(--sys-size-1) solid var(--sys-color-divider);
17
17
  border-style: solid;
18
18
  z-index: 100;
19
19
  position: absolute;
@@ -22,5 +22,5 @@
22
22
  }
23
23
 
24
24
  .paint-profiler-image-view img {
25
- border: solid 1px var(--sys-color-inverse-surface);
25
+ border: solid var(--sys-size-1) var(--sys-color-inverse-surface);
26
26
  }
@@ -138,6 +138,6 @@ export class RevealableTimeRange {
138
138
  }
139
139
 
140
140
  export class RevealableBottomUpProfile {
141
- constructor(public bounds: Trace.Types.Timing.TraceWindowMicro, public node?: Trace.Extras.TraceTree.Node) {
141
+ constructor(public bounds: Trace.Types.Timing.TraceWindowMicro, public node?: Trace.Extras.TraceTree.Node|undefined) {
142
142
  }
143
143
  }