chrome-devtools-frontend 1.0.1650677 → 1.0.1652307

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 (25) hide show
  1. package/front_end/core/sdk/CSSMatchedStyles.ts +20 -4
  2. package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshot.ts +94 -0
  3. package/front_end/generated/InspectorBackendCommands.ts +6 -3
  4. package/front_end/generated/SupportedCSSProperties.js +370 -6
  5. package/front_end/generated/protocol-mapping.d.ts +7 -0
  6. package/front_end/generated/protocol-proxy-api.d.ts +5 -0
  7. package/front_end/generated/protocol.ts +66 -7
  8. package/front_end/models/ai_assistance/AiAgent2.ts +3 -3
  9. package/front_end/models/ai_assistance/README.md +1 -1
  10. package/front_end/models/ai_assistance/tools/README.md +1 -1
  11. package/front_end/models/ai_assistance/tools/Tool.ts +1 -1
  12. package/front_end/models/ai_assistance/tools/ToolRegistry.ts +6 -6
  13. package/front_end/models/heap_snapshot/HeapSnapshotModel.ts +14 -0
  14. package/front_end/models/heap_snapshot/HeapSnapshotProxy.ts +4 -0
  15. package/front_end/models/javascript_metadata/NativeFunctions.js +4 -0
  16. package/front_end/panels/elements/CSSSpecificityBreakdown.ts +106 -0
  17. package/front_end/panels/elements/StylePropertiesSection.ts +40 -13
  18. package/front_end/panels/elements/StylePropertyTreeElement.ts +6 -5
  19. package/front_end/panels/elements/components/CSSQuery.ts +119 -4
  20. package/front_end/panels/elements/elements.ts +3 -0
  21. package/front_end/panels/elements/stylesSidebarPane.css +34 -0
  22. package/front_end/panels/layer_viewer/PaintProfilerView.ts +0 -3
  23. package/front_end/panels/sources/ScopeChainSidebarPane.ts +0 -12
  24. package/front_end/third_party/chromium/README.chromium +1 -1
  25. package/package.json +1 -1
@@ -23,6 +23,7 @@ import './StylesAiCodeCompletionProvider.js';
23
23
  import './StylePropertyTreeElement.js';
24
24
  import './ComputedStyleWidget.js';
25
25
  import './CSSRuleValidator.js';
26
+ import './CSSSpecificityBreakdown.js';
26
27
  import './ElementsPanel.js';
27
28
  import './ClassesPaneWidget.js';
28
29
  import './ElementStatePaneWidget.js';
@@ -36,6 +37,7 @@ import * as ClassesPaneWidget from './ClassesPaneWidget.js';
36
37
  import * as ColorSwatchPopoverIcon from './ColorSwatchPopoverIcon.js';
37
38
  import * as ComputedStyleWidget from './ComputedStyleWidget.js';
38
39
  import * as CSSRuleValidator from './CSSRuleValidator.js';
40
+ import * as CSSSpecificityBreakdown from './CSSSpecificityBreakdown.js';
39
41
  import * as CSSValueTraceView from './CSSValueTraceView.js';
40
42
  import * as DOMPath from './DOMPath.js';
41
43
  import * as ElementsPanel from './ElementsPanel.js';
@@ -73,6 +75,7 @@ export {
73
75
  ColorSwatchPopoverIcon,
74
76
  ComputedStyleWidget,
75
77
  CSSRuleValidator,
78
+ CSSSpecificityBreakdown,
76
79
  CSSValueTraceView,
77
80
  DOMPath,
78
81
  ElementsPanel,
@@ -326,3 +326,37 @@
326
326
  .section-block-expand-icon {
327
327
  margin-bottom: -4px;
328
328
  }
329
+
330
+ .selector-specificity-tooltip-summary {
331
+ white-space: nowrap;
332
+ }
333
+
334
+ .selector-specificity-tooltip-disclosure {
335
+ > summary {
336
+ cursor: pointer;
337
+ white-space: nowrap;
338
+ }
339
+ }
340
+
341
+ .selector-specificity-tooltip-list {
342
+ margin: var(--sys-size-3) 0 0;
343
+ padding: 0;
344
+ list-style: none;
345
+
346
+ > li {
347
+ display: flex;
348
+ align-items: center;
349
+ gap: var(--sys-size-3);
350
+
351
+ &::before {
352
+ content: "";
353
+ flex: none;
354
+ width: var(--sys-size-3);
355
+ height: var(--sys-size-3);
356
+ border-radius: 50%;
357
+ background-color: currentcolor;
358
+ /* Aligns the bullet's center with the disclosure triangle above. */
359
+ margin-left: var(--sys-size-2);
360
+ }
361
+ }
362
+ }
@@ -2,8 +2,6 @@
2
2
  // Use of this source code is governed by a BSD-style license that can be
3
3
  // found in the LICENSE file.
4
4
 
5
- /* eslint-disable @devtools/no-imperative-dom-api */
6
-
7
5
  import * as Common from '../../core/common/common.js';
8
6
  import * as i18n from '../../core/i18n/i18n.js';
9
7
  import * as Platform from '../../core/platform/platform.js';
@@ -266,7 +264,6 @@ export class PaintProfilerView extends Common.ObjectWrapper.eventMixin<EventType
266
264
 
267
265
  constructor(element?: HTMLElement, view: View = DEFAULT_VIEW) {
268
266
  super(element);
269
- this.contentElement.classList.add('paint-profiler-overview');
270
267
  this.#view = view;
271
268
 
272
269
  this.innerBarWidth = 4 * window.devicePixelRatio;
@@ -191,18 +191,6 @@ export class ScopeChainSidebarPane extends UI.Widget.VBox implements UI.ContextF
191
191
  return scopeChainSidebarPaneInstance;
192
192
  }
193
193
 
194
- /**
195
- * @deprecated Required for legacy web tests via DebuggerTestRunner.js
196
- */
197
- get treeOutline(): ObjectUI.ObjectPropertiesSection.ObjectPropertiesSectionsTreeOutline|null {
198
- const devtoolsTree = this.contentElement.querySelector('devtools-tree');
199
- if (devtoolsTree) {
200
- return (devtoolsTree as UI.TreeOutline.TreeViewElement).getInternalTreeOutlineForTest() as
201
- ObjectUI.ObjectPropertiesSection.ObjectPropertiesSectionsTreeOutline;
202
- }
203
- return null;
204
- }
205
-
206
194
  flavorChanged(callFrame: StackTrace.StackTrace.DebuggableFrameFlavor|null): void {
207
195
  this.#scopeChainModel?.dispose();
208
196
  this.#scopeChainModel = null;
@@ -1,7 +1,7 @@
1
1
  Name: Dependencies sourced from the upstream `chromium` repository
2
2
  URL: Internal
3
3
  Version: N/A
4
- Revision: 2f1db9960be2f98ba060d8856277091dc61ee03d
4
+ Revision: 6582413b9079ea54aca3360b183c9206bc30ce81
5
5
  Update Mechanism: Manual (https://crbug.com/428069060)
6
6
  License: BSD-3-Clause
7
7
  License File: LICENSE
package/package.json CHANGED
@@ -91,5 +91,5 @@
91
91
  "webidl2": "24.5.0",
92
92
  "yargs": "17.7.2"
93
93
  },
94
- "version": "1.0.1650677"
94
+ "version": "1.0.1652307"
95
95
  }