chrome-devtools-frontend 1.0.1008646 → 1.0.1009515
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.vscode/devtools-workspace-launch.json +1 -1
- package/config/gni/devtools_grd_files.gni +0 -1
- package/extension-api/ExtensionAPI.d.ts +4 -2
- package/front_end/core/sdk/Target.ts +2 -2
- package/front_end/legacy_test_runner/elements_test_runner/ElementsTestRunner.js +8 -8
- package/front_end/models/bindings/ResourceMapping.ts +43 -10
- package/front_end/models/extensions/ExtensionAPI.ts +4 -2
- package/front_end/models/extensions/ExtensionServer.ts +3 -3
- package/front_end/models/extensions/RecorderExtensionEndpoint.ts +7 -1
- package/front_end/models/logs/NetworkLog.ts +18 -8
- package/front_end/models/source_map_scopes/NamesResolver.ts +7 -2
- package/front_end/panels/elements/ComputedStyleWidget.ts +190 -221
- package/front_end/panels/elements/ElementsTreeElement.ts +101 -90
- package/front_end/panels/elements/StylePropertyTreeElement.ts +1 -1
- package/front_end/panels/elements/components/ComputedStyleProperty.ts +14 -2
- package/front_end/panels/elements/components/ComputedStyleTrace.ts +4 -1
- package/front_end/panels/elements/components/computedStyleProperty.css +15 -6
- package/front_end/panels/elements/components/computedStyleTrace.css +12 -1
- package/front_end/panels/elements/computedStyleSidebarPane.css +0 -5
- package/front_end/panels/network/NetworkSearchScope.ts +1 -1
- package/front_end/ui/components/docs/computed_style_property/basic.ts +12 -10
- package/front_end/ui/components/docs/computed_style_property/traceable.ts +13 -10
- package/front_end/ui/legacy/components/data_grid/DataGrid.ts +3 -5
- package/package.json +1 -1
- package/front_end/panels/elements/computedStyleWidgetTree.css +0 -66
@@ -10,18 +10,20 @@ await FrontendHelpers.initializeGlobalVars();
|
|
10
10
|
|
11
11
|
const component = new Elements.ComputedStyleProperty.ComputedStyleProperty();
|
12
12
|
|
13
|
-
const propertyName = document.createElement('span');
|
14
|
-
propertyName.textContent = 'display';
|
15
|
-
propertyName.slot = 'property-name';
|
16
|
-
component.appendChild(propertyName);
|
17
|
-
|
18
|
-
const propertyValue = document.createElement('span');
|
19
|
-
propertyValue.textContent = 'block';
|
20
|
-
propertyValue.slot = 'property-value';
|
21
|
-
component.appendChild(propertyValue);
|
22
|
-
|
23
13
|
document.getElementById('container')?.appendChild(component);
|
24
14
|
component.data = {
|
15
|
+
propertyNameRenderer: () => {
|
16
|
+
const propertyName = document.createElement('span');
|
17
|
+
propertyName.textContent = 'display';
|
18
|
+
propertyName.slot = 'property-name';
|
19
|
+
return propertyName;
|
20
|
+
},
|
21
|
+
propertyValueRenderer: () => {
|
22
|
+
const propertyValue = document.createElement('span');
|
23
|
+
propertyValue.textContent = 'block';
|
24
|
+
propertyValue.slot = 'property-value';
|
25
|
+
return propertyValue;
|
26
|
+
},
|
25
27
|
inherited: true,
|
26
28
|
traceable: false,
|
27
29
|
onNavigateToSource: (): void => {},
|
@@ -7,16 +7,6 @@ import * as Elements from '../../../../panels/elements/components/components.js'
|
|
7
7
|
|
8
8
|
const component = new Elements.ComputedStyleProperty.ComputedStyleProperty();
|
9
9
|
|
10
|
-
const propertyName = document.createElement('span');
|
11
|
-
propertyName.textContent = 'display';
|
12
|
-
propertyName.slot = 'property-name';
|
13
|
-
component.appendChild(propertyName);
|
14
|
-
|
15
|
-
const propertyValue = document.createElement('span');
|
16
|
-
propertyValue.textContent = 'grid';
|
17
|
-
propertyValue.slot = 'property-value';
|
18
|
-
component.appendChild(propertyValue);
|
19
|
-
|
20
10
|
const trace = document.createElement('pre');
|
21
11
|
trace.textContent = 'block body (style.css):42';
|
22
12
|
trace.slot = 'property-traces';
|
@@ -24,6 +14,19 @@ component.appendChild(trace);
|
|
24
14
|
|
25
15
|
document.getElementById('container')?.appendChild(component);
|
26
16
|
component.data = {
|
17
|
+
propertyNameRenderer: () => {
|
18
|
+
const propertyName = document.createElement('span');
|
19
|
+
propertyName.textContent = 'display';
|
20
|
+
propertyName.slot = 'property-name';
|
21
|
+
return propertyName;
|
22
|
+
},
|
23
|
+
propertyValueRenderer: () => {
|
24
|
+
const propertyValue = document.createElement('span');
|
25
|
+
propertyValue.textContent = 'grid';
|
26
|
+
propertyValue.slot = 'property-value';
|
27
|
+
|
28
|
+
return propertyValue;
|
29
|
+
},
|
27
30
|
inherited: false,
|
28
31
|
traceable: true,
|
29
32
|
onNavigateToSource: (): void => {},
|
@@ -1181,11 +1181,9 @@ export class DataGridImpl<T> extends Common.ObjectWrapper.ObjectWrapper<EventTyp
|
|
1181
1181
|
nextSelectedNode.select();
|
1182
1182
|
}
|
1183
1183
|
|
1184
|
-
if (
|
1185
|
-
|
1186
|
-
|
1187
|
-
// crbug.com/1005449
|
1188
|
-
// navigational keys pressed but current DataGrid panel has lost focus;
|
1184
|
+
if (handled && document.activeElement !== this.element) {
|
1185
|
+
// crbug.com/1005449, crbug.com/1329956
|
1186
|
+
// navigational or delete keys pressed but current DataGrid panel has lost focus;
|
1189
1187
|
// re-focus to ensure subsequent keydowns can be registered within this DataGrid
|
1190
1188
|
this.element.focus();
|
1191
1189
|
}
|
package/package.json
CHANGED
@@ -1,66 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Copyright (c) 2017 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
|
-
.alphabetical-list.render-flash {
|
8
|
-
min-height: 100vh;
|
9
|
-
}
|
10
|
-
|
11
|
-
.tree-outline,
|
12
|
-
.tree-outline ol {
|
13
|
-
padding-left: 0;
|
14
|
-
}
|
15
|
-
|
16
|
-
.tree-outline li:hover {
|
17
|
-
background-color: var(--legacy-focus-bg-color);
|
18
|
-
cursor: text;
|
19
|
-
}
|
20
|
-
|
21
|
-
.tree-outline li::before {
|
22
|
-
margin: 0 -1px 0 4px;
|
23
|
-
}
|
24
|
-
|
25
|
-
.group-title {
|
26
|
-
/* tree-outline li::before is set to be 16px wide */
|
27
|
-
padding-right: 16px;
|
28
|
-
}
|
29
|
-
|
30
|
-
.tree-outline li.group-title:hover {
|
31
|
-
background-color: transparent;
|
32
|
-
}
|
33
|
-
|
34
|
-
.group-title > h1 {
|
35
|
-
margin: 1px 0 0;
|
36
|
-
padding: 1em 0;
|
37
|
-
width: 100%;
|
38
|
-
cursor: text;
|
39
|
-
color: var(--color-text-secondary);
|
40
|
-
font-size: 11px;
|
41
|
-
font-weight: 400;
|
42
|
-
}
|
43
|
-
|
44
|
-
.group-title:not(.first-group) > h1 {
|
45
|
-
border-top: 1px solid var(--color-details-hairline);
|
46
|
-
}
|
47
|
-
|
48
|
-
.group-title + ol.children {
|
49
|
-
margin-bottom: 1em;
|
50
|
-
}
|
51
|
-
|
52
|
-
@media (forced-colors: active) {
|
53
|
-
:host-context(.monospace.computed-properties) .tree-outline li:hover {
|
54
|
-
forced-color-adjust: none;
|
55
|
-
background-color: Highlight;
|
56
|
-
}
|
57
|
-
|
58
|
-
:host-context(.monospace.computed-properties) .tree-outline:not(.hide-selection-when-blurred) li.parent:hover.selected::before,
|
59
|
-
:host-context(.monospace.computed-properties) .tree-outline-disclosure li.parent:hover::before {
|
60
|
-
background-color: HighlightText;
|
61
|
-
}
|
62
|
-
|
63
|
-
:host-context(.monospace.computed-properties) .tree-outline li:hover * {
|
64
|
-
color: HighlightText;
|
65
|
-
}
|
66
|
-
}
|