chrome-devtools-frontend 1.0.1014346 → 1.0.1015658
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/.eslintignore +1 -0
- package/config/gni/devtools_grd_files.gni +4 -2
- package/front_end/core/common/JavaScriptMetaData.ts +20 -0
- package/front_end/core/i18n/locales/af.json +195 -93
- package/front_end/core/i18n/locales/am.json +191 -89
- package/front_end/core/i18n/locales/ar.json +193 -91
- package/front_end/core/i18n/locales/as.json +192 -90
- package/front_end/core/i18n/locales/az.json +191 -89
- package/front_end/core/i18n/locales/be.json +191 -89
- package/front_end/core/i18n/locales/bg.json +190 -88
- package/front_end/core/i18n/locales/bn.json +191 -89
- package/front_end/core/i18n/locales/bs.json +193 -91
- package/front_end/core/i18n/locales/ca.json +189 -87
- package/front_end/core/i18n/locales/cs.json +191 -89
- package/front_end/core/i18n/locales/cy.json +191 -89
- package/front_end/core/i18n/locales/da.json +191 -89
- package/front_end/core/i18n/locales/de.json +193 -91
- package/front_end/core/i18n/locales/el.json +174 -72
- package/front_end/core/i18n/locales/en-GB.json +132 -30
- package/front_end/core/i18n/locales/en-US.json +3 -3
- package/front_end/core/i18n/locales/en-XL.json +3 -3
- package/front_end/core/i18n/locales/es-419.json +192 -90
- package/front_end/core/i18n/locales/es.json +200 -98
- package/front_end/core/i18n/locales/et.json +190 -88
- package/front_end/core/i18n/locales/eu.json +197 -95
- package/front_end/core/i18n/locales/fa.json +192 -90
- package/front_end/core/i18n/locales/fi.json +192 -90
- package/front_end/core/i18n/locales/fil.json +190 -88
- package/front_end/core/i18n/locales/fr-CA.json +191 -89
- package/front_end/core/i18n/locales/fr.json +192 -90
- package/front_end/core/i18n/locales/gl.json +173 -71
- package/front_end/core/i18n/locales/gu.json +192 -90
- package/front_end/core/i18n/locales/he.json +191 -89
- package/front_end/core/i18n/locales/hi.json +172 -70
- package/front_end/core/i18n/locales/hr.json +180 -78
- package/front_end/core/i18n/locales/hu.json +191 -89
- package/front_end/core/i18n/locales/hy.json +192 -90
- package/front_end/core/i18n/locales/id.json +192 -90
- package/front_end/core/i18n/locales/is.json +176 -74
- package/front_end/core/i18n/locales/it.json +192 -90
- package/front_end/core/i18n/locales/ja.json +190 -88
- package/front_end/core/i18n/locales/ka.json +190 -88
- package/front_end/core/i18n/locales/kk.json +198 -96
- package/front_end/core/i18n/locales/km.json +195 -93
- package/front_end/core/i18n/locales/kn.json +193 -91
- package/front_end/core/i18n/locales/ko.json +190 -88
- package/front_end/core/i18n/locales/ky.json +193 -91
- package/front_end/core/i18n/locales/lo.json +192 -90
- package/front_end/core/i18n/locales/lt.json +193 -91
- package/front_end/core/i18n/locales/lv.json +175 -73
- package/front_end/core/i18n/locales/mk.json +193 -91
- package/front_end/core/i18n/locales/ml.json +193 -91
- package/front_end/core/i18n/locales/mn.json +190 -88
- package/front_end/core/i18n/locales/mr.json +191 -89
- package/front_end/core/i18n/locales/ms.json +190 -88
- package/front_end/core/i18n/locales/my.json +191 -89
- package/front_end/core/i18n/locales/ne.json +172 -70
- package/front_end/core/i18n/locales/nl.json +191 -89
- package/front_end/core/i18n/locales/no.json +191 -89
- package/front_end/core/i18n/locales/or.json +196 -94
- package/front_end/core/i18n/locales/pa.json +191 -89
- package/front_end/core/i18n/locales/pl.json +191 -89
- package/front_end/core/i18n/locales/pt-PT.json +199 -97
- package/front_end/core/i18n/locales/pt.json +191 -89
- package/front_end/core/i18n/locales/ro.json +193 -91
- package/front_end/core/i18n/locales/ru.json +193 -91
- package/front_end/core/i18n/locales/si.json +191 -89
- package/front_end/core/i18n/locales/sk.json +192 -90
- package/front_end/core/i18n/locales/sl.json +191 -89
- package/front_end/core/i18n/locales/sq.json +193 -91
- package/front_end/core/i18n/locales/sr-Latn.json +190 -88
- package/front_end/core/i18n/locales/sr.json +190 -88
- package/front_end/core/i18n/locales/sv.json +191 -89
- package/front_end/core/i18n/locales/sw.json +192 -90
- package/front_end/core/i18n/locales/ta.json +193 -91
- package/front_end/core/i18n/locales/te.json +134 -32
- package/front_end/core/i18n/locales/th.json +190 -88
- package/front_end/core/i18n/locales/tr.json +193 -91
- package/front_end/core/i18n/locales/uk.json +193 -91
- package/front_end/core/i18n/locales/ur.json +191 -89
- package/front_end/core/i18n/locales/uz.json +190 -88
- package/front_end/core/i18n/locales/vi.json +190 -88
- package/front_end/core/i18n/locales/zh-HK.json +192 -90
- package/front_end/core/i18n/locales/zh-TW.json +195 -93
- package/front_end/core/i18n/locales/zh.json +191 -89
- package/front_end/core/i18n/locales/zu.json +192 -90
- package/front_end/core/sdk/DOMModel.ts +9 -0
- package/front_end/core/sdk/DebuggerModel.ts +0 -28
- package/front_end/core/sdk/Script.ts +5 -14
- package/front_end/core/sdk/SourceMap.ts +88 -27
- package/front_end/generated/InspectorBackendCommands.js +7 -3
- package/front_end/generated/protocol-mapping.d.ts +16 -0
- package/front_end/generated/protocol-proxy-api.d.ts +18 -0
- package/front_end/generated/protocol.ts +31 -5
- package/front_end/models/bindings/ResourceScriptMapping.ts +1 -2
- package/front_end/models/emulation/EmulatedDevices.ts +0 -13
- package/front_end/models/javascript_metadata/DOMPinnedProperties.ts +247 -225
- package/front_end/models/javascript_metadata/JavaScriptMetadata.ts +3 -0
- package/front_end/models/javascript_metadata/NativeFunctions.js +4 -4
- package/front_end/models/javascript_metadata/javascript_metadata.ts +3 -0
- package/front_end/models/source_map_scopes/NamesResolver.ts +99 -23
- package/front_end/panels/elements/ElementsTreeElement.ts +7 -3
- package/front_end/panels/elements/components/ElementsBreadcrumbs.ts +3 -4
- package/front_end/panels/elements/components/LayoutPane.ts +3 -4
- package/front_end/panels/elements/components/QueryContainer.ts +3 -4
- package/front_end/panels/elements/components/components.ts +0 -2
- package/front_end/panels/lighthouse/lighthouseStartView.css +3 -1
- package/front_end/panels/sources/ScopeChainSidebarPane.ts +4 -42
- package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorController.ts +64 -8
- package/front_end/{panels/elements/components → ui/components/node_text}/NodeText.ts +2 -1
- package/front_end/{panels/elements/components → ui/components/node_text}/nodeText.css +0 -0
- package/front_end/ui/components/node_text/node_text.ts +9 -0
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +8 -5
- package/front_end/ui/legacy/components/object_ui/objectValue.css +1 -4
- package/package.json +1 -1
- package/scripts/webidl-properties/config.js +305 -239
- package/scripts/webidl-properties/get-props.js +23 -12
- package/scripts/webidl-properties/index.js +14 -9
- package/scripts/webidl-properties/tests.js +58 -14
@@ -22,6 +22,8 @@ export interface DOMPinnedWebIDLProp {
|
|
22
22
|
// A bitfield of the specs in which the property is found.
|
23
23
|
// If missing, it implies the default spec: "html".
|
24
24
|
specs?: number;
|
25
|
+
// The "states" in which this property is "applicable".
|
26
|
+
rules?: Array<DOMPinnedWebIDLRule>;
|
25
27
|
}
|
26
28
|
|
27
29
|
export interface DOMPinnedWebIDLType {
|
@@ -35,12 +37,12 @@ export interface DOMPinnedWebIDLType {
|
|
35
37
|
[PropName: string]: DOMPinnedWebIDLProp,
|
36
38
|
};
|
37
39
|
// The "states" in which only certain properties are "applicable".
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
40
|
+
rules?: Array<DOMPinnedWebIDLRule>;
|
41
|
+
}
|
42
|
+
|
43
|
+
export interface DOMPinnedWebIDLRule {
|
44
|
+
when: string;
|
45
|
+
is: string;
|
44
46
|
}
|
45
47
|
|
46
48
|
export interface DOMPinnedPropertiesDataset {
|
@@ -496,237 +498,257 @@ export const DOMPinnedProperties: DOMPinnedPropertiesDataset = {
|
|
496
498
|
'HTMLInputElement': {
|
497
499
|
'inheritance': 'HTMLElement',
|
498
500
|
'props': {
|
499
|
-
'accept': {},
|
500
|
-
'alt': {},
|
501
|
-
'autocomplete': {
|
501
|
+
'accept': {'rules': [{'when': 'type', 'is': 'file'}]},
|
502
|
+
'alt': {'rules': [{'when': 'type', 'is': 'image'}]},
|
503
|
+
'autocomplete': {
|
504
|
+
'rules': [
|
505
|
+
{'when': 'type', 'is': 'hidden'},
|
506
|
+
{'when': 'type', 'is': 'text'},
|
507
|
+
{'when': 'type', 'is': 'search'},
|
508
|
+
{'when': 'type', 'is': 'url'},
|
509
|
+
{'when': 'type', 'is': 'tel'},
|
510
|
+
{'when': 'type', 'is': 'email'},
|
511
|
+
{'when': 'type', 'is': 'password'},
|
512
|
+
{'when': 'type', 'is': 'date'},
|
513
|
+
{'when': 'type', 'is': 'month'},
|
514
|
+
{'when': 'type', 'is': 'week'},
|
515
|
+
{'when': 'type', 'is': 'time'},
|
516
|
+
{'when': 'type', 'is': 'datetime-local'},
|
517
|
+
{'when': 'type', 'is': 'number'},
|
518
|
+
{'when': 'type', 'is': 'range'},
|
519
|
+
{'when': 'type', 'is': 'color'},
|
520
|
+
],
|
521
|
+
},
|
502
522
|
'defaultChecked': {},
|
503
|
-
'checked': {},
|
504
|
-
'dirName': {},
|
523
|
+
'checked': {'rules': [{'when': 'type', 'is': 'checkbox'}, {'when': 'type', 'is': 'radio'}]},
|
524
|
+
'dirName': {'rules': [{'when': 'type', 'is': 'text'}, {'when': 'type', 'is': 'search'}]},
|
505
525
|
'disabled': {},
|
506
526
|
'form': {},
|
507
|
-
'files': {},
|
508
|
-
'formAction': {},
|
509
|
-
'formEnctype': {},
|
510
|
-
'formMethod': {},
|
511
|
-
'formNoValidate': {},
|
512
|
-
'formTarget': {},
|
513
|
-
'height': {},
|
527
|
+
'files': {'rules': [{'when': 'type', 'is': 'file'}]},
|
528
|
+
'formAction': {'rules': [{'when': 'type', 'is': 'submit'}, {'when': 'type', 'is': 'image'}]},
|
529
|
+
'formEnctype': {'rules': [{'when': 'type', 'is': 'submit'}, {'when': 'type', 'is': 'image'}]},
|
530
|
+
'formMethod': {'rules': [{'when': 'type', 'is': 'submit'}, {'when': 'type', 'is': 'image'}]},
|
531
|
+
'formNoValidate': {'rules': [{'when': 'type', 'is': 'submit'}, {'when': 'type', 'is': 'image'}]},
|
532
|
+
'formTarget': {'rules': [{'when': 'type', 'is': 'submit'}, {'when': 'type', 'is': 'image'}]},
|
533
|
+
'height': {'rules': [{'when': 'type', 'is': 'image'}]},
|
514
534
|
'indeterminate': {},
|
515
|
-
'list': {
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
'value': {},
|
532
|
-
'valueAsDate': {},
|
533
|
-
'valueAsNumber': {},
|
534
|
-
'width': {},
|
535
|
-
'willValidate': {},
|
536
|
-
'validity': {},
|
537
|
-
'validationMessage': {},
|
538
|
-
'labels': {},
|
539
|
-
'selectionStart': {},
|
540
|
-
'selectionEnd': {},
|
541
|
-
'selectionDirection': {},
|
542
|
-
'align': {},
|
543
|
-
'useMap': {},
|
544
|
-
},
|
545
|
-
'states': {
|
546
|
-
'[type=hidden]': {'autocomplete': {}, 'value': {}},
|
547
|
-
'[type=text]': {
|
548
|
-
'autocomplete': {},
|
549
|
-
'dirName': {},
|
550
|
-
'list': {},
|
551
|
-
'maxLength': {},
|
552
|
-
'minLength': {},
|
553
|
-
'pattern': {},
|
554
|
-
'placeholder': {},
|
555
|
-
'readOnly': {},
|
556
|
-
'required': {},
|
557
|
-
'size': {},
|
558
|
-
'value': {},
|
559
|
-
'selectionStart': {},
|
560
|
-
'selectionEnd': {},
|
561
|
-
'selectionDirection': {},
|
535
|
+
'list': {
|
536
|
+
'rules': [
|
537
|
+
{'when': 'type', 'is': 'text'},
|
538
|
+
{'when': 'type', 'is': 'search'},
|
539
|
+
{'when': 'type', 'is': 'url'},
|
540
|
+
{'when': 'type', 'is': 'tel'},
|
541
|
+
{'when': 'type', 'is': 'email'},
|
542
|
+
{'when': 'type', 'is': 'date'},
|
543
|
+
{'when': 'type', 'is': 'month'},
|
544
|
+
{'when': 'type', 'is': 'week'},
|
545
|
+
{'when': 'type', 'is': 'time'},
|
546
|
+
{'when': 'type', 'is': 'datetime-local'},
|
547
|
+
{'when': 'type', 'is': 'number'},
|
548
|
+
{'when': 'type', 'is': 'range'},
|
549
|
+
{'when': 'type', 'is': 'color'},
|
550
|
+
],
|
562
551
|
},
|
563
|
-
'
|
564
|
-
'
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
'size': {},
|
574
|
-
'value': {},
|
575
|
-
'selectionStart': {},
|
576
|
-
'selectionEnd': {},
|
577
|
-
'selectionDirection': {},
|
552
|
+
'max': {
|
553
|
+
'rules': [
|
554
|
+
{'when': 'type', 'is': 'date'},
|
555
|
+
{'when': 'type', 'is': 'month'},
|
556
|
+
{'when': 'type', 'is': 'week'},
|
557
|
+
{'when': 'type', 'is': 'time'},
|
558
|
+
{'when': 'type', 'is': 'datetime-local'},
|
559
|
+
{'when': 'type', 'is': 'number'},
|
560
|
+
{'when': 'type', 'is': 'range'},
|
561
|
+
],
|
578
562
|
},
|
579
|
-
'
|
580
|
-
'
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
'size': {},
|
589
|
-
'value': {},
|
590
|
-
'selectionStart': {},
|
591
|
-
'selectionEnd': {},
|
592
|
-
'selectionDirection': {},
|
563
|
+
'maxLength': {
|
564
|
+
'rules': [
|
565
|
+
{'when': 'type', 'is': 'text'},
|
566
|
+
{'when': 'type', 'is': 'search'},
|
567
|
+
{'when': 'type', 'is': 'url'},
|
568
|
+
{'when': 'type', 'is': 'tel'},
|
569
|
+
{'when': 'type', 'is': 'email'},
|
570
|
+
{'when': 'type', 'is': 'password'},
|
571
|
+
],
|
593
572
|
},
|
594
|
-
'
|
595
|
-
'
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
'value': {},
|
605
|
-
'selectionStart': {},
|
606
|
-
'selectionEnd': {},
|
607
|
-
'selectionDirection': {},
|
573
|
+
'min': {
|
574
|
+
'rules': [
|
575
|
+
{'when': 'type', 'is': 'date'},
|
576
|
+
{'when': 'type', 'is': 'month'},
|
577
|
+
{'when': 'type', 'is': 'week'},
|
578
|
+
{'when': 'type', 'is': 'time'},
|
579
|
+
{'when': 'type', 'is': 'datetime-local'},
|
580
|
+
{'when': 'type', 'is': 'number'},
|
581
|
+
{'when': 'type', 'is': 'range'},
|
582
|
+
],
|
608
583
|
},
|
609
|
-
'
|
610
|
-
'
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
'required': {},
|
619
|
-
'size': {},
|
620
|
-
'value': {},
|
584
|
+
'minLength': {
|
585
|
+
'rules': [
|
586
|
+
{'when': 'type', 'is': 'text'},
|
587
|
+
{'when': 'type', 'is': 'search'},
|
588
|
+
{'when': 'type', 'is': 'url'},
|
589
|
+
{'when': 'type', 'is': 'tel'},
|
590
|
+
{'when': 'type', 'is': 'email'},
|
591
|
+
{'when': 'type', 'is': 'password'},
|
592
|
+
],
|
621
593
|
},
|
622
|
-
'[type
|
623
|
-
|
624
|
-
|
625
|
-
'
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
'selectionEnd': {},
|
634
|
-
'selectionDirection': {},
|
594
|
+
'multiple': {'rules': [{'when': 'type', 'is': 'email'}, {'when': 'type', 'is': 'file'}]},
|
595
|
+
'name': {},
|
596
|
+
'pattern': {
|
597
|
+
'rules': [
|
598
|
+
{'when': 'type', 'is': 'text'},
|
599
|
+
{'when': 'type', 'is': 'search'},
|
600
|
+
{'when': 'type', 'is': 'url'},
|
601
|
+
{'when': 'type', 'is': 'tel'},
|
602
|
+
{'when': 'type', 'is': 'email'},
|
603
|
+
{'when': 'type', 'is': 'password'},
|
604
|
+
],
|
635
605
|
},
|
636
|
-
'
|
637
|
-
'
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
'valueAsNumber': {},
|
606
|
+
'placeholder': {
|
607
|
+
'rules': [
|
608
|
+
{'when': 'type', 'is': 'text'},
|
609
|
+
{'when': 'type', 'is': 'search'},
|
610
|
+
{'when': 'type', 'is': 'url'},
|
611
|
+
{'when': 'type', 'is': 'tel'},
|
612
|
+
{'when': 'type', 'is': 'email'},
|
613
|
+
{'when': 'type', 'is': 'password'},
|
614
|
+
{'when': 'type', 'is': 'number'},
|
615
|
+
],
|
647
616
|
},
|
648
|
-
'
|
649
|
-
'
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
617
|
+
'readOnly': {
|
618
|
+
'rules': [
|
619
|
+
{'when': 'type', 'is': 'text'},
|
620
|
+
{'when': 'type', 'is': 'search'},
|
621
|
+
{'when': 'type', 'is': 'url'},
|
622
|
+
{'when': 'type', 'is': 'tel'},
|
623
|
+
{'when': 'type', 'is': 'email'},
|
624
|
+
{'when': 'type', 'is': 'password'},
|
625
|
+
{'when': 'type', 'is': 'date'},
|
626
|
+
{'when': 'type', 'is': 'month'},
|
627
|
+
{'when': 'type', 'is': 'week'},
|
628
|
+
{'when': 'type', 'is': 'time'},
|
629
|
+
{'when': 'type', 'is': 'datetime-local'},
|
630
|
+
{'when': 'type', 'is': 'number'},
|
631
|
+
],
|
659
632
|
},
|
660
|
-
'
|
661
|
-
'
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
633
|
+
'required': {
|
634
|
+
'rules': [
|
635
|
+
{'when': 'type', 'is': 'text'},
|
636
|
+
{'when': 'type', 'is': 'search'},
|
637
|
+
{'when': 'type', 'is': 'url'},
|
638
|
+
{'when': 'type', 'is': 'tel'},
|
639
|
+
{'when': 'type', 'is': 'email'},
|
640
|
+
{'when': 'type', 'is': 'password'},
|
641
|
+
{'when': 'type', 'is': 'date'},
|
642
|
+
{'when': 'type', 'is': 'month'},
|
643
|
+
{'when': 'type', 'is': 'week'},
|
644
|
+
{'when': 'type', 'is': 'time'},
|
645
|
+
{'when': 'type', 'is': 'datetime-local'},
|
646
|
+
{'when': 'type', 'is': 'number'},
|
647
|
+
{'when': 'type', 'is': 'checkbox'},
|
648
|
+
{'when': 'type', 'is': 'radio'},
|
649
|
+
{'when': 'type', 'is': 'file'},
|
650
|
+
],
|
671
651
|
},
|
672
|
-
'
|
673
|
-
'
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
'valueAsDate': {},
|
682
|
-
'valueAsNumber': {},
|
652
|
+
'size': {
|
653
|
+
'rules': [
|
654
|
+
{'when': 'type', 'is': 'text'},
|
655
|
+
{'when': 'type', 'is': 'search'},
|
656
|
+
{'when': 'type', 'is': 'url'},
|
657
|
+
{'when': 'type', 'is': 'tel'},
|
658
|
+
{'when': 'type', 'is': 'email'},
|
659
|
+
{'when': 'type', 'is': 'password'},
|
660
|
+
],
|
683
661
|
},
|
684
|
-
'[type
|
685
|
-
|
686
|
-
'
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
662
|
+
'src': {'rules': [{'when': 'type', 'is': 'image'}]},
|
663
|
+
'step': {
|
664
|
+
'rules': [
|
665
|
+
{'when': 'type', 'is': 'date'},
|
666
|
+
{'when': 'type', 'is': 'month'},
|
667
|
+
{'when': 'type', 'is': 'week'},
|
668
|
+
{'when': 'type', 'is': 'time'},
|
669
|
+
{'when': 'type', 'is': 'datetime-local'},
|
670
|
+
{'when': 'type', 'is': 'number'},
|
671
|
+
{'when': 'type', 'is': 'range'},
|
672
|
+
],
|
694
673
|
},
|
695
|
-
'
|
696
|
-
|
697
|
-
|
698
|
-
'
|
699
|
-
|
700
|
-
|
701
|
-
|
702
|
-
|
703
|
-
|
704
|
-
|
705
|
-
|
674
|
+
'type': {},
|
675
|
+
'defaultValue': {},
|
676
|
+
'value': {
|
677
|
+
'rules': [
|
678
|
+
{'when': 'type', 'is': 'hidden'}, {'when': 'type', 'is': 'text'}, {'when': 'type', 'is': 'search'},
|
679
|
+
{'when': 'type', 'is': 'url'}, {'when': 'type', 'is': 'tel'}, {'when': 'type', 'is': 'email'},
|
680
|
+
{'when': 'type', 'is': 'password'}, {'when': 'type', 'is': 'date'}, {'when': 'type', 'is': 'month'},
|
681
|
+
{'when': 'type', 'is': 'week'}, {'when': 'type', 'is': 'time'}, {'when': 'type', 'is': 'datetime-local'},
|
682
|
+
{'when': 'type', 'is': 'number'}, {'when': 'type', 'is': 'range'}, {'when': 'type', 'is': 'color'},
|
683
|
+
{'when': 'type', 'is': 'checkbox'}, {'when': 'type', 'is': 'radio'}, {'when': 'type', 'is': 'file'},
|
684
|
+
{'when': 'type', 'is': 'submit'}, {'when': 'type', 'is': 'image'}, {'when': 'type', 'is': 'reset'},
|
685
|
+
{'when': 'type', 'is': 'button'},
|
686
|
+
],
|
687
|
+
},
|
688
|
+
'valueAsDate': {
|
689
|
+
'rules': [
|
690
|
+
{'when': 'type', 'is': 'date'},
|
691
|
+
{'when': 'type', 'is': 'month'},
|
692
|
+
{'when': 'type', 'is': 'week'},
|
693
|
+
{'when': 'type', 'is': 'time'},
|
694
|
+
],
|
695
|
+
},
|
696
|
+
'valueAsNumber': {
|
697
|
+
'rules': [
|
698
|
+
{'when': 'type', 'is': 'date'},
|
699
|
+
{'when': 'type', 'is': 'month'},
|
700
|
+
{'when': 'type', 'is': 'week'},
|
701
|
+
{'when': 'type', 'is': 'time'},
|
702
|
+
{'when': 'type', 'is': 'datetime-local'},
|
703
|
+
{'when': 'type', 'is': 'number'},
|
704
|
+
{'when': 'type', 'is': 'range'},
|
705
|
+
],
|
706
|
+
},
|
707
|
+
'width': {'rules': [{'when': 'type', 'is': 'image'}]},
|
708
|
+
'willValidate': {},
|
709
|
+
'validity': {},
|
710
|
+
'validationMessage': {},
|
711
|
+
'labels': {},
|
712
|
+
'selectionStart': {
|
713
|
+
'rules': [
|
714
|
+
{'when': 'type', 'is': 'text'},
|
715
|
+
{'when': 'type', 'is': 'search'},
|
716
|
+
{'when': 'type', 'is': 'url'},
|
717
|
+
{'when': 'type', 'is': 'tel'},
|
718
|
+
{'when': 'type', 'is': 'password'},
|
719
|
+
],
|
720
|
+
},
|
721
|
+
'selectionEnd': {
|
722
|
+
'rules': [
|
723
|
+
{'when': 'type', 'is': 'text'},
|
724
|
+
{'when': 'type', 'is': 'search'},
|
725
|
+
{'when': 'type', 'is': 'url'},
|
726
|
+
{'when': 'type', 'is': 'tel'},
|
727
|
+
{'when': 'type', 'is': 'password'},
|
728
|
+
],
|
706
729
|
},
|
707
|
-
'
|
708
|
-
|
709
|
-
|
710
|
-
|
711
|
-
|
712
|
-
|
713
|
-
|
714
|
-
|
715
|
-
'[type=image]': {
|
716
|
-
'alt': {},
|
717
|
-
'formAction': {},
|
718
|
-
'formEnctype': {},
|
719
|
-
'formMethod': {},
|
720
|
-
'formNoValidate': {},
|
721
|
-
'formTarget': {},
|
722
|
-
'height': {},
|
723
|
-
'src': {},
|
724
|
-
'value': {},
|
725
|
-
'width': {},
|
730
|
+
'selectionDirection': {
|
731
|
+
'rules': [
|
732
|
+
{'when': 'type', 'is': 'text'},
|
733
|
+
{'when': 'type', 'is': 'search'},
|
734
|
+
{'when': 'type', 'is': 'url'},
|
735
|
+
{'when': 'type', 'is': 'tel'},
|
736
|
+
{'when': 'type', 'is': 'password'},
|
737
|
+
],
|
726
738
|
},
|
727
|
-
'
|
728
|
-
'
|
739
|
+
'align': {},
|
740
|
+
'useMap': {},
|
729
741
|
},
|
742
|
+
'rules': [
|
743
|
+
{'when': 'type', 'is': 'hidden'}, {'when': 'type', 'is': 'text'}, {'when': 'type', 'is': 'search'},
|
744
|
+
{'when': 'type', 'is': 'url'}, {'when': 'type', 'is': 'tel'}, {'when': 'type', 'is': 'email'},
|
745
|
+
{'when': 'type', 'is': 'password'}, {'when': 'type', 'is': 'date'}, {'when': 'type', 'is': 'month'},
|
746
|
+
{'when': 'type', 'is': 'week'}, {'when': 'type', 'is': 'time'}, {'when': 'type', 'is': 'datetime-local'},
|
747
|
+
{'when': 'type', 'is': 'number'}, {'when': 'type', 'is': 'range'}, {'when': 'type', 'is': 'color'},
|
748
|
+
{'when': 'type', 'is': 'checkbox'}, {'when': 'type', 'is': 'radio'}, {'when': 'type', 'is': 'file'},
|
749
|
+
{'when': 'type', 'is': 'submit'}, {'when': 'type', 'is': 'image'}, {'when': 'type', 'is': 'reset'},
|
750
|
+
{'when': 'type', 'is': 'button'},
|
751
|
+
],
|
730
752
|
},
|
731
753
|
'HTMLButtonElement': {
|
732
754
|
'inheritance': 'HTMLElement',
|
@@ -1453,7 +1475,7 @@ export const DOMPinnedProperties: DOMPinnedPropertiesDataset = {
|
|
1453
1475
|
},
|
1454
1476
|
'GetRootNodeOptions': {'props': {'composed': {'specs': 2}}},
|
1455
1477
|
'XMLDocument': {'inheritance': 'Document'},
|
1456
|
-
'ElementCreationOptions': {'props': {'is': {'
|
1478
|
+
'ElementCreationOptions': {'props': {'is': {'specs': 2, 'global': true}}},
|
1457
1479
|
'ShadowRootInit': {'props': {'mode': {'specs': 2}, 'delegatesFocus': {'specs': 2}, 'slotAssignment': {'specs': 2}}},
|
1458
1480
|
'NamedNodeMap': {'props': {'length': {'specs': 2}}},
|
1459
1481
|
'Attr': {
|
@@ -1667,7 +1689,7 @@ export const DOMPinnedProperties: DOMPinnedPropertiesDataset = {
|
|
1667
1689
|
'href': {'specs': 16},
|
1668
1690
|
'ownerNode': {'specs': 16},
|
1669
1691
|
'parentStyleSheet': {'specs': 16},
|
1670
|
-
'title': {'
|
1692
|
+
'title': {'specs': 16, 'global': true},
|
1671
1693
|
'media': {'specs': 16},
|
1672
1694
|
'disabled': {'specs': 16},
|
1673
1695
|
},
|
@@ -1689,21 +1711,21 @@ export const DOMPinnedProperties: DOMPinnedPropertiesDataset = {
|
|
1689
1711
|
},
|
1690
1712
|
},
|
1691
1713
|
'CSSStyleRule':
|
1692
|
-
{'inheritance': 'CSSRule', 'props': {'selectorText': {'specs': 16}, 'style': {'
|
1714
|
+
{'inheritance': 'CSSRule', 'props': {'selectorText': {'specs': 16}, 'style': {'specs': 16, 'global': true}}},
|
1693
1715
|
'CSSImportRule':
|
1694
1716
|
{'inheritance': 'CSSRule', 'props': {'href': {'specs': 16}, 'media': {'specs': 16}, 'styleSheet': {'specs': 16}}},
|
1695
1717
|
'CSSGroupingRule': {'inheritance': 'CSSRule', 'props': {'cssRules': {'specs': 16}}},
|
1696
1718
|
'CSSPageRule': {
|
1697
1719
|
'inheritance': 'CSSGroupingRule',
|
1698
|
-
'props': {'selectorText': {'specs': 16}, 'style': {'
|
1720
|
+
'props': {'selectorText': {'specs': 16}, 'style': {'specs': 16, 'global': true}},
|
1699
1721
|
},
|
1700
|
-
'CSSMarginRule': {'inheritance': 'CSSRule', 'props': {'name': {'specs': 16}, 'style': {'
|
1722
|
+
'CSSMarginRule': {'inheritance': 'CSSRule', 'props': {'name': {'specs': 16}, 'style': {'specs': 16, 'global': true}}},
|
1701
1723
|
'CSSNamespaceRule': {'inheritance': 'CSSRule', 'props': {'namespaceURI': {'specs': 16}, 'prefix': {'specs': 16}}},
|
1702
1724
|
'CSSStyleDeclaration': {
|
1703
1725
|
'props':
|
1704
1726
|
{'cssText': {'specs': 16}, 'length': {'specs': 16}, 'parentRule': {'specs': 16}, 'cssFloat': {'specs': 16}},
|
1705
1727
|
},
|
1706
|
-
'ElementCSSInlineStyle': {'props': {'style': {'
|
1728
|
+
'ElementCSSInlineStyle': {'props': {'style': {'specs': 16, 'global': true}}},
|
1707
1729
|
'SVGElement': {'includes': ['ElementCSSInlineStyle']},
|
1708
1730
|
'MathMLElement': {'includes': ['ElementCSSInlineStyle']},
|
1709
1731
|
'ARIAMixin': {
|
@@ -5,10 +5,13 @@
|
|
5
5
|
import type * as Common from '../../core/common/common.js';
|
6
6
|
|
7
7
|
import {NativeFunctions} from './NativeFunctions.js';
|
8
|
+
import * as DOMPinnedProperties from './DOMPinnedProperties.js';
|
8
9
|
|
9
10
|
let javaScriptMetadataInstance: JavaScriptMetadataImpl;
|
10
11
|
|
11
12
|
export class JavaScriptMetadataImpl implements Common.JavaScriptMetaData.JavaScriptMetaData {
|
13
|
+
static readonly domPinnedProperties = DOMPinnedProperties;
|
14
|
+
|
12
15
|
private readonly uniqueFunctions: Map<string, string[][]>;
|
13
16
|
private readonly receiverMethods: Map<string, Map<string, string[][]>>;
|
14
17
|
static instance(opts: {
|
@@ -5475,6 +5475,10 @@ export const NativeFunctions = [
|
|
5475
5475
|
name: 'ScrollTimeline',
|
5476
5476
|
signatures: [['?options']]
|
5477
5477
|
},
|
5478
|
+
{
|
5479
|
+
name: 'ViewTimeline',
|
5480
|
+
signatures: [['?options']]
|
5481
|
+
},
|
5478
5482
|
{
|
5479
5483
|
name: 'AccessibleNodeList',
|
5480
5484
|
signatures: [['?nodes']]
|
@@ -7532,10 +7536,6 @@ export const NativeFunctions = [
|
|
7532
7536
|
name: 'FetchEvent',
|
7533
7537
|
signatures: [['type','eventInitDict']]
|
7534
7538
|
},
|
7535
|
-
{
|
7536
|
-
name: 'addPerformanceEntry',
|
7537
|
-
signatures: [['entry']]
|
7538
|
-
},
|
7539
7539
|
{
|
7540
7540
|
name: 'InstallEvent',
|
7541
7541
|
signatures: [['type','?eventInitDict']]
|
@@ -3,12 +3,15 @@
|
|
3
3
|
// found in the LICENSE file.
|
4
4
|
|
5
5
|
import './NativeFunctions.js';
|
6
|
+
import './DOMPinnedProperties.js';
|
6
7
|
import './JavaScriptMetadata.js';
|
7
8
|
|
9
|
+
import * as DOMPinnedProperties from './DOMPinnedProperties.js';
|
8
10
|
import * as JavaScriptMetadata from './JavaScriptMetadata.js';
|
9
11
|
import * as NativeFunctions from './NativeFunctions.js';
|
10
12
|
|
11
13
|
export {
|
14
|
+
DOMPinnedProperties,
|
12
15
|
JavaScriptMetadata,
|
13
16
|
NativeFunctions,
|
14
17
|
};
|