chrome-devtools-frontend 1.0.966659 → 1.0.967135
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/front_end/legacy_test_runner/console_test_runner/console_test_runner.js +1 -0
- package/front_end/models/javascript_metadata/NativeFunctions.js +18 -21
- package/front_end/panels/elements/StylePropertyTreeElement.ts +14 -2
- package/front_end/panels/elements/StylesSidebarPane.ts +0 -3
- package/package.json +1 -1
- package/scripts/build/esbuild.js +9 -8
@@ -364,6 +364,7 @@ ConsoleTestRunner.dumpConsoleMessagesWithClasses = async function(sortMessages,
|
|
364
364
|
let messageText = ConsoleTestRunner.prepareConsoleMessageText(element);
|
365
365
|
if (trimMessages) {
|
366
366
|
messageText = messageText.replace(/[ ]+/g, ' ');
|
367
|
+
messageText = messageText.replace(/\s+\n\s+/g, ' ');
|
367
368
|
}
|
368
369
|
result.push(messageText + ' ' + element.getAttribute('class') + ' > ' + contentElement.getAttribute('class'));
|
369
370
|
}
|
@@ -4144,10 +4144,6 @@ export const NativeFunctions = [
|
|
4144
4144
|
name: 'isInputPending',
|
4145
4145
|
signatures: [['?options']]
|
4146
4146
|
},
|
4147
|
-
{
|
4148
|
-
name: 'WindowControlsOverlayGeometryChangeEvent',
|
4149
|
-
signatures: [['type','eventInitDict']]
|
4150
|
-
},
|
4151
4147
|
{
|
4152
4148
|
name: 'stop',
|
4153
4149
|
signatures: [['?when']],
|
@@ -5297,6 +5293,10 @@ export const NativeFunctions = [
|
|
5297
5293
|
name: 'adAuctionComponents',
|
5298
5294
|
signatures: [['numComponents']]
|
5299
5295
|
},
|
5296
|
+
{
|
5297
|
+
name: 'deprecatedURNToURL',
|
5298
|
+
signatures: [['uuid_url']]
|
5299
|
+
},
|
5300
5300
|
{
|
5301
5301
|
name: 'createAdRequest',
|
5302
5302
|
signatures: [['config']]
|
@@ -5876,24 +5876,9 @@ export const NativeFunctions = [
|
|
5876
5876
|
signatures: [['path','?options','?successCallback','?errorCallback']],
|
5877
5877
|
receiver: 'DirectoryEntry'
|
5878
5878
|
},
|
5879
|
-
{
|
5880
|
-
name: 'rename',
|
5881
|
-
signatures: [['new_entry_name']],
|
5882
|
-
receiver: 'FileSystemFileHandle'
|
5883
|
-
},
|
5884
|
-
{
|
5885
|
-
name: 'rename',
|
5886
|
-
signatures: [['new_entry_name']],
|
5887
|
-
receiver: 'FileSystemHandle'
|
5888
|
-
},
|
5889
|
-
{
|
5890
|
-
name: 'rename',
|
5891
|
-
signatures: [['old_name','new_name']],
|
5892
|
-
receiver: 'NativeIOFileManager'
|
5893
|
-
},
|
5894
5879
|
{
|
5895
5880
|
name: 'move',
|
5896
|
-
signatures: [['destination_directory','?new_entry_name']]
|
5881
|
+
signatures: [['new_entry_name'],['destination_directory','?new_entry_name']]
|
5897
5882
|
},
|
5898
5883
|
{
|
5899
5884
|
name: 'queryPermission',
|
@@ -6396,6 +6381,10 @@ export const NativeFunctions = [
|
|
6396
6381
|
signatures: [['sync']],
|
6397
6382
|
receiver: 'WebGL2RenderingContextBase'
|
6398
6383
|
},
|
6384
|
+
{
|
6385
|
+
name: 'rename',
|
6386
|
+
signatures: [['old_name','new_name']]
|
6387
|
+
},
|
6399
6388
|
{
|
6400
6389
|
name: 'renameSync',
|
6401
6390
|
signatures: [['old_name','new_name']]
|
@@ -6679,6 +6668,10 @@ export const NativeFunctions = [
|
|
6679
6668
|
name: 'PictureInPictureEvent',
|
6680
6669
|
signatures: [['type','eventInitDict']]
|
6681
6670
|
},
|
6671
|
+
{
|
6672
|
+
name: 'requestPictureInPictureWindow',
|
6673
|
+
signatures: [['options']]
|
6674
|
+
},
|
6682
6675
|
{
|
6683
6676
|
name: 'refresh',
|
6684
6677
|
signatures: [['?reload']]
|
@@ -8401,7 +8394,7 @@ export const NativeFunctions = [
|
|
8401
8394
|
},
|
8402
8395
|
{
|
8403
8396
|
name: 'dispatch',
|
8404
|
-
signatures: [['
|
8397
|
+
signatures: [['workgroupCountX','?workgroupCountY','?workgroupCountZ']]
|
8405
8398
|
},
|
8406
8399
|
{
|
8407
8400
|
name: 'dispatchIndirect',
|
@@ -8683,6 +8676,10 @@ export const NativeFunctions = [
|
|
8683
8676
|
name: 'USBOutTransferResult',
|
8684
8677
|
signatures: [['status','?bytesWritten']]
|
8685
8678
|
},
|
8679
|
+
{
|
8680
|
+
name: 'WindowControlsOverlayGeometryChangeEvent',
|
8681
|
+
signatures: [['type','eventInitDict']]
|
8682
|
+
},
|
8686
8683
|
{
|
8687
8684
|
name: 'getPose',
|
8688
8685
|
signatures: [['relative_to']]
|
@@ -6,6 +6,7 @@ import * as Common from '../../core/common/common.js';
|
|
6
6
|
import * as Host from '../../core/host/host.js';
|
7
7
|
import * as i18n from '../../core/i18n/i18n.js';
|
8
8
|
import * as Platform from '../../core/platform/platform.js';
|
9
|
+
import * as Root from '../../core/root/root.js';
|
9
10
|
import * as SDK from '../../core/sdk/sdk.js';
|
10
11
|
import * as Bindings from '../../models/bindings/bindings.js';
|
11
12
|
import * as TextUtils from '../../models/text_utils/text_utils.js';
|
@@ -116,6 +117,7 @@ export class StylePropertyTreeElement extends UI.TreeOutline.TreeElement {
|
|
116
117
|
private prompt: CSSPropertyPrompt|null;
|
117
118
|
private lastComputedValue: string|null;
|
118
119
|
private contextForTest!: Context|undefined;
|
120
|
+
#propertyTextFromSource: string;
|
119
121
|
|
120
122
|
constructor(
|
121
123
|
stylesPane: StylesSidebarPane, matchedStyles: SDK.CSSMatchedStyles.CSSMatchedStyles,
|
@@ -145,6 +147,8 @@ export class StylePropertyTreeElement extends UI.TreeOutline.TreeElement {
|
|
145
147
|
this.prompt = null;
|
146
148
|
|
147
149
|
this.lastComputedValue = null;
|
150
|
+
|
151
|
+
this.#propertyTextFromSource = property.propertyText || '';
|
148
152
|
}
|
149
153
|
|
150
154
|
matchedStyles(): SDK.CSSMatchedStyles.CSSMatchedStyles {
|
@@ -478,7 +482,7 @@ export class StylePropertyTreeElement extends UI.TreeOutline.TreeElement {
|
|
478
482
|
this.listItemElement.classList.remove('disabled');
|
479
483
|
}
|
480
484
|
|
481
|
-
this.listItemElement.classList.toggle('changed', this.
|
485
|
+
this.listItemElement.classList.toggle('changed', this.isPropertyChanged(this.property));
|
482
486
|
}
|
483
487
|
|
484
488
|
node(): SDK.DOMModel.DOMNode|null {
|
@@ -523,6 +527,14 @@ export class StylePropertyTreeElement extends UI.TreeOutline.TreeElement {
|
|
523
527
|
this.styleTextAppliedForTest();
|
524
528
|
}
|
525
529
|
|
530
|
+
private isPropertyChanged(property: SDK.CSSProperty.CSSProperty): boolean {
|
531
|
+
if (!Root.Runtime.experiments.isEnabled(Root.Runtime.ExperimentName.STYLES_PANE_CSS_CHANGES)) {
|
532
|
+
return false;
|
533
|
+
}
|
534
|
+
// Check local cache first, then check against diffs from the workspace.
|
535
|
+
return this.#propertyTextFromSource !== property.propertyText || this.parentPane().isPropertyChanged(property);
|
536
|
+
}
|
537
|
+
|
526
538
|
async onpopulate(): Promise<void> {
|
527
539
|
// Only populate once and if this property is a shorthand.
|
528
540
|
if (this.childCount() || !this.isShorthand) {
|
@@ -1481,7 +1493,7 @@ export class StylePropertyTreeElement extends UI.TreeOutline.TreeElement {
|
|
1481
1493
|
return;
|
1482
1494
|
}
|
1483
1495
|
if (updatedProperty) {
|
1484
|
-
this.listItemElement.classList.toggle('changed', this.
|
1496
|
+
this.listItemElement.classList.toggle('changed', this.isPropertyChanged(updatedProperty));
|
1485
1497
|
}
|
1486
1498
|
|
1487
1499
|
this.matchedStylesInternal.resetActiveProperties();
|
@@ -1023,9 +1023,6 @@ export class StylesSidebarPane extends Common.ObjectWrapper.eventMixin<EventType
|
|
1023
1023
|
}
|
1024
1024
|
|
1025
1025
|
isPropertyChanged(property: SDK.CSSProperty.CSSProperty): boolean {
|
1026
|
-
if (!Root.Runtime.experiments.isEnabled(Root.Runtime.ExperimentName.STYLES_PANE_CSS_CHANGES)) {
|
1027
|
-
return false;
|
1028
|
-
}
|
1029
1026
|
const url = property.ownerStyle.parentRule?.resourceURL();
|
1030
1027
|
if (!url) {
|
1031
1028
|
return false;
|
package/package.json
CHANGED
package/scripts/build/esbuild.js
CHANGED
@@ -27,16 +27,17 @@ const plugin = {
|
|
27
27
|
return null;
|
28
28
|
}
|
29
29
|
|
30
|
-
if (res.external && res.id) {
|
31
|
-
return {
|
32
|
-
external: res.external,
|
33
|
-
path: './' + path.relative(outdir, res.id),
|
34
|
-
};
|
35
|
-
}
|
36
|
-
|
37
30
|
if (res.external) {
|
31
|
+
// res.id can be both of absolutized local JavaScript path or node's
|
32
|
+
// builtin module (e.g. 'fs', 'path'), and only relativize the path in
|
33
|
+
// former case.
|
34
|
+
if (path.isAbsolute(res.id)) {
|
35
|
+
res.id = './' + path.relative(outdir, res.id);
|
36
|
+
}
|
37
|
+
|
38
38
|
return {
|
39
|
-
external:
|
39
|
+
external: res.external,
|
40
|
+
path: res.id,
|
40
41
|
};
|
41
42
|
}
|
42
43
|
|