chrome-devtools-frontend 1.0.954845 → 1.0.956401

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 (341) hide show
  1. package/.eslintrc.js +1 -0
  2. package/AUTHORS +1 -0
  3. package/config/gni/devtools_grd_files.gni +0 -1
  4. package/config/owner/COMMON_OWNERS +2 -2
  5. package/front_end/.eslintrc.js +1 -11
  6. package/front_end/core/common/Console.ts +1 -1
  7. package/front_end/core/common/ResolverBase.ts +1 -1
  8. package/front_end/core/common/Throttler.ts +1 -1
  9. package/front_end/core/common/Worker.ts +4 -4
  10. package/front_end/core/host/InspectorFrontendHost.ts +1 -1
  11. package/front_end/core/host/ResourceLoader.ts +2 -2
  12. package/front_end/core/i18n/DevToolsLocale.ts +0 -2
  13. package/front_end/core/i18n/i18nImpl.ts +0 -2
  14. package/front_end/core/i18n/locales/en-US.json +3 -3
  15. package/front_end/core/i18n/locales/en-XL.json +3 -3
  16. package/front_end/core/sdk/AccessibilityModel.ts +1 -1
  17. package/front_end/core/sdk/CPUProfilerModel.ts +2 -2
  18. package/front_end/core/sdk/CPUThrottlingManager.ts +2 -2
  19. package/front_end/core/sdk/CSSModel.ts +7 -7
  20. package/front_end/core/sdk/CSSProperty.ts +1 -1
  21. package/front_end/core/sdk/CSSStyleDeclaration.ts +1 -1
  22. package/front_end/core/sdk/ChildTargetManager.ts +6 -6
  23. package/front_end/core/sdk/Connections.ts +2 -2
  24. package/front_end/core/sdk/ConsoleModel.ts +1 -1
  25. package/front_end/core/sdk/DOMDebuggerModel.ts +16 -15
  26. package/front_end/core/sdk/DOMModel.ts +17 -17
  27. package/front_end/core/sdk/DebuggerModel.ts +24 -24
  28. package/front_end/core/sdk/EmulationModel.ts +16 -16
  29. package/front_end/core/sdk/EventBreakpointsModel.ts +2 -2
  30. package/front_end/core/sdk/IsolateManager.ts +2 -2
  31. package/front_end/core/sdk/IssuesModel.ts +1 -1
  32. package/front_end/core/sdk/LogModel.ts +3 -3
  33. package/front_end/core/sdk/NetworkManager.ts +25 -25
  34. package/front_end/core/sdk/OverlayModel.ts +23 -23
  35. package/front_end/core/sdk/PageResourceLoader.ts +1 -1
  36. package/front_end/core/sdk/PaintProfiler.ts +1 -1
  37. package/front_end/core/sdk/RemoteObject.ts +2 -2
  38. package/front_end/core/sdk/Resource.ts +2 -2
  39. package/front_end/core/sdk/ResourceTreeModel.ts +5 -5
  40. package/front_end/core/sdk/RuntimeModel.ts +11 -11
  41. package/front_end/core/sdk/ScreenCaptureModel.ts +3 -3
  42. package/front_end/core/sdk/ServiceWorkerCacheModel.ts +7 -7
  43. package/front_end/core/sdk/ServiceWorkerManager.ts +4 -4
  44. package/front_end/core/sdk/SourceMapManager.ts +1 -1
  45. package/front_end/core/sdk/TargetManager.ts +2 -2
  46. package/front_end/core/sdk/TracingManager.ts +1 -1
  47. package/front_end/entrypoints/formatter_worker/FormatterActions.ts +10 -0
  48. package/front_end/entrypoints/formatter_worker/FormatterWorker.ts +3 -4
  49. package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshotLoader.ts +1 -1
  50. package/front_end/entrypoints/inspector_main/InspectorMain.ts +4 -4
  51. package/front_end/entrypoints/inspector_main/RenderingOptions.ts +1 -1
  52. package/front_end/entrypoints/js_app/js_app.ts +2 -2
  53. package/front_end/entrypoints/main/MainImpl.ts +31 -23
  54. package/front_end/entrypoints/main/main-meta.ts +1 -1
  55. package/front_end/entrypoints/node_app/NodeMain.ts +6 -6
  56. package/front_end/entrypoints/worker_app/WorkerMain.ts +1 -1
  57. package/front_end/generated/ARIAProperties.js +1 -1
  58. package/front_end/generated/InspectorBackendCommands.js +5 -1
  59. package/front_end/generated/SupportedCSSProperties.js +15 -15
  60. package/front_end/generated/protocol.d.ts +13 -0
  61. package/front_end/global_typings/global_defs.d.ts +0 -1
  62. package/front_end/models/bindings/BreakpointManager.ts +21 -23
  63. package/front_end/models/bindings/CSSWorkspaceBinding.ts +3 -3
  64. package/front_end/models/bindings/CompilerScriptMapping.ts +1 -1
  65. package/front_end/models/bindings/ContentProviderBasedProject.ts +1 -1
  66. package/front_end/models/bindings/DebuggerLanguagePlugins.ts +2 -2
  67. package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +3 -3
  68. package/front_end/models/bindings/DefaultScriptMapping.ts +1 -1
  69. package/front_end/models/bindings/FileUtils.ts +5 -5
  70. package/front_end/models/bindings/IgnoreListManager.ts +4 -4
  71. package/front_end/models/bindings/LiveLocation.ts +9 -0
  72. package/front_end/models/bindings/PresentationConsoleMessageHelper.ts +2 -1
  73. package/front_end/models/bindings/ResourceMapping.ts +1 -1
  74. package/front_end/models/bindings/ResourceScriptMapping.ts +9 -9
  75. package/front_end/models/bindings/StylesSourceMapping.ts +3 -3
  76. package/front_end/models/bindings/TempFile.ts +1 -1
  77. package/front_end/models/emulation/DeviceModeModel.ts +5 -5
  78. package/front_end/models/emulation/EmulatedDevices.ts +1 -1
  79. package/front_end/models/extensions/ExtensionPanel.ts +1 -1
  80. package/front_end/models/extensions/ExtensionServer.ts +8 -8
  81. package/front_end/models/formatter/FormatterWorkerPool.ts +2 -12
  82. package/front_end/models/formatter/ScriptFormatter.ts +3 -3
  83. package/front_end/models/formatter/SourceFormatter.ts +2 -2
  84. package/front_end/models/issues_manager/ContrastCheckTrigger.ts +1 -1
  85. package/front_end/models/issues_manager/DeprecationIssue.ts +7 -7
  86. package/front_end/models/issues_manager/SourceFrameIssuesManager.ts +3 -3
  87. package/front_end/models/persistence/Automapping.ts +3 -3
  88. package/front_end/models/persistence/FileSystemWorkspaceBinding.ts +3 -3
  89. package/front_end/models/persistence/IsolatedFileSystem.ts +1 -1
  90. package/front_end/models/persistence/IsolatedFileSystemManager.ts +2 -2
  91. package/front_end/models/persistence/NetworkPersistenceManager.ts +11 -11
  92. package/front_end/models/persistence/PersistenceActions.ts +3 -3
  93. package/front_end/models/persistence/PersistenceImpl.ts +2 -2
  94. package/front_end/models/persistence/WorkspaceSettingsTab.ts +1 -1
  95. package/front_end/models/workspace/UISourceCode.ts +2 -2
  96. package/front_end/models/workspace_diff/WorkspaceDiff.ts +2 -2
  97. package/front_end/panels/accessibility/AXBreadcrumbsPane.ts +4 -4
  98. package/front_end/panels/accessibility/AccessibilityNodeView.ts +3 -3
  99. package/front_end/panels/accessibility/AccessibilitySidebarView.ts +7 -7
  100. package/front_end/panels/animation/AnimationModel.ts +6 -6
  101. package/front_end/panels/animation/AnimationTimeline.ts +3 -3
  102. package/front_end/panels/animation/AnimationUI.ts +3 -3
  103. package/front_end/panels/application/AppManifestView.ts +4 -4
  104. package/front_end/panels/application/ApplicationPanelCacheSection.ts +3 -3
  105. package/front_end/panels/application/ApplicationPanelSidebar.ts +15 -15
  106. package/front_end/panels/application/BackgroundServiceModel.ts +3 -3
  107. package/front_end/panels/application/BackgroundServiceView.ts +3 -3
  108. package/front_end/panels/application/CookieItemsView.ts +5 -5
  109. package/front_end/panels/application/DOMStorageItemsView.ts +4 -4
  110. package/front_end/panels/application/DOMStorageModel.ts +4 -4
  111. package/front_end/panels/application/DatabaseModel.ts +2 -2
  112. package/front_end/panels/application/DatabaseQueryView.ts +2 -2
  113. package/front_end/panels/application/DatabaseTableView.ts +1 -1
  114. package/front_end/panels/application/IndexedDBModel.ts +11 -11
  115. package/front_end/panels/application/IndexedDBViews.ts +5 -5
  116. package/front_end/panels/application/OpenedWindowDetailsView.ts +4 -4
  117. package/front_end/panels/application/ReportingApiView.ts +1 -1
  118. package/front_end/panels/application/ResourcesPanel.ts +2 -2
  119. package/front_end/panels/application/ServiceWorkerCacheViews.ts +7 -7
  120. package/front_end/panels/application/ServiceWorkersView.ts +15 -15
  121. package/front_end/panels/application/StorageView.ts +5 -5
  122. package/front_end/panels/application/TrustTokensTreeElement.ts +1 -1
  123. package/front_end/panels/application/components/BackForwardCacheStrings.ts +5 -1
  124. package/front_end/panels/application/components/BackForwardCacheView.ts +4 -4
  125. package/front_end/panels/application/components/FrameDetailsView.ts +3 -3
  126. package/front_end/panels/application/components/PermissionsPolicySection.ts +2 -2
  127. package/front_end/panels/browser_debugger/CategorizedBreakpointsSidebarPane.ts +1 -1
  128. package/front_end/panels/browser_debugger/DOMBreakpointsSidebarPane.ts +8 -7
  129. package/front_end/panels/browser_debugger/ObjectEventListenersSidebarPane.ts +1 -1
  130. package/front_end/panels/browser_debugger/XHRBreakpointsSidebarPane.ts +4 -4
  131. package/front_end/panels/changes/ChangesView.ts +4 -4
  132. package/front_end/panels/console/ConsoleContextSelector.ts +1 -1
  133. package/front_end/panels/console/ConsoleFilter.ts +17 -2
  134. package/front_end/panels/console/ConsoleFormat.ts +5 -4
  135. package/front_end/panels/console/ConsolePinPane.ts +4 -4
  136. package/front_end/panels/console/ConsolePrompt.ts +4 -4
  137. package/front_end/panels/console/ConsoleView.ts +96 -71
  138. package/front_end/panels/console/ConsoleViewMessage.ts +61 -19
  139. package/front_end/panels/console/consoleView.css +36 -0
  140. package/front_end/panels/console_counters/WarningErrorCounter.ts +2 -2
  141. package/front_end/panels/coverage/CoverageListView.ts +3 -3
  142. package/front_end/panels/coverage/CoverageModel.ts +3 -3
  143. package/front_end/panels/coverage/CoverageView.ts +6 -6
  144. package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +3 -3
  145. package/front_end/panels/css_overview/CSSOverviewModel.ts +2 -2
  146. package/front_end/panels/css_overview/CSSOverviewPanel.ts +1 -1
  147. package/front_end/panels/developer_resources/DeveloperResourcesListView.ts +1 -1
  148. package/front_end/panels/developer_resources/DeveloperResourcesView.ts +1 -1
  149. package/front_end/panels/elements/AccessibilityTreeView.ts +5 -5
  150. package/front_end/panels/elements/ClassesPaneWidget.ts +1 -1
  151. package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +10 -10
  152. package/front_end/panels/elements/ComputedStyleWidget.ts +2 -2
  153. package/front_end/panels/elements/DOMLinkifier.ts +2 -2
  154. package/front_end/panels/elements/ElementsPanel.ts +19 -19
  155. package/front_end/panels/elements/ElementsSidebarPane.ts +1 -1
  156. package/front_end/panels/elements/ElementsTreeElement.ts +26 -25
  157. package/front_end/panels/elements/ElementsTreeElementHighlighter.ts +1 -1
  158. package/front_end/panels/elements/ElementsTreeOutline.ts +4 -4
  159. package/front_end/panels/elements/InspectElementModeController.ts +3 -3
  160. package/front_end/panels/elements/LayoutSidebarPane.ts +2 -2
  161. package/front_end/panels/elements/MetricsSidebarPane.ts +2 -2
  162. package/front_end/panels/elements/StylePropertyHighlighter.ts +1 -1
  163. package/front_end/panels/elements/StylePropertyTreeElement.ts +16 -16
  164. package/front_end/panels/elements/StylesSidebarPane.ts +15 -15
  165. package/front_end/panels/elements/components/AccessibilityTreeNode.ts +1 -1
  166. package/front_end/panels/elements/components/ElementsBreadcrumbs.ts +8 -8
  167. package/front_end/panels/elements/elementsPanel.css +1 -0
  168. package/front_end/panels/elements/elementsTreeOutline.css +6 -1
  169. package/front_end/panels/emulation/AdvancedApp.ts +2 -2
  170. package/front_end/panels/emulation/DeviceModeToolbar.ts +1 -1
  171. package/front_end/panels/emulation/DeviceModeView.ts +2 -2
  172. package/front_end/panels/emulation/DeviceModeWrapper.ts +4 -4
  173. package/front_end/panels/emulation/MediaQueryInspector.ts +3 -3
  174. package/front_end/panels/event_listeners/EventListenersView.ts +3 -3
  175. package/front_end/panels/input/InputModel.ts +2 -2
  176. package/front_end/panels/input/InputTimeline.ts +6 -6
  177. package/front_end/panels/issues/AffectedCookiesView.ts +2 -2
  178. package/front_end/panels/issues/AffectedDirectivesView.ts +1 -1
  179. package/front_end/panels/issues/AffectedElementsView.ts +1 -1
  180. package/front_end/panels/issues/AffectedResourcesView.ts +2 -2
  181. package/front_end/panels/issues/AttributionReportingIssueDetailsView.ts +1 -1
  182. package/front_end/panels/issues/ComboBoxOfCheckBoxes.ts +1 -1
  183. package/front_end/panels/issues/IssueView.ts +1 -1
  184. package/front_end/panels/issues/components/HideIssuesMenu.ts +1 -1
  185. package/front_end/panels/layer_viewer/LayerDetailsView.ts +1 -1
  186. package/front_end/panels/layer_viewer/LayerViewHost.ts +1 -1
  187. package/front_end/panels/layer_viewer/Layers3DView.ts +7 -7
  188. package/front_end/panels/layer_viewer/PaintProfilerView.ts +1 -1
  189. package/front_end/panels/layers/LayerPaintProfilerView.ts +3 -3
  190. package/front_end/panels/layers/LayerTreeModel.ts +4 -4
  191. package/front_end/panels/layers/LayersPanel.ts +4 -4
  192. package/front_end/panels/lighthouse/LighthouseController.ts +1 -1
  193. package/front_end/panels/lighthouse/LighthousePanel.ts +5 -5
  194. package/front_end/panels/lighthouse/LighthouseProtocolService.ts +1 -1
  195. package/front_end/panels/lighthouse/LighthouseReportRenderer.ts +1 -1
  196. package/front_end/panels/media/MediaModel.ts +1 -1
  197. package/front_end/panels/media/PlayerListView.ts +1 -1
  198. package/front_end/panels/mobile_throttling/NetworkThrottlingSelector.ts +1 -1
  199. package/front_end/panels/network/BinaryResourceView.ts +1 -1
  200. package/front_end/panels/network/BlockedURLsPane.ts +5 -5
  201. package/front_end/panels/network/NetworkDataGridNode.ts +1 -1
  202. package/front_end/panels/network/NetworkItemView.ts +2 -2
  203. package/front_end/panels/network/NetworkLogView.ts +4 -4
  204. package/front_end/panels/network/NetworkLogViewColumns.ts +1 -1
  205. package/front_end/panels/network/NetworkPanel.ts +8 -8
  206. package/front_end/panels/network/NetworkTimeCalculator.ts +1 -1
  207. package/front_end/panels/network/RequestHeadersView.ts +4 -3
  208. package/front_end/panels/network/RequestPayloadView.ts +8 -8
  209. package/front_end/panels/network/RequestPreviewView.ts +1 -1
  210. package/front_end/panels/network/RequestResponseView.ts +2 -2
  211. package/front_end/panels/network/ResourceWebSocketFrameView.ts +1 -1
  212. package/front_end/panels/performance_monitor/PerformanceMonitor.ts +2 -2
  213. package/front_end/panels/profiler/CPUProfileView.ts +4 -4
  214. package/front_end/panels/profiler/HeapProfileView.ts +6 -6
  215. package/front_end/panels/profiler/HeapProfilerPanel.ts +2 -2
  216. package/front_end/panels/profiler/HeapSnapshotDataGrids.ts +10 -10
  217. package/front_end/panels/profiler/HeapSnapshotGridNodes.ts +9 -8
  218. package/front_end/panels/profiler/HeapSnapshotView.ts +24 -24
  219. package/front_end/panels/profiler/LiveHeapProfileView.ts +4 -4
  220. package/front_end/panels/profiler/ProfileSidebarTreeElement.ts +1 -1
  221. package/front_end/panels/profiler/ProfileView.ts +3 -3
  222. package/front_end/panels/profiler/ProfilesPanel.ts +3 -3
  223. package/front_end/panels/protocol_monitor/ProtocolMonitor.ts +3 -3
  224. package/front_end/panels/screencast/InputModel.ts +3 -3
  225. package/front_end/panels/screencast/ScreencastView.ts +10 -10
  226. package/front_end/panels/search/SearchResultsPane.ts +1 -1
  227. package/front_end/panels/search/SearchView.ts +2 -2
  228. package/front_end/panels/security/SecurityModel.ts +1 -1
  229. package/front_end/panels/security/SecurityPanel.ts +2 -2
  230. package/front_end/panels/sensors/SensorsView.ts +3 -2
  231. package/front_end/panels/settings/SettingsScreen.ts +5 -5
  232. package/front_end/panels/settings/components/SyncSection.ts +1 -1
  233. package/front_end/panels/snippets/SnippetsQuickOpen.ts +1 -1
  234. package/front_end/panels/sources/BreakpointEditDialog.ts +2 -2
  235. package/front_end/panels/sources/CallStackSidebarPane.ts +4 -4
  236. package/front_end/panels/sources/CoveragePlugin.ts +3 -3
  237. package/front_end/panels/sources/DebuggerPlugin.ts +12 -12
  238. package/front_end/panels/sources/GoToLineQuickOpen.ts +1 -1
  239. package/front_end/panels/sources/InplaceFormatterEditorAction.ts +3 -3
  240. package/front_end/panels/sources/JavaScriptBreakpointsSidebarPane.ts +3 -3
  241. package/front_end/panels/sources/NavigatorView.ts +6 -6
  242. package/front_end/panels/sources/OpenFileQuickOpen.ts +2 -2
  243. package/front_end/panels/sources/OutlineQuickOpen.ts +1 -1
  244. package/front_end/panels/sources/ScopeChainSidebarPane.ts +3 -3
  245. package/front_end/panels/sources/ScriptFormatterEditorAction.ts +3 -3
  246. package/front_end/panels/sources/SearchSourcesView.ts +2 -2
  247. package/front_end/panels/sources/SourcesNavigator.ts +9 -9
  248. package/front_end/panels/sources/SourcesPanel.ts +28 -25
  249. package/front_end/panels/sources/SourcesSearchScope.ts +2 -2
  250. package/front_end/panels/sources/SourcesView.ts +4 -4
  251. package/front_end/panels/sources/TabbedEditorContainer.ts +1 -1
  252. package/front_end/panels/sources/UISourceCodeFrame.ts +2 -2
  253. package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +4 -4
  254. package/front_end/panels/timeline/EventsTimelineTreeView.ts +1 -1
  255. package/front_end/panels/timeline/TimelineController.ts +1 -1
  256. package/front_end/panels/timeline/TimelineDetailsView.ts +2 -2
  257. package/front_end/panels/timeline/TimelineEventOverview.ts +2 -2
  258. package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +22 -5
  259. package/front_end/panels/timeline/TimelineFlameChartNetworkDataProvider.ts +9 -6
  260. package/front_end/panels/timeline/TimelineHistoryManager.ts +1 -1
  261. package/front_end/panels/timeline/TimelineLayersView.ts +1 -1
  262. package/front_end/panels/timeline/TimelineLoader.ts +2 -2
  263. package/front_end/panels/timeline/TimelinePaintProfilerView.ts +4 -4
  264. package/front_end/panels/timeline/TimelinePanel.ts +10 -10
  265. package/front_end/panels/timeline/TimelineUIUtils.ts +2 -2
  266. package/front_end/panels/timeline/components/WebVitalsTimeline.ts +2 -2
  267. package/front_end/panels/web_audio/WebAudioModel.ts +1 -1
  268. package/front_end/panels/web_audio/WebAudioView.ts +1 -1
  269. package/front_end/panels/webauthn/WebauthnPane.ts +7 -7
  270. package/front_end/ui/components/buttons/Button.ts +10 -10
  271. package/front_end/ui/components/data_grid/DataGrid.ts +14 -14
  272. package/front_end/ui/components/docs/tree_outline/basic.ts +2 -2
  273. package/front_end/ui/components/docs/tree_outline/custom-renderers.ts +1 -1
  274. package/front_end/ui/components/docs/tree_outline/lazy-children.ts +1 -1
  275. package/front_end/ui/components/helpers/scheduled-render.ts +1 -1
  276. package/front_end/ui/components/icon_button/Icon.ts +1 -1
  277. package/front_end/ui/components/issue_counter/IssueCounter.ts +1 -1
  278. package/front_end/ui/components/issue_counter/IssueLinkIcon.ts +2 -2
  279. package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorController.ts +2 -2
  280. package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorPane.ts +5 -2
  281. package/front_end/ui/components/linkifier/LinkifierImpl.ts +1 -1
  282. package/front_end/ui/components/panel_feedback/FeedbackButton.ts +1 -1
  283. package/front_end/ui/components/panel_feedback/PanelFeedback.ts +1 -1
  284. package/front_end/ui/components/request_link_icon/RequestLinkIcon.ts +3 -3
  285. package/front_end/ui/components/text_editor/cursor_tooltip.ts +1 -1
  286. package/front_end/ui/components/text_editor/javascript.ts +2 -2
  287. package/front_end/ui/components/tree_outline/TreeOutline.ts +8 -8
  288. package/front_end/ui/legacy/Context.ts +1 -1
  289. package/front_end/ui/legacy/ContextMenu.ts +1 -1
  290. package/front_end/ui/legacy/GlassPane.ts +0 -1
  291. package/front_end/ui/legacy/InspectorView.ts +2 -3
  292. package/front_end/ui/legacy/PopoverHelper.ts +1 -1
  293. package/front_end/ui/legacy/ShortcutRegistry.ts +1 -1
  294. package/front_end/ui/legacy/TabbedPane.ts +2 -2
  295. package/front_end/ui/legacy/ThrottledWidget.ts +1 -1
  296. package/front_end/ui/legacy/Toolbar.ts +3 -3
  297. package/front_end/ui/legacy/Treeoutline.ts +6 -6
  298. package/front_end/ui/legacy/UIUtils.ts +17 -24
  299. package/front_end/ui/legacy/ViewManager.ts +9 -9
  300. package/front_end/ui/legacy/components/color_picker/ContrastOverlay.ts +1 -1
  301. package/front_end/ui/legacy/components/color_picker/Spectrum.ts +7 -7
  302. package/front_end/ui/legacy/components/color_picker/spectrum.css +5 -2
  303. package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +3 -3
  304. package/front_end/ui/legacy/components/data_grid/DataGrid.ts +2 -2
  305. package/front_end/ui/legacy/components/data_grid/ShowMoreDataGridNode.ts +3 -3
  306. package/front_end/ui/legacy/components/inline_editor/CSSAngleEditor.ts +1 -1
  307. package/front_end/ui/legacy/components/inline_editor/FontEditor.ts +4 -4
  308. package/front_end/ui/legacy/components/object_ui/CustomPreviewComponent.ts +3 -3
  309. package/front_end/ui/legacy/components/object_ui/ObjectPopoverHelper.ts +1 -1
  310. package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +11 -11
  311. package/front_end/ui/legacy/components/perf_ui/FilmStripView.ts +8 -8
  312. package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +13 -18
  313. package/front_end/ui/legacy/components/perf_ui/GCActionDelegate.ts +1 -1
  314. package/front_end/ui/legacy/components/perf_ui/LineLevelProfile.ts +1 -1
  315. package/front_end/ui/legacy/components/perf_ui/LiveHeapProfile.ts +3 -3
  316. package/front_end/ui/legacy/components/perf_ui/TimelineGrid.ts +2 -4
  317. package/front_end/ui/legacy/components/perf_ui/TimelineOverviewPane.ts +2 -2
  318. package/front_end/ui/legacy/components/perf_ui/flameChart.css +8 -0
  319. package/front_end/ui/legacy/components/quick_open/FilteredListWidget.ts +5 -5
  320. package/front_end/ui/legacy/components/source_frame/FontView.ts +1 -2
  321. package/front_end/ui/legacy/components/source_frame/ImageView.ts +3 -4
  322. package/front_end/ui/legacy/components/source_frame/JSONView.ts +0 -1
  323. package/front_end/ui/legacy/components/source_frame/ResourceSourceFrame.ts +1 -2
  324. package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +5 -5
  325. package/front_end/ui/legacy/components/source_frame/XMLView.ts +0 -2
  326. package/front_end/ui/legacy/components/utils/ImagePreview.ts +1 -1
  327. package/front_end/ui/legacy/components/utils/JSPresentationUtils.ts +1 -1
  328. package/front_end/ui/legacy/components/utils/Linkifier.ts +5 -5
  329. package/front_end/ui/legacy/components/utils/TargetDetachedDialog.ts +2 -2
  330. package/front_end/ui/legacy/inspectorSyntaxHighlight.css +8 -11
  331. package/front_end/ui/legacy/tabbedPane.css +1 -0
  332. package/front_end/ui/legacy/themeColors.css +3 -1
  333. package/front_end/ui/legacy/theme_support/theme_support_impl.ts +23 -229
  334. package/front_end/ui/legacy/toolbar.css +1 -0
  335. package/package.json +1 -1
  336. package/scripts/component_server/server.js +2 -2
  337. package/scripts/eslint_rules/lib/no_bound_component_methods.js +116 -0
  338. package/scripts/eslint_rules/tests/check_license_header_test.js +10 -8
  339. package/scripts/eslint_rules/tests/no_bound_component_methods_test.js +85 -0
  340. package/front_end/global_typings/intl_display_names.d.ts +0 -111
  341. package/front_end/ui/legacy/inspectorSyntaxHighlightDark.css +0 -270
@@ -0,0 +1,116 @@
1
+ // Copyright 2021 The Chromium Authors. All rights reserved.
2
+ // Use of this source code is governed by a BSD-style license that can be
3
+ // found in the LICENSE file.
4
+ 'use strict';
5
+
6
+ module.exports = {
7
+ meta: {
8
+ type: 'problem',
9
+ docs: {
10
+ description: 'Enforce that no methods that are used as LitHtml events are bound.',
11
+ category: 'Possible Errors',
12
+ },
13
+ fixable: 'code',
14
+ schema: [], // no options
15
+ messages: {
16
+ nonRenderBindFound:
17
+ 'Found bound method name {{ methodName }} on {{ componentName }} that was not `render`. Lit-Html binds all event handlers for you automatically so this is not required.',
18
+ },
19
+ },
20
+ create: function(context) {
21
+ function nodeIsHTMLElementClassDeclaration(node) {
22
+ return node.type === 'ClassDeclaration' && node.superClass && node.superClass.name === 'HTMLElement';
23
+ }
24
+
25
+ const classesToCheck = new Set();
26
+
27
+ // Store any method names that were passed to addEventListener.
28
+ // With the following code:
29
+ // window.addEventListener('click', this.boundOnClick)
30
+ // we would add `boundOnClick` to this set.
31
+ const addEventListenerCallPropertyNames = new Set();
32
+
33
+ function checkPropertyDeclarationForBinding(className, node) {
34
+ if (!node.value || node.value.type !== 'CallExpression') {
35
+ return;
36
+ }
37
+ if (node.value.callee.type !== 'MemberExpression') {
38
+ return;
39
+ }
40
+ if (node.value.callee.property.name !== 'bind') {
41
+ return;
42
+ }
43
+ // At this point we know it's a property of the form:
44
+ // someBoundThing = this.thing.bind(X)
45
+ // and now we want to check that the argument passed to bind is `this`.
46
+ // If the argument to bind is not `this`, we leave it be and move on.
47
+ if (node.value.arguments[0]?.type !== 'ThisExpression') {
48
+ return;
49
+ }
50
+
51
+ // At this point it's definitely of the form:
52
+ // someBoundThing = this.thing.bind(this)
53
+ // But we know that `render` may be bound for the scheduler, so if it's render we can move on
54
+ if (node.value.callee.object.property.name === 'render') {
55
+ return;
56
+ }
57
+
58
+ // Now it's an error UNLESS we found a call to
59
+ // addEventListener(x, this.#boundFoo),
60
+ // in which case it's allowed.
61
+
62
+ // Get the property name for the bound method
63
+ // #boundFoo = this.foo.bind(this);
64
+ // node.key.name === 'boundFoo';
65
+ const boundPropertyName = node.key.name;
66
+ if (addEventListenerCallPropertyNames.has(boundPropertyName)) {
67
+ return;
68
+ }
69
+
70
+ context.report({
71
+ node: node,
72
+ messageId: 'nonRenderBindFound',
73
+ data: {componentName: className, methodName: node.value.callee.object.property.name}
74
+ });
75
+ }
76
+
77
+ function checkClassForBoundMethods(classDeclarationNode) {
78
+ const classPropertyDeclarations = classDeclarationNode.body.body.filter(node => {
79
+ return node.type === 'PropertyDefinition';
80
+ });
81
+ for (const decl of classPropertyDeclarations) {
82
+ checkPropertyDeclarationForBinding(classDeclarationNode.id.name, decl);
83
+ }
84
+ }
85
+
86
+ return {
87
+ ClassDeclaration(classDeclarationNode) {
88
+ if (!nodeIsHTMLElementClassDeclaration(classDeclarationNode)) {
89
+ return;
90
+ }
91
+
92
+ classesToCheck.add(classDeclarationNode);
93
+ },
94
+ 'CallExpression[callee.type=\'MemberExpression\'][callee.property.name=\'addEventListener\']'(
95
+ callExpressionNode) {
96
+ const methodArg = callExpressionNode.arguments[1];
97
+ // Confirm that the argument is this.X, otherwise skip it
98
+ if (methodArg.type !== 'MemberExpression') {
99
+ return;
100
+ }
101
+
102
+ // Get the property from the addEventListener call
103
+ // window.addEventListener('click', this.#boundFoo)
104
+ // This will be the node representing `#boundFoo`
105
+ // and its `.name` property will be `boundFoo`
106
+ const propertyArg = methodArg.property;
107
+ addEventListenerCallPropertyNames.add(propertyArg.name);
108
+ },
109
+ 'Program:exit'() {
110
+ for (const classNode of classesToCheck) {
111
+ checkClassForBoundMethods(classNode);
112
+ }
113
+ }
114
+ };
115
+ }
116
+ };
@@ -9,6 +9,8 @@ const ruleTester = new (require('eslint').RuleTester)({
9
9
  parser: require.resolve('@typescript-eslint/parser'),
10
10
  });
11
11
 
12
+ const CURRENT_YEAR = new Date().getFullYear();
13
+
12
14
  ruleTester.run('check_license_header', rule, {
13
15
  valid: [
14
16
  {
@@ -116,7 +118,7 @@ main()
116
118
  code: 'import * as Action from \'./Action.js\';',
117
119
  filename: 'front_end/ui/ui.js',
118
120
  errors: [{message: 'Missing license header'}],
119
- output: `// Copyright 2021 The Chromium Authors. All rights reserved.
121
+ output: `// Copyright ${CURRENT_YEAR} The Chromium Authors. All rights reserved.
120
122
  // Use of this source code is governed by a BSD-style license that can be
121
123
  // found in the LICENSE file.
122
124
 
@@ -131,7 +133,7 @@ import * as Action from './Action.js';
131
133
  filename: 'front_end/ui/ui.js',
132
134
  errors: [{message: 'Incorrect line license header'}],
133
135
  output: `
134
- // Copyright 2021 The Chromium Authors. All rights reserved.
136
+ // Copyright ${CURRENT_YEAR} The Chromium Authors. All rights reserved.
135
137
  // Use of this source code is governed by a BSD-style license that can be
136
138
  // found in the LICENSE file.
137
139
 
@@ -147,7 +149,7 @@ import * as Action from './Action.js';
147
149
  (async function() {})();`,
148
150
  filename: 'test/webtests/http/tests/devtools/a11y-axe-core/sources/call-stack-a11y-test.js',
149
151
  errors: [{message: 'Incorrect line license header'}],
150
- output: `// Copyright 2021 The Chromium Authors. All rights reserved.
152
+ output: `// Copyright ${CURRENT_YEAR} The Chromium Authors. All rights reserved.
151
153
  // Use of this source code is governed by a BSD-style license that can be
152
154
  // found in the LICENSE file.
153
155
 
@@ -168,7 +170,7 @@ import * as Action from './Action.js';
168
170
  filename: 'front_end/ui/ui.js',
169
171
  errors: [{message: 'Incorrect line license header'}],
170
172
  output: `
171
- // Copyright 2021 The Chromium Authors. All rights reserved.
173
+ // Copyright ${CURRENT_YEAR} The Chromium Authors. All rights reserved.
172
174
  // Use of this source code is governed by a BSD-style license that can be
173
175
  // found in the LICENSE file.
174
176
 
@@ -191,7 +193,7 @@ import * as Action from './Action.js';
191
193
  filename: 'front_end/ui/ui.js',
192
194
  errors: [{message: 'Incorrect block license header'}],
193
195
  output: `
194
- // Copyright 2021 The Chromium Authors. All rights reserved.
196
+ // Copyright ${CURRENT_YEAR} The Chromium Authors. All rights reserved.
195
197
  // Use of this source code is governed by a BSD-style license that can be
196
198
  // found in the LICENSE file.
197
199
 
@@ -225,7 +227,7 @@ interface String {
225
227
  filename: 'front_end/legacy/legacy-defs.d.ts',
226
228
  errors: [{message: 'Missing license header'}],
227
229
  output: `
228
- // Copyright 2021 The Chromium Authors. All rights reserved.
230
+ // Copyright ${CURRENT_YEAR} The Chromium Authors. All rights reserved.
229
231
  // Use of this source code is governed by a BSD-style license that can be
230
232
  // found in the LICENSE file.
231
233
 
@@ -258,7 +260,7 @@ main()
258
260
  errors: [{message: 'Missing license header'}],
259
261
  output: `#!/usr/bin/env node
260
262
 
261
- // Copyright 2021 The Chromium Authors. All rights reserved.
263
+ // Copyright ${CURRENT_YEAR} The Chromium Authors. All rights reserved.
262
264
  // Use of this source code is governed by a BSD-style license that can be
263
265
  // found in the LICENSE file.
264
266
 
@@ -279,7 +281,7 @@ main()
279
281
  errors: [{message: 'Incorrect line license header'}],
280
282
  output: `#!/usr/bin/env node
281
283
 
282
- // Copyright 2021 The Chromium Authors. All rights reserved.
284
+ // Copyright ${CURRENT_YEAR} The Chromium Authors. All rights reserved.
283
285
  // Use of this source code is governed by a BSD-style license that can be
284
286
  // found in the LICENSE file.
285
287
 
@@ -0,0 +1,85 @@
1
+ // Copyright 2021 The Chromium Authors. All rights reserved.
2
+ // Use of this source code is governed by a BSD-style license that can be
3
+ // found in the LICENSE file.
4
+ 'use strict';
5
+
6
+ const rule = require('../lib/no_bound_component_methods.js');
7
+ const ruleTester = new (require('eslint').RuleTester)({
8
+ parserOptions: {ecmaVersion: 9, sourceType: 'module'},
9
+ parser: require.resolve('@typescript-eslint/parser'),
10
+ });
11
+
12
+ ruleTester.run('no_bound_component_methods', rule, {
13
+ valid: [
14
+ {
15
+ code: `export class FeedbackButton extends SomeOtherNonElementThing {
16
+ readonly #boundClick = this.onClick.bind(this);
17
+ }`,
18
+ filename: 'front_end/components/test.ts',
19
+ },
20
+ {
21
+ code: `export class FeedbackButton extends HTMLElement {
22
+ readonly #boundRender = this.render.bind(this);
23
+ private readonly shadow = this.attachShadow({mode: 'open'});
24
+ private frame?: SDK.ResourceTreeModel.ResourceTreeFrame;
25
+ }`,
26
+ filename: 'front_end/components/test.ts',
27
+ },
28
+ {
29
+ code: `export class FeedbackButton extends HTMLElement {
30
+ readonly #boundRender = this.render.bind(this);
31
+ #globalBoundThing = this.someEvent.bind(this);
32
+ private readonly shadow = this.attachShadow({mode: 'open'});
33
+
34
+ constructor() {
35
+ window.addEventListener('click', this.#globalBoundThing);
36
+ }
37
+ }`,
38
+ filename: 'front_end/components/test.ts',
39
+ },
40
+ {
41
+ code: `export class FeedbackButton extends HTMLElement {
42
+ readonly #boundRender = this.render.bind(this);
43
+ private globalBoundThing = this.someEvent.bind(this);
44
+ private readonly shadow = this.attachShadow({mode: 'open'});
45
+
46
+ constructor() {
47
+ window.addEventListener('click', this.globalBoundThing);
48
+ }
49
+ }`,
50
+ filename: 'front_end/components/test.ts',
51
+ },
52
+ ],
53
+ invalid: [
54
+ {
55
+ code: `export class FeedbackButton extends HTMLElement {
56
+ static readonly litTagName = LitHtml.literal\`devtools-feedback-button\`;
57
+ readonly #boundRender = this.render.bind(this);
58
+ readonly #boundClick = this.onClick.bind(this);
59
+ }`,
60
+ filename: 'front_end/components/test.ts',
61
+ errors: [{messageId: 'nonRenderBindFound', data: {componentName: 'FeedbackButton', methodName: 'onClick'}}]
62
+ },
63
+ {
64
+ code: `export class FeedbackButton extends HTMLElement {
65
+ static readonly litTagName = LitHtml.literal\`devtools-feedback-button\`;
66
+ private readonly boundClick = this.onClick.bind(this);
67
+ }`,
68
+ filename: 'front_end/components/test.ts',
69
+ errors: [{messageId: 'nonRenderBindFound', data: {componentName: 'FeedbackButton', methodName: 'onClick'}}]
70
+ },
71
+ {
72
+ code: `export class FeedbackButton extends HTMLElement {
73
+ static readonly litTagName = LitHtml.literal\`devtools-feedback-button\`;
74
+ private readonly boundClick = this.onClick.bind(this);
75
+ private readonly boundFocus = this.onFocus.bind(this);
76
+
77
+ constructor() {
78
+ this.addEventListener('click', this.boundClick);
79
+ }
80
+ }`,
81
+ filename: 'front_end/components/test.ts',
82
+ errors: [{messageId: 'nonRenderBindFound', data: {componentName: 'FeedbackButton', methodName: 'onFocus'}}]
83
+ },
84
+ ]
85
+ });
@@ -1,111 +0,0 @@
1
- declare namespace Intl {
2
- /**
3
- * An object with properties reflecting the locale
4
- * and styles options computed during initialization
5
- * of the `Intl.DisplayNames` object
6
- *
7
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/resolvedOptions#Description).
8
- *
9
- * [Specification](https://tc39.es/ecma402/#sec-intl-displaynames-constructor)
10
- */
11
- interface DisplayNamesOptions {
12
- localeMatcher: RelativeTimeFormatLocaleMatcher;
13
- style: RelativeTimeFormatStyle;
14
- type: 'language'|'region'|'script'|'currency';
15
- fallback: 'code'|'none';
16
- }
17
-
18
- interface DisplayNames {
19
- /**
20
- * Receives a code and returns a string based on the locale and options provided when instantiating
21
- * [`Intl.DisplayNames()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames)
22
- *
23
- * @param code The `code` to provide depends on the `type`:
24
- * - If the type is "region", code should be either an [ISO-3166 two letters region code](https://www.iso.org/iso-3166-country-codes.html),
25
- * or a [three digits UN M49 Geographic Regions](https://unstats.un.org/unsd/methodology/m49/).
26
- * - If the type is "script", code should be an [ISO-15924 four letters script code](https://unicode.org/iso15924/iso15924-codes.html).
27
- * - If the type is "language", code should be a `languageCode` ["-" `scriptCode`] ["-" `regionCode` ] *("-" `variant` )
28
- * subsequence of the unicode_language_id grammar in [UTS 35's Unicode Language and Locale Identifiers grammar](https://unicode.org/reports/tr35/#Unicode_language_identifier).
29
- * `languageCode` is either a two letters ISO 639-1 language code or a three letters ISO 639-2 language code.
30
- * - If the type is "currency", code should be a [3-letter ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html).
31
- *
32
- * @returns A language-specific formatted string.
33
- *
34
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/of).
35
- *
36
- * [Specification](https://tc39.es/ecma402/#sec-Intl.DisplayNames.prototype.of).
37
- */
38
- of(code: string): string;
39
- /**
40
- * Returns a new object with properties reflecting the locale and style formatting options computed during the construction of the current
41
- * [`Intl/DisplayNames`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames) object.
42
- *
43
- * @returns An object with properties reflecting the locale and formatting options computed during the construction of the
44
- * given [`Intl/DisplayNames`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames) object.
45
- *
46
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/resolvedOptions).
47
- *
48
- * [Specification](https://tc39.es/ecma402/#sec-Intl.DisplayNames.prototype.resolvedOptions)
49
- */
50
- resolvedOptions(): DisplayNamesOptions;
51
- }
52
-
53
- /**
54
- * The [`Intl.DisplayNames()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames)
55
- * object enables the consistent translation of language, region and script display names.
56
- *
57
- * Part of [Intl object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl)
58
- * namespace and the [ECMAScript Internationalization API](https://www.ecma-international.org/publications/standards/Ecma-402.htm).
59
- *
60
- * [Compatibility](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames#browser_compatibility).
61
- */
62
- const DisplayNames: {
63
- prototype: DisplayNames;
64
-
65
- /**
66
- * Constructor creates [`Intl.DisplayNames`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames)
67
- * objects that enable the consistent translation of language, region and script display names.
68
- *
69
- * @param locales A string with a BCP 47 language tag, or an array of such strings.
70
- * For the general form and interpretation of the `locales` argument, see the [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation)
71
- * page. The following Unicode extension key is allowed:
72
- * - `nu` The numbering system to be used. Possible values include: `"arab"`, `"arabext"`, `"bali"`, `"beng"`, `"deva"`, `"fullwide"`, `"gujr"`, `"guru"`, `"hanidec"`, `"khmr"`, `"knda"`, `"laoo"`, `"latn"`, `"limb"`, `"mlym"`, `"mong"`, `"mymr"`, `"orya"`, `"tamldec"`, `"telu"`, `"thai"`, `"tibt"`.
73
- *
74
- * @param options An object with some or all of the following properties:
75
- * - `localeMatcher` The locale matching algorithm to use. Possible values are `"lookup"` and `"best fit"`; the default is `"best fit"`.
76
- * For information about this option, see the [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation) page.
77
- * - `style` The formatting style to use, the default is `"long"`. `"narrow"` `"short"` `"long"`
78
- * - `type` The type to use. `"language"` `"region"` `"script"` `"currency"`
79
- * - `fallback` The fallback to use, the default is `"code"`. `"code"` `"none"`
80
- *
81
- * @returns [Intl.DisplayNames](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames) object.
82
- *
83
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/DisplayNames).
84
- *
85
- * [Specification](https://tc39.es/ecma402/#sec-intl-displaynames-constructor).
86
- */
87
- new (locales?: UnicodeBCP47LocaleIdentifier|UnicodeBCP47LocaleIdentifier[], options?: Partial<DisplayNamesOptions>):
88
- DisplayNames;
89
-
90
- /**
91
- * Returns an array containing those of the provided locales that are supported in display names without having to fall back to the runtime's default locale.
92
- *
93
- * @param locales A string with a BCP 47 language tag, or an array of such strings.
94
- * For the general form and interpretation of the `locales` argument, see the [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation)
95
- * page.
96
- *
97
- * @param options An object that may have the following property:
98
- * - `localeMatcher` The locale matching algorithm to use. Possible values are `"lookup"` and `"best fit"`; the default is `"best fit"`.
99
- * For information about this option, see the [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation) page.
100
- *
101
- * @returns An array of strings representing a subset of the given locale tags that are supported in display names without having to fall back to the runtime's default locale.
102
- *
103
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/supportedLocalesOf).
104
- *
105
- * [Specification](https://tc39.es/ecma402/#sec-Intl.DisplayNames.supportedLocalesOf).
106
- */
107
- supportedLocalesOf(
108
- locales: UnicodeBCP47LocaleIdentifier|UnicodeBCP47LocaleIdentifier[],
109
- options: {localeMatcher: RelativeTimeFormatLocaleMatcher}): UnicodeBCP47LocaleIdentifier[];
110
- };
111
- }
@@ -1,270 +0,0 @@
1
- /*
2
- * Copyright 2015 The Chromium Authors. All rights reserved.
3
- * Use of this source code is governed by a BSD-style license that can be
4
- * found in the LICENSE file.
5
- */
6
-
7
- .cm-js-atom {
8
- color: rgb(161 247 181); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
9
- }
10
-
11
- .cm-js-attribute {
12
- color: rgb(97 148 198); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
13
- }
14
-
15
- .cm-js-builtin {
16
- color: rgb(159 180 214); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
17
- }
18
-
19
- .cm-js-comment {
20
- color: rgb(116 116 116); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
21
- }
22
-
23
- .cm-js-def {
24
- color: var(--color-token-tag);
25
- }
26
-
27
- .cm-js-keyword {
28
- color: rgb(154 127 213); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
29
- }
30
-
31
- .cm-js-link {
32
- color: rgb(159 180 214); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
33
- }
34
-
35
- .cm-js-meta {
36
- color: rgb(221 251 85); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
37
- }
38
-
39
- .cm-js-number {
40
- color: rgb(161 247 181); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
41
- }
42
-
43
- .cm-js-operator {
44
- color: rgb(210 192 87); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
45
- }
46
-
47
- .cm-js-property {
48
- color: rgb(210 192 87); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
49
- }
50
-
51
- .cm-js-string {
52
- color: rgb(242 139 84); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
53
- }
54
-
55
- .cm-js-string-2 {
56
- color: rgb(242 139 84); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
57
- }
58
-
59
- .cm-js-tag {
60
- color: var(--color-token-tag);
61
- }
62
-
63
- .cm-js-variable {
64
- color: rgb(217 217 217); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
65
- }
66
-
67
- .cm-js-variable-2 {
68
- color: rgb(217 217 217); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
69
- }
70
-
71
- .cm-atom {
72
- color: rgb(161 247 181); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
73
- }
74
-
75
- .cm-comment {
76
- color: rgb(116 116 116); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
77
- }
78
-
79
- .cm-variable {
80
- color: rgb(217 217 217); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
81
- }
82
-
83
- .cm-keyword {
84
- color: rgb(154 127 213); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
85
- }
86
-
87
- .cm-number {
88
- color: rgb(161 247 181); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
89
- }
90
-
91
- .cm-operator {
92
- color: rgb(210 192 87); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
93
- }
94
-
95
- .cm-css-atom {
96
- color: rgb(217 217 217); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
97
- }
98
-
99
- .cm-css-builtin {
100
- color: rgb(255 163 79); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
101
- }
102
-
103
- .cm-css-def {
104
- color: rgb(255 163 79); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
105
- }
106
-
107
- .cm-css-comment {
108
- color: rgb(116 116 116); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
109
- }
110
-
111
- .cm-css-meta {
112
- color: rgb(132 240 255); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
113
- }
114
-
115
- .cm-css-number {
116
- color: rgb(217 217 217); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
117
- }
118
-
119
- .cm-css-operator {
120
- color: rgb(217 217 217); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
121
- }
122
-
123
- .cm-css-property {
124
- color: rgb(132 240 255); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
125
- }
126
-
127
- .cm-css-qualifier {
128
- color: rgb(255 163 79); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
129
- }
130
-
131
- .cm-css-string {
132
- color: rgb(231 194 111); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
133
- }
134
-
135
- .cm-css-string-2 {
136
- color: rgb(217 217 217); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
137
- }
138
-
139
- .cm-css-tag {
140
- color: rgb(255 163 79); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
141
- }
142
-
143
- .cm-css-variable {
144
- color: rgb(255 163 79); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
145
- }
146
-
147
- .cm-css-variable-2 {
148
- color: rgb(255 163 79); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
149
- }
150
-
151
- .cm-xml-comment {
152
- color: rgb(137 137 137); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
153
- }
154
-
155
- .cm-xml-error {
156
- color: rgb(198 95 95); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
157
- }
158
-
159
- .cm-xml-string {
160
- color: rgb(242 151 102); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
161
- }
162
-
163
- .cm-xml-tag {
164
- color: var(--color-token-tag);
165
- }
166
-
167
- .cm-xml-attribute {
168
- color: var(--color-token-attribute);
169
- }
170
-
171
- .cm-xml-link {
172
- color: rgb(231 194 111); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
173
- }
174
-
175
- .webkit-html-attribute-name {
176
- color: var(--color-token-attribute);
177
- }
178
-
179
- .webkit-html-attribute-value {
180
- color: rgb(242 151 102); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
181
- }
182
-
183
- .webkit-html-comment {
184
- color: rgb(137 137 137); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
185
- }
186
-
187
- .webkit-html-tag {
188
- color: var(--color-token-tag);
189
- }
190
-
191
- .webkit-html-tag-name {
192
- color: var(--color-token-tag);
193
- }
194
-
195
- .webkit-html-close-tag-name {
196
- color: var(--color-token-tag);
197
- }
198
-
199
- .webkit-html-text-node {
200
- color: rgb(207 208 208); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
201
- }
202
-
203
- .webkit-html-css-node {
204
- color: rgb(207 208 208); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
205
- }
206
-
207
- .webkit-html-js-node {
208
- color: rgb(207 208 208); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
209
- }
210
-
211
- .webkit-html-pseudo-element {
212
- color: rgb(237 119 229); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
213
- }
214
-
215
- .webkit-css-property {
216
- color: var(--webkit-css-property-color, rgb(53 212 199)); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
217
- }
218
-
219
- .cm-def {
220
- color: var(--color-token-tag);
221
- }
222
-
223
- .cm-header {
224
- color: var(--color-token-tag);
225
- }
226
-
227
- .cm-variable-2 {
228
- color: #05a; /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
229
- }
230
-
231
- .cm-variable-3,
232
- .cm-type {
233
- color: rgb(93 176 215); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
234
- }
235
-
236
- .cm-string {
237
- color: rgb(242 139 84); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
238
- }
239
-
240
- .cm-meta {
241
- color: rgb(221 251 85); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
242
- }
243
-
244
- .cm-qualifier {
245
- color: rgb(255 163 79); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
246
- }
247
-
248
- .cm-builtin {
249
- color: rgb(159 180 214); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
250
- }
251
-
252
- .cm-bracket {
253
- color: #997; /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
254
- }
255
-
256
- .cm-tag {
257
- color: var(--color-token-tag);
258
- }
259
-
260
- .cm-attribute {
261
- color: rgb(97 148 198); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
262
- }
263
-
264
- .cm-hr {
265
- color: #999; /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
266
- }
267
-
268
- .cm-link {
269
- color: rgb(159 180 214); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
270
- }