Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(160)

Side by Side Diff: third_party/WebKit/Source/core/css/CSSProperties.json5

Issue 2904483003: Replace "field_type_path" with "include_paths" in CSSProperties.json5. (Closed)
Patch Set: Rebase Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 { 1 {
2 // This file specifies all the CSS properties we support and the necessary 2 // This file specifies all the CSS properties we support and the necessary
3 // information for our code generation. The various supported arguments 3 // information for our code generation. The various supported arguments
4 // are described below with example usage 4 // are described below with example usage
5 5
6 parameters: { 6 parameters: {
7 // - alias_for: "other-property" 7 // - alias_for: "other-property"
8 // Properties specifying alias_for should be virtually identical to the 8 // Properties specifying alias_for should be virtually identical to the
9 // properties they alias. Minor parsing differences are allowed as long as 9 // properties they alias. Minor parsing differences are allowed as long as
10 // the CSSValues created are of the same format of the aliased property. 10 // the CSSValues created are of the same format of the aliased property.
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 valid_type: "int", 77 valid_type: "int",
78 }, 78 },
79 79
80 // - field_template 80 // - field_template
81 // Affects how the interface to this field is generated. 81 // Affects how the interface to this field is generated.
82 // TODO(sashab, meade): Remove this once TypedOM types are specified for 82 // TODO(sashab, meade): Remove this once TypedOM types are specified for
83 // every property, since this value can be inferred from that. 83 // every property, since this value can be inferred from that.
84 field_template: { 84 field_template: {
85 valid_values: [ 85 valid_values: [
86 // Field is stored as an enum and has a initial/getter/setter/resetter. 86 // Field is stored as an enum and has a initial/getter/setter/resetter.
87 // If include_paths is empty, we would also generate the corresponding
88 // enum definition in ComputedStyleConstants.h.
87 "keyword", 89 "keyword",
88 // Field stores a primitive value like int/bool. The type is specified b y 90 // Field stores a primitive value like int/bool. The type is specified b y
89 // type_name. The interface has a initial/getter/setter/resetter. 91 // type_name. The interface has a initial/getter/setter/resetter.
90 "primitive", 92 "primitive",
91 // Field is stored as a bool, whose default value is false 93 // Field is stored as a bool, whose default value is false
92 // and can only be set to true. Has a initial/getter/setter. 94 // and can only be set to true. Has a initial/getter/setter.
93 "monotonic_flag", 95 "monotonic_flag",
94 // Field has type specified at field_type_path and has a getter/setter. 96 // Field has type specified at field_type_path and has a getter/setter.
95 // Also has a setter taking an rvalue reference. Cannot be packed. 97 // Also has a setter taking an rvalue reference. Cannot be packed.
96 "external", 98 "external",
97 // Only the storage is generated. The interface is handwritten. 99 // Only the storage is generated. The interface is handwritten.
98 "storage_only", 100 "storage_only",
99 ], 101 ],
100 }, 102 },
101 103
102 // - field_type_path: "path/to/Type" 104 // - include_paths: ["path/to/file1.h", "path/to/file2.h"]
103 // For properties that have generated field storage in ComputedStyle, 105 // List of files containing the definitions of types in 'type_name'. Each of
104 // this optional argument will override the field's generated type with 106 // these files will appear as a #include in ComputedStyleBase.h. For
105 // an external one specified at the given path. The type must be defined 107 // example, if the type_name is 'Vector<String>', include_paths should be
106 // in a header file at that path, and have the same name as the file. 108 // ["platform/wtf/Vector.h", "platform/wtf/text/WTFString.h"]
107 // Currently, only enum types are supported, and the enum's only values 109 include_paths: {
108 // must be CamelCase values of the keywords of the property. 110 default: [],
109 field_type_path: {
110 }, 111 },
111 112
112 // - keywords: ["keyword1", "keyword2"] 113 // - keywords: ["keyword1", "keyword2"]
113 // This specifies all valid keyword values for the property. 114 // This specifies all valid keyword values for the property.
114 // TODO(sashab): Once all properties are represented here, delete 115 // TODO(sashab): Once all properties are represented here, delete
115 // CSSValueKeywords.in and use this list instead. 116 // CSSValueKeywords.in and use this list instead.
116 keywords: { 117 keywords: {
117 default: [], 118 default: [],
118 }, 119 },
119 120
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 { 354 {
354 name: "color", 355 name: "color",
355 custom_all: true, 356 custom_all: true,
356 inherited: true, 357 inherited: true,
357 interpolable: true, 358 interpolable: true,
358 priority: "High", 359 priority: "High",
359 }, 360 },
360 { 361 {
361 name: "direction", 362 name: "direction",
362 custom_value: true, 363 custom_value: true,
363 field_type_path: "platform/text/TextDirection", 364 type_name: "TextDirection",
364 inherited: true, 365 inherited: true,
365 default_value: "ltr", 366 default_value: "ltr",
366 field_template: "keyword", 367 field_template: "keyword",
367 keywords: ["ltr", "rtl"], 368 keywords: ["ltr", "rtl"],
368 priority: "High", 369 priority: "High",
370 include_paths: ["platform/text/TextDirection.h"],
369 }, 371 },
370 { 372 {
371 name: "font-family", 373 name: "font-family",
372 api_class: true, 374 api_class: true,
373 api_methods: ["parseSingleValue"], 375 api_methods: ["parseSingleValue"],
374 converter: "ConvertFontFamily", 376 converter: "ConvertFontFamily",
375 is_descriptor: true, 377 is_descriptor: true,
376 font: true, 378 font: true,
377 inherited: true, 379 inherited: true,
378 name_for_methods: "FamilyDescription", 380 name_for_methods: "FamilyDescription",
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 { 520 {
519 name: "-webkit-text-orientation", 521 name: "-webkit-text-orientation",
520 custom_value: true, 522 custom_value: true,
521 inherited: true, 523 inherited: true,
522 priority: "High", 524 priority: "High",
523 type_name: "TextOrientation", 525 type_name: "TextOrientation",
524 }, 526 },
525 { 527 {
526 name: "writing-mode", 528 name: "writing-mode",
527 custom_value: true, 529 custom_value: true,
528 field_type_path: "platform/text/WritingMode",
529 inherited: true, 530 inherited: true,
530 default_value: "horizontal-tb", 531 default_value: "horizontal-tb",
531 field_template: "keyword", 532 field_template: "keyword",
532 keywords: ["horizontal-tb", "vertical-rl", "vertical-lr"], 533 keywords: ["horizontal-tb", "vertical-rl", "vertical-lr"],
533 priority: "High", 534 priority: "High",
534 type_name: "WritingMode", 535 type_name: "WritingMode",
536 include_paths: ["platform/text/WritingMode.h"],
535 }, 537 },
536 { 538 {
537 name: "-webkit-writing-mode", 539 name: "-webkit-writing-mode",
538 custom_value: true, 540 custom_value: true,
539 inherited: true, 541 inherited: true,
540 priority: "High", 542 priority: "High",
541 type_name: "WritingMode", 543 type_name: "WritingMode",
542 }, 544 },
543 { 545 {
544 name: "text-rendering", 546 name: "text-rendering",
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
650 api_methods: ["parseSingleValue"], 652 api_methods: ["parseSingleValue"],
651 custom_inherit: true, 653 custom_inherit: true,
652 custom_value: true, 654 custom_value: true,
653 interpolable: true, 655 interpolable: true,
654 svg: true, 656 svg: true,
655 }, 657 },
656 { 658 {
657 name: "border-bottom-color", 659 name: "border-bottom-color",
658 custom_all: true, 660 custom_all: true,
659 interpolable: true, 661 interpolable: true,
662 type_name: "Color",
660 field_template: "storage_only", 663 field_template: "storage_only",
661 field_type_path: "platform/graphics/Color",
662 default_value: "0", 664 default_value: "0",
663 field_group: "surround", 665 field_group: "surround",
666 include_paths: ["platform/graphics/Color.h"],
664 }, 667 },
665 { 668 {
666 name: "border-bottom-left-radius", 669 name: "border-bottom-left-radius",
667 api_class: "CSSPropertyAPIBorderRadius", 670 api_class: "CSSPropertyAPIBorderRadius",
668 api_methods: ["parseSingleValue"], 671 api_methods: ["parseSingleValue"],
669 converter: "ConvertRadius", 672 converter: "ConvertRadius",
670 interpolable: true, 673 interpolable: true,
671 field_template: "external", 674 field_template: "external",
672 field_type_path: "platform/LengthSize", 675 include_paths: ["platform/LengthSize.h"],
676 type_name: "LengthSize",
673 field_group: "surround", 677 field_group: "surround",
674 default_value: "LengthSize(Length(0, kFixed), Length(0, kFixed))", 678 default_value: "LengthSize(Length(0, kFixed), Length(0, kFixed))",
675 }, 679 },
676 { 680 {
677 name: "border-bottom-right-radius", 681 name: "border-bottom-right-radius",
678 api_class: "CSSPropertyAPIBorderRadius", 682 api_class: "CSSPropertyAPIBorderRadius",
679 api_methods: ["parseSingleValue"], 683 api_methods: ["parseSingleValue"],
680 converter: "ConvertRadius", 684 converter: "ConvertRadius",
681 interpolable: true, 685 interpolable: true,
682 field_template: "external", 686 field_template: "external",
683 field_type_path: "platform/LengthSize", 687 include_paths: ["platform/LengthSize.h"],
688 type_name: "LengthSize",
684 field_group: "surround", 689 field_group: "surround",
685 default_value: "LengthSize(Length(0, kFixed), Length(0, kFixed))", 690 default_value: "LengthSize(Length(0, kFixed), Length(0, kFixed))",
686 }, 691 },
687 { 692 {
688 name: "border-bottom-style", 693 name: "border-bottom-style",
689 type_name: "EBorderStyle", 694 type_name: "EBorderStyle",
690 field_template: "keyword", 695 field_template: "keyword",
691 keywords: ["none", "hidden", "inset", "groove", "outset", "ridge", "dotted ", "dashed", "solid", "double"], 696 keywords: ["none", "hidden", "inset", "groove", "outset", "ridge", "dotted ", "dashed", "solid", "double"],
692 default_value: "none", 697 default_value: "none",
693 typedom_types: ["Image"], 698 typedom_types: ["Image"],
694 field_group: "surround", 699 field_group: "surround",
695 }, 700 },
696 { 701 {
697 name: "border-bottom-width", 702 name: "border-bottom-width",
698 api_class: "CSSPropertyAPIBorderWidth", 703 api_class: "CSSPropertyAPIBorderWidth",
699 converter: "ConvertLineWidth<float>", 704 converter: "ConvertLineWidth<float>",
700 initial: "InitialBorderWidth", 705 initial: "InitialBorderWidth",
701 interpolable: true, 706 interpolable: true,
702 keywords: ["thin", "medium", "thick"], 707 keywords: ["thin", "medium", "thick"],
703 typedom_types: ["Length"], 708 typedom_types: ["Length"],
704 field_template: "storage_only", 709 field_template: "storage_only",
705 field_type_path: "platform/LayoutUnit", 710 include_paths: ["platform/LayoutUnit.h"],
711 type_name: "LayoutUnit",
706 default_value: "LayoutUnit(3)", 712 default_value: "LayoutUnit(3)",
707 field_group: "surround", 713 field_group: "surround",
708 }, 714 },
709 { 715 {
710 name: "border-collapse", 716 name: "border-collapse",
711 independent: true, 717 independent: true,
712 inherited: true, 718 inherited: true,
713 default_value: "separate", 719 default_value: "separate",
714 field_template: "keyword", 720 field_template: "keyword",
715 keywords: ["separate", "collapse"], 721 keywords: ["separate", "collapse"],
(...skipping 28 matching lines...) Expand all
744 name: "border-image-width", 750 name: "border-image-width",
745 api_class: "CSSPropertyAPIBorderImageWidth", 751 api_class: "CSSPropertyAPIBorderImageWidth",
746 custom_all: true, 752 custom_all: true,
747 interpolable: true, 753 interpolable: true,
748 }, 754 },
749 { 755 {
750 name: "border-left-color", 756 name: "border-left-color",
751 custom_all: true, 757 custom_all: true,
752 interpolable: true, 758 interpolable: true,
753 field_template: "storage_only", 759 field_template: "storage_only",
754 field_type_path: "platform/graphics/Color", 760 include_paths: ["platform/graphics/Color.h"],
761 type_name: "Color",
755 default_value: "0", 762 default_value: "0",
756 field_group: "surround", 763 field_group: "surround",
757 }, 764 },
758 { 765 {
759 name: "border-left-style", 766 name: "border-left-style",
760 type_name: "EBorderStyle", 767 type_name: "EBorderStyle",
761 field_template: "keyword", 768 field_template: "keyword",
762 keywords: ["none", "hidden", "inset", "groove", "outset", "ridge", "dotted ", "dashed", "solid", "double"], 769 keywords: ["none", "hidden", "inset", "groove", "outset", "ridge", "dotted ", "dashed", "solid", "double"],
763 default_value: "none", 770 default_value: "none",
764 typedom_types: ["Image"], 771 typedom_types: ["Image"],
765 field_group: "surround", 772 field_group: "surround",
766 }, 773 },
767 { 774 {
768 name: "border-left-width", 775 name: "border-left-width",
769 api_class: "CSSPropertyAPIBorderWidth", 776 api_class: "CSSPropertyAPIBorderWidth",
770 converter: "ConvertLineWidth<float>", 777 converter: "ConvertLineWidth<float>",
771 initial: "InitialBorderWidth", 778 initial: "InitialBorderWidth",
772 interpolable: true, 779 interpolable: true,
773 keywords: ["thin", "medium", "thick"], 780 keywords: ["thin", "medium", "thick"],
774 typedom_types: ["Length"], 781 typedom_types: ["Length"],
775 field_template: "storage_only", 782 field_template: "storage_only",
776 field_type_path: "platform/LayoutUnit", 783 include_paths: ["platform/LayoutUnit.h"],
784 type_name: "LayoutUnit",
777 default_value: "LayoutUnit(3)", 785 default_value: "LayoutUnit(3)",
778 field_group: "surround", 786 field_group: "surround",
779 }, 787 },
780 { 788 {
781 name: "border-right-color", 789 name: "border-right-color",
782 custom_all: true, 790 custom_all: true,
783 interpolable: true, 791 interpolable: true,
784 field_template: "storage_only", 792 field_template: "storage_only",
785 field_type_path: "platform/graphics/Color", 793 include_paths: ["platform/graphics/Color.h"],
794 type_name: "Color",
786 default_value: "0", 795 default_value: "0",
787 field_group: "surround", 796 field_group: "surround",
788 }, 797 },
789 { 798 {
790 name: "border-right-style", 799 name: "border-right-style",
791 type_name: "EBorderStyle", 800 type_name: "EBorderStyle",
792 typedom_types: ["Image"], 801 typedom_types: ["Image"],
793 field_template: "keyword", 802 field_template: "keyword",
794 default_value: "none", 803 default_value: "none",
795 keywords: ["none", "hidden", "inset", "groove", "outset", "ridge", "dotted ", "dashed", "solid", "double"], 804 keywords: ["none", "hidden", "inset", "groove", "outset", "ridge", "dotted ", "dashed", "solid", "double"],
796 field_group: "surround", 805 field_group: "surround",
797 }, 806 },
798 { 807 {
799 name: "border-right-width", 808 name: "border-right-width",
800 api_class: "CSSPropertyAPIBorderWidth", 809 api_class: "CSSPropertyAPIBorderWidth",
801 converter: "ConvertLineWidth<float>", 810 converter: "ConvertLineWidth<float>",
802 initial: "InitialBorderWidth", 811 initial: "InitialBorderWidth",
803 interpolable: true, 812 interpolable: true,
804 keywords: ["thin", "medium", "thick"], 813 keywords: ["thin", "medium", "thick"],
805 typedom_types: ["Length"], 814 typedom_types: ["Length"],
806 field_template: "storage_only", 815 field_template: "storage_only",
807 field_type_path: "platform/LayoutUnit", 816 include_paths: ["platform/LayoutUnit.h"],
817 type_name: "LayoutUnit",
808 default_value: "LayoutUnit(3)", 818 default_value: "LayoutUnit(3)",
809 field_group: "surround", 819 field_group: "surround",
810 }, 820 },
811 { 821 {
812 name: "border-top-color", 822 name: "border-top-color",
813 custom_all: true, 823 custom_all: true,
814 interpolable: true, 824 interpolable: true,
815 field_template: "storage_only", 825 field_template: "storage_only",
816 field_type_path: "platform/graphics/Color", 826 include_paths: ["platform/graphics/Color.h"],
827 type_name: "Color",
817 default_value: "0", 828 default_value: "0",
818 field_group: "surround", 829 field_group: "surround",
819 }, 830 },
820 { 831 {
821 name: "border-top-left-radius", 832 name: "border-top-left-radius",
822 api_class: "CSSPropertyAPIBorderRadius", 833 api_class: "CSSPropertyAPIBorderRadius",
823 api_methods: ["parseSingleValue"], 834 api_methods: ["parseSingleValue"],
824 converter: "ConvertRadius", 835 converter: "ConvertRadius",
825 interpolable: true, 836 interpolable: true,
826 field_template: "external", 837 field_template: "external",
827 field_type_path: "platform/LengthSize", 838 include_paths: ["platform/LengthSize.h"],
839 type_name: "LengthSize",
828 field_group: "surround", 840 field_group: "surround",
829 default_value: "LengthSize(Length(0, kFixed), Length(0, kFixed))", 841 default_value: "LengthSize(Length(0, kFixed), Length(0, kFixed))",
830 }, 842 },
831 { 843 {
832 name: "border-top-right-radius", 844 name: "border-top-right-radius",
833 api_class: "CSSPropertyAPIBorderRadius", 845 api_class: "CSSPropertyAPIBorderRadius",
834 api_methods: ["parseSingleValue"], 846 api_methods: ["parseSingleValue"],
835 converter: "ConvertRadius", 847 converter: "ConvertRadius",
836 interpolable: true, 848 interpolable: true,
837 field_template: "external", 849 field_template: "external",
838 field_type_path: "platform/LengthSize", 850 include_paths: ["platform/LengthSize.h"],
851 type_name: "LengthSize",
839 field_group: "surround", 852 field_group: "surround",
840 default_value: "LengthSize(Length(0, kFixed), Length(0, kFixed))", 853 default_value: "LengthSize(Length(0, kFixed), Length(0, kFixed))",
841 }, 854 },
842 { 855 {
843 name: "border-top-style", 856 name: "border-top-style",
844 type_name: "EBorderStyle", 857 type_name: "EBorderStyle",
845 field_template: "keyword", 858 field_template: "keyword",
846 default_value: "none", 859 default_value: "none",
847 keywords: ["none", "hidden", "inset", "groove", "outset", "ridge", "dotted ", "dashed", "solid", "double"], 860 keywords: ["none", "hidden", "inset", "groove", "outset", "ridge", "dotted ", "dashed", "solid", "double"],
848 typedom_types: ["Image"], 861 typedom_types: ["Image"],
849 field_group: "surround", 862 field_group: "surround",
850 }, 863 },
851 { 864 {
852 name: "border-top-width", 865 name: "border-top-width",
853 api_class: "CSSPropertyAPIBorderWidth", 866 api_class: "CSSPropertyAPIBorderWidth",
854 converter: "ConvertLineWidth<float>", 867 converter: "ConvertLineWidth<float>",
855 initial: "InitialBorderWidth", 868 initial: "InitialBorderWidth",
856 interpolable: true, 869 interpolable: true,
857 keywords: ["thin", "medium", "thick"], 870 keywords: ["thin", "medium", "thick"],
858 supports_percentage: true, 871 supports_percentage: true,
859 typedom_types: ["Length"], 872 typedom_types: ["Length"],
860 field_template: "storage_only", 873 field_template: "storage_only",
861 field_type_path: "platform/LayoutUnit", 874 include_paths: ["platform/LayoutUnit.h"],
875 type_name: "LayoutUnit",
862 default_value: "LayoutUnit(3)", 876 default_value: "LayoutUnit(3)",
863 field_group: "surround", 877 field_group: "surround",
864 }, 878 },
865 { 879 {
866 name: "bottom", 880 name: "bottom",
867 api_class: "CSSPropertyAPIMargin", 881 api_class: "CSSPropertyAPIMargin",
868 api_methods: ["parseSingleValue"], 882 api_methods: ["parseSingleValue"],
869 converter: "ConvertLengthOrAuto", 883 converter: "ConvertLengthOrAuto",
870 interpolable: true, 884 interpolable: true,
871 keywords: ["auto"], 885 keywords: ["auto"],
872 supports_percentage: true, 886 supports_percentage: true,
873 typedom_types: ["Length"], 887 typedom_types: ["Length"],
874 field_template: "external", 888 field_template: "external",
875 field_type_path: "platform/Length", 889 include_paths: ["platform/Length.h"],
890 type_name: "Length",
876 field_group: "surround", 891 field_group: "surround",
877 default_value: "Length()", 892 default_value: "Length()",
878 }, 893 },
879 { 894 {
880 name: "box-shadow", 895 name: "box-shadow",
881 converter: "ConvertShadowList", 896 converter: "ConvertShadowList",
882 interpolable: true, 897 interpolable: true,
883 }, 898 },
884 { 899 {
885 name: "box-sizing", 900 name: "box-sizing",
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
946 keywords: ["none", "left", "right", "both"], 961 keywords: ["none", "left", "right", "both"],
947 }, 962 },
948 { 963 {
949 name: "clip", 964 name: "clip",
950 api_class: true, 965 api_class: true,
951 api_methods: ["parseSingleValue"], 966 api_methods: ["parseSingleValue"],
952 converter: "ConvertClip", 967 converter: "ConvertClip",
953 custom_all: true, 968 custom_all: true,
954 interpolable: true, 969 interpolable: true,
955 field_template: "storage_only", 970 field_template: "storage_only",
956 field_type_path: "platform/LengthBox", 971 include_paths: ["platform/LengthBox.h"],
972 type_name: "LengthBox",
957 default_value: "LengthBox()", 973 default_value: "LengthBox()",
958 field_group: "visual", 974 field_group: "visual",
959 }, 975 },
960 { 976 {
961 name: "clip-path", 977 name: "clip-path",
962 api_class: true, 978 api_class: true,
963 api_methods: ["parseSingleValue"], 979 api_methods: ["parseSingleValue"],
964 converter: "ConvertClipPath", 980 converter: "ConvertClipPath",
965 interpolable: true, 981 interpolable: true,
966 }, 982 },
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
1230 { 1246 {
1231 name: "height", 1247 name: "height",
1232 api_class: "CSSPropertyAPIWidthOrHeight", 1248 api_class: "CSSPropertyAPIWidthOrHeight",
1233 converter: "ConvertLengthSizing", 1249 converter: "ConvertLengthSizing",
1234 is_descriptor: true, 1250 is_descriptor: true,
1235 interpolable: true, 1251 interpolable: true,
1236 keywords: ["auto", "fit-content", "min-content", "max-content"], 1252 keywords: ["auto", "fit-content", "min-content", "max-content"],
1237 supports_percentage: true, 1253 supports_percentage: true,
1238 typedom_types: ["Length"], 1254 typedom_types: ["Length"],
1239 field_template: "external", 1255 field_template: "external",
1240 field_type_path: "platform/Length", 1256 include_paths: ["platform/Length.h"],
1257 type_name: "Length",
1241 field_group: "box", 1258 field_group: "box",
1242 default_value: "Length()", 1259 default_value: "Length()",
1243 }, 1260 },
1244 { 1261 {
1245 name: "hyphens", 1262 name: "hyphens",
1246 inherited: true, 1263 inherited: true,
1247 runtime_flag: "CSSHyphens", 1264 runtime_flag: "CSSHyphens",
1248 type_name: "Hyphens", 1265 type_name: "Hyphens",
1249 }, 1266 },
1250 { 1267 {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
1287 { 1304 {
1288 name: "left", 1305 name: "left",
1289 api_class: "CSSPropertyAPIMargin", 1306 api_class: "CSSPropertyAPIMargin",
1290 api_methods: ["parseSingleValue"], 1307 api_methods: ["parseSingleValue"],
1291 converter: "ConvertLengthOrAuto", 1308 converter: "ConvertLengthOrAuto",
1292 interpolable: true, 1309 interpolable: true,
1293 keywords: ["auto"], 1310 keywords: ["auto"],
1294 supports_percentage: true, 1311 supports_percentage: true,
1295 typedom_types: ["Length"], 1312 typedom_types: ["Length"],
1296 field_template: "external", 1313 field_template: "external",
1297 field_type_path: "platform/Length", 1314 include_paths: ["platform/Length.h"],
1315 type_name: "Length",
1298 field_group: "surround", 1316 field_group: "surround",
1299 default_value: "Length()", 1317 default_value: "Length()",
1300 }, 1318 },
1301 { 1319 {
1302 name: "letter-spacing", 1320 name: "letter-spacing",
1303 api_class: "CSSPropertyAPILetterAndWordSpacing", 1321 api_class: "CSSPropertyAPILetterAndWordSpacing",
1304 api_methods: ["parseSingleValue"], 1322 api_methods: ["parseSingleValue"],
1305 converter: "ConvertSpacing", 1323 converter: "ConvertSpacing",
1306 inherited: true, 1324 inherited: true,
1307 initial: "InitialLetterWordSpacing", 1325 initial: "InitialLetterWordSpacing",
1308 interpolable: true, 1326 interpolable: true,
1309 }, 1327 },
1310 { 1328 {
1311 name: "lighting-color", 1329 name: "lighting-color",
1312 api_class: "CSSPropertyAPIColor", 1330 api_class: "CSSPropertyAPIColor",
1313 api_methods: ["parseSingleValue"], 1331 api_methods: ["parseSingleValue"],
1314 converter: "ConvertColor", 1332 converter: "ConvertColor",
1315 interpolable: true, 1333 interpolable: true,
1316 svg: true, 1334 svg: true,
1317 }, 1335 },
1318 { 1336 {
1319 name: "line-height", 1337 name: "line-height",
1320 api_class: true, 1338 api_class: true,
1321 api_methods: ["parseSingleValue"], 1339 api_methods: ["parseSingleValue"],
1322 converter: "ConvertLineHeight", 1340 converter: "ConvertLineHeight",
1323 getter: "SpecifiedLineHeight", 1341 getter: "SpecifiedLineHeight",
1324 inherited: true, 1342 inherited: true,
1325 interpolable: true, 1343 interpolable: true,
1326 field_template: "storage_only", 1344 field_template: "storage_only",
1327 field_type_path: "platform/Length", 1345 include_paths: ["platform/Length.h"],
1346 type_name: "Length",
1328 default_value: "Length(-100.0, kPercent)", 1347 default_value: "Length(-100.0, kPercent)",
1329 field_group: "inherited", 1348 field_group: "inherited",
1330 }, 1349 },
1331 { 1350 {
1332 name: "line-height-step", 1351 name: "line-height-step",
1333 api_class: true, 1352 api_class: true,
1334 api_methods: ["parseSingleValue"], 1353 api_methods: ["parseSingleValue"],
1335 converter: "ConvertComputedLength<uint8_t>", 1354 converter: "ConvertComputedLength<uint8_t>",
1336 inherited: true, 1355 inherited: true,
1337 runtime_flag: "CSSSnapSize", 1356 runtime_flag: "CSSSnapSize",
(...skipping 24 matching lines...) Expand all
1362 "disc", "circle", "square", "decimal", "decimal-leading-zero", "arabic-i ndic", "bengali", "cambodian", "khmer", "devanagari", "gujarati", "gurmukhi", "k annada", "lao", "malayalam", "mongolian", "myanmar", "oriya", "persian", "urdu", "telugu", "tibetan", "thai", "lower-roman", "upper-roman", "lower-greek", "lowe r-alpha", "lower-latin", "upper-alpha", "upper-latin", "cjk-earthly-branch", "cj k-heavenly-stem", "ethiopic-halehame", "ethiopic-halehame-am", "ethiopic-haleham e-ti-er", "ethiopic-halehame-ti-et", "hangul", "hangul-consonant", "korean-hangu l-formal", "korean-hanja-formal", "korean-hanja-informal", "hebrew", "armenian", "lower-armenian", "upper-armenian", "georgian", "cjk-ideographic", "simp-chines e-formal", "simp-chinese-informal", "trad-chinese-formal", "trad-chinese-informa l", "hiragana", "katakana", "hiragana-iroha", "katakana-iroha", "none", 1381 "disc", "circle", "square", "decimal", "decimal-leading-zero", "arabic-i ndic", "bengali", "cambodian", "khmer", "devanagari", "gujarati", "gurmukhi", "k annada", "lao", "malayalam", "mongolian", "myanmar", "oriya", "persian", "urdu", "telugu", "tibetan", "thai", "lower-roman", "upper-roman", "lower-greek", "lowe r-alpha", "lower-latin", "upper-alpha", "upper-latin", "cjk-earthly-branch", "cj k-heavenly-stem", "ethiopic-halehame", "ethiopic-halehame-am", "ethiopic-haleham e-ti-er", "ethiopic-halehame-ti-et", "hangul", "hangul-consonant", "korean-hangu l-formal", "korean-hanja-formal", "korean-hanja-informal", "hebrew", "armenian", "lower-armenian", "upper-armenian", "georgian", "cjk-ideographic", "simp-chines e-formal", "simp-chinese-informal", "trad-chinese-formal", "trad-chinese-informa l", "hiragana", "katakana", "hiragana-iroha", "katakana-iroha", "none",
1363 ], 1382 ],
1364 }, 1383 },
1365 { 1384 {
1366 name: "margin-bottom", 1385 name: "margin-bottom",
1367 api_class: "CSSPropertyAPIMargin", 1386 api_class: "CSSPropertyAPIMargin",
1368 api_methods: ["parseSingleValue"], 1387 api_methods: ["parseSingleValue"],
1369 converter: "ConvertQuirkyLength", 1388 converter: "ConvertQuirkyLength",
1370 interpolable: true, 1389 interpolable: true,
1371 field_template: "external", 1390 field_template: "external",
1372 field_type_path: "platform/Length", 1391 include_paths: ["platform/Length.h"],
1392 type_name: "Length",
1373 field_group: "surround", 1393 field_group: "surround",
1374 default_value: "Length(kFixed)", 1394 default_value: "Length(kFixed)",
1375 }, 1395 },
1376 { 1396 {
1377 name: "margin-left", 1397 name: "margin-left",
1378 api_class: "CSSPropertyAPIMargin", 1398 api_class: "CSSPropertyAPIMargin",
1379 api_methods: ["parseSingleValue"], 1399 api_methods: ["parseSingleValue"],
1380 converter: "ConvertQuirkyLength", 1400 converter: "ConvertQuirkyLength",
1381 interpolable: true, 1401 interpolable: true,
1382 field_template: "external", 1402 field_template: "external",
1383 field_type_path: "platform/Length", 1403 include_paths: ["platform/Length.h"],
1404 type_name: "Length",
1384 field_group: "surround", 1405 field_group: "surround",
1385 default_value: "Length(kFixed)", 1406 default_value: "Length(kFixed)",
1386 }, 1407 },
1387 { 1408 {
1388 name: "margin-right", 1409 name: "margin-right",
1389 api_class: "CSSPropertyAPIMargin", 1410 api_class: "CSSPropertyAPIMargin",
1390 api_methods: ["parseSingleValue"], 1411 api_methods: ["parseSingleValue"],
1391 converter: "ConvertQuirkyLength", 1412 converter: "ConvertQuirkyLength",
1392 interpolable: true, 1413 interpolable: true,
1393 field_template: "external", 1414 field_template: "external",
1394 field_type_path: "platform/Length", 1415 include_paths: ["platform/Length.h"],
1416 type_name: "Length",
1395 field_group: "surround", 1417 field_group: "surround",
1396 default_value: "Length(kFixed)", 1418 default_value: "Length(kFixed)",
1397 }, 1419 },
1398 { 1420 {
1399 name: "margin-top", 1421 name: "margin-top",
1400 api_class: "CSSPropertyAPIMargin", 1422 api_class: "CSSPropertyAPIMargin",
1401 api_methods: ["parseSingleValue"], 1423 api_methods: ["parseSingleValue"],
1402 converter: "ConvertQuirkyLength", 1424 converter: "ConvertQuirkyLength",
1403 interpolable: true, 1425 interpolable: true,
1404 field_template: "external", 1426 field_template: "external",
1405 field_type_path: "platform/Length", 1427 include_paths: ["platform/Length.h"],
1428 type_name: "Length",
1406 field_group: "surround", 1429 field_group: "surround",
1407 default_value: "Length(kFixed)", 1430 default_value: "Length(kFixed)",
1408 }, 1431 },
1409 { 1432 {
1410 name: "marker-end", 1433 name: "marker-end",
1411 api_class: "CSSPropertyAPIMarker", 1434 api_class: "CSSPropertyAPIMarker",
1412 converter: "ConvertFragmentIdentifier", 1435 converter: "ConvertFragmentIdentifier",
1413 inherited: true, 1436 inherited: true,
1414 name_for_methods: "MarkerEndResource", 1437 name_for_methods: "MarkerEndResource",
1415 svg: true, 1438 svg: true,
(...skipping 29 matching lines...) Expand all
1445 { 1468 {
1446 name: "mask-type", 1469 name: "mask-type",
1447 svg: true, 1470 svg: true,
1448 }, 1471 },
1449 { 1472 {
1450 name: "max-height", 1473 name: "max-height",
1451 converter: "ConvertLengthMaxSizing", 1474 converter: "ConvertLengthMaxSizing",
1452 is_descriptor: true, 1475 is_descriptor: true,
1453 interpolable: true, 1476 interpolable: true,
1454 field_template: "external", 1477 field_template: "external",
1455 field_type_path: "platform/Length", 1478 include_paths: ["platform/Length.h"],
1479 type_name: "Length",
1456 field_group: "box", 1480 field_group: "box",
1457 default_value: "Length(kMaxSizeNone)", 1481 default_value: "Length(kMaxSizeNone)",
1458 }, 1482 },
1459 { 1483 {
1460 name: "max-width", 1484 name: "max-width",
1461 converter: "ConvertLengthMaxSizing", 1485 converter: "ConvertLengthMaxSizing",
1462 is_descriptor: true, 1486 is_descriptor: true,
1463 interpolable: true, 1487 interpolable: true,
1464 field_template: "external", 1488 field_template: "external",
1465 field_type_path: "platform/Length", 1489 include_paths: ["platform/Length.h"],
1490 type_name: "Length",
1466 field_group: "box", 1491 field_group: "box",
1467 default_value: "Length(kMaxSizeNone)", 1492 default_value: "Length(kMaxSizeNone)",
1468 }, 1493 },
1469 { 1494 {
1470 name: "min-height", 1495 name: "min-height",
1471 api_class: "CSSPropertyAPIWidthOrHeight", 1496 api_class: "CSSPropertyAPIWidthOrHeight",
1472 converter: "ConvertLengthSizing", 1497 converter: "ConvertLengthSizing",
1473 is_descriptor: true, 1498 is_descriptor: true,
1474 interpolable: true, 1499 interpolable: true,
1475 field_template: "external", 1500 field_template: "external",
1476 field_type_path: "platform/Length", 1501 include_paths: ["platform/Length.h"],
1502 type_name: "Length",
1477 field_group: "box", 1503 field_group: "box",
1478 default_value: "Length()", 1504 default_value: "Length()",
1479 }, 1505 },
1480 { 1506 {
1481 name: "min-width", 1507 name: "min-width",
1482 api_class: "CSSPropertyAPIWidthOrHeight", 1508 api_class: "CSSPropertyAPIWidthOrHeight",
1483 converter: "ConvertLengthSizing", 1509 converter: "ConvertLengthSizing",
1484 is_descriptor: true, 1510 is_descriptor: true,
1485 interpolable: true, 1511 interpolable: true,
1486 field_template: "external", 1512 field_template: "external",
1487 field_type_path: "platform/Length", 1513 include_paths: ["platform/Length.h"],
1514 type_name: "Length",
1488 field_group: "box", 1515 field_group: "box",
1489 default_value: "Length()", 1516 default_value: "Length()",
1490 }, 1517 },
1491 { 1518 {
1492 name: "mix-blend-mode", 1519 name: "mix-blend-mode",
1493 name_for_methods: "BlendMode", 1520 name_for_methods: "BlendMode",
1494 type_name: "blink::WebBlendMode", 1521 type_name: "blink::WebBlendMode",
1495 }, 1522 },
1496 { 1523 {
1497 name: "object-fit", 1524 name: "object-fit",
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
1615 ], 1642 ],
1616 type_name: "EOverflow", 1643 type_name: "EOverflow",
1617 }, 1644 },
1618 { 1645 {
1619 name: "padding-bottom", 1646 name: "padding-bottom",
1620 api_class: "CSSPropertyAPIPadding", 1647 api_class: "CSSPropertyAPIPadding",
1621 api_methods: ["parseSingleValue"], 1648 api_methods: ["parseSingleValue"],
1622 converter: "ConvertLength", 1649 converter: "ConvertLength",
1623 interpolable: true, 1650 interpolable: true,
1624 field_template: "external", 1651 field_template: "external",
1625 field_type_path: "platform/Length", 1652 include_paths: ["platform/Length.h"],
1653 type_name: "Length",
1626 field_group: "surround", 1654 field_group: "surround",
1627 default_value: "Length(kFixed)", 1655 default_value: "Length(kFixed)",
1628 }, 1656 },
1629 { 1657 {
1630 name: "padding-left", 1658 name: "padding-left",
1631 api_class: "CSSPropertyAPIPadding", 1659 api_class: "CSSPropertyAPIPadding",
1632 api_methods: ["parseSingleValue"], 1660 api_methods: ["parseSingleValue"],
1633 converter: "ConvertLength", 1661 converter: "ConvertLength",
1634 interpolable: true, 1662 interpolable: true,
1635 field_template: "external", 1663 field_template: "external",
1636 field_type_path: "platform/Length", 1664 include_paths: ["platform/Length.h"],
1665 type_name: "Length",
1637 field_group: "surround", 1666 field_group: "surround",
1638 default_value: "Length(kFixed)", 1667 default_value: "Length(kFixed)",
1639 }, 1668 },
1640 { 1669 {
1641 name: "padding-right", 1670 name: "padding-right",
1642 api_class: "CSSPropertyAPIPadding", 1671 api_class: "CSSPropertyAPIPadding",
1643 api_methods: ["parseSingleValue"], 1672 api_methods: ["parseSingleValue"],
1644 converter: "ConvertLength", 1673 converter: "ConvertLength",
1645 interpolable: true, 1674 interpolable: true,
1646 field_template: "external", 1675 field_template: "external",
1647 field_type_path: "platform/Length", 1676 include_paths: ["platform/Length.h"],
1677 type_name: "Length",
1648 field_group: "surround", 1678 field_group: "surround",
1649 default_value: "Length(kFixed)", 1679 default_value: "Length(kFixed)",
1650 }, 1680 },
1651 { 1681 {
1652 name: "padding-top", 1682 name: "padding-top",
1653 api_class: "CSSPropertyAPIPadding", 1683 api_class: "CSSPropertyAPIPadding",
1654 api_methods: ["parseSingleValue"], 1684 api_methods: ["parseSingleValue"],
1655 converter: "ConvertLength", 1685 converter: "ConvertLength",
1656 interpolable: true, 1686 interpolable: true,
1657 field_template: "external", 1687 field_template: "external",
1658 field_type_path: "platform/Length", 1688 include_paths: ["platform/Length.h"],
1689 type_name: "Length",
1659 field_group: "surround", 1690 field_group: "surround",
1660 default_value: "Length(kFixed)", 1691 default_value: "Length(kFixed)",
1661 }, 1692 },
1662 { 1693 {
1663 name: "paint-order", 1694 name: "paint-order",
1664 api_class: true, 1695 api_class: true,
1665 api_methods: ["parseSingleValue"], 1696 api_methods: ["parseSingleValue"],
1666 converter: "ConvertPaintOrder", 1697 converter: "ConvertPaintOrder",
1667 inherited: true, 1698 inherited: true,
1668 svg: true, 1699 svg: true,
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
1712 { 1743 {
1713 name: "right", 1744 name: "right",
1714 api_class: "CSSPropertyAPIMargin", 1745 api_class: "CSSPropertyAPIMargin",
1715 api_methods: ["parseSingleValue"], 1746 api_methods: ["parseSingleValue"],
1716 converter: "ConvertLengthOrAuto", 1747 converter: "ConvertLengthOrAuto",
1717 interpolable: true, 1748 interpolable: true,
1718 keywords: ["auto"], 1749 keywords: ["auto"],
1719 supports_percentage: true, 1750 supports_percentage: true,
1720 typedom_types: ["Length"], 1751 typedom_types: ["Length"],
1721 field_template: "external", 1752 field_template: "external",
1722 field_type_path: "platform/Length", 1753 include_paths: ["platform/Length.h"],
1754 type_name: "Length",
1723 field_group: "surround", 1755 field_group: "surround",
1724 default_value: "Length()", 1756 default_value: "Length()",
1725 }, 1757 },
1726 { 1758 {
1727 name: "r", 1759 name: "r",
1728 api_class: "CSSPropertyAPIStrokeOrLength", 1760 api_class: "CSSPropertyAPIStrokeOrLength",
1729 converter: "ConvertLength", 1761 converter: "ConvertLength",
1730 interpolable: true, 1762 interpolable: true,
1731 svg: true, 1763 svg: true,
1732 }, 1764 },
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
2033 { 2065 {
2034 name: "top", 2066 name: "top",
2035 api_class: "CSSPropertyAPIMargin", 2067 api_class: "CSSPropertyAPIMargin",
2036 api_methods: ["parseSingleValue"], 2068 api_methods: ["parseSingleValue"],
2037 converter: "ConvertLengthOrAuto", 2069 converter: "ConvertLengthOrAuto",
2038 interpolable: true, 2070 interpolable: true,
2039 keywords: ["auto"], 2071 keywords: ["auto"],
2040 supports_percentage: true, 2072 supports_percentage: true,
2041 typedom_types: ["Length"], 2073 typedom_types: ["Length"],
2042 field_template: "external", 2074 field_template: "external",
2043 field_type_path: "platform/Length", 2075 include_paths: ["platform/Length.h"],
2076 type_name: "Length",
2044 field_group: "surround", 2077 field_group: "surround",
2045 default_value: "Length()", 2078 default_value: "Length()",
2046 }, 2079 },
2047 { 2080 {
2048 name: "touch-action", 2081 name: "touch-action",
2049 api_class: true, 2082 api_class: true,
2050 api_methods: ["parseSingleValue"], 2083 api_methods: ["parseSingleValue"],
2051 converter: "ConvertFlags<TouchAction>", 2084 converter: "ConvertFlags<TouchAction>",
2052 type_name: "TouchAction", 2085 type_name: "TouchAction",
2053 }, 2086 },
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
2098 { 2131 {
2099 name: "scale", 2132 name: "scale",
2100 api_class: true, 2133 api_class: true,
2101 api_methods: ["parseSingleValue"], 2134 api_methods: ["parseSingleValue"],
2102 converter: "ConvertScale", 2135 converter: "ConvertScale",
2103 interpolable: true, 2136 interpolable: true,
2104 runtime_flag: "CSSIndependentTransformProperties", 2137 runtime_flag: "CSSIndependentTransformProperties",
2105 }, 2138 },
2106 { 2139 {
2107 name: "unicode-bidi", 2140 name: "unicode-bidi",
2108 field_type_path: "platform/text/UnicodeBidi", 2141 include_paths: ["platform/text/UnicodeBidi.h"],
2109 default_value: "normal", 2142 default_value: "normal",
2110 field_template: "keyword", 2143 field_template: "keyword",
2111 keywords: [ 2144 keywords: [
2112 "normal", "embed", "bidi-override", "isolate", "plaintext", "isolate-ove rride", 2145 "normal", "embed", "bidi-override", "isolate", "plaintext", "isolate-ove rride",
2113 ], 2146 ],
2114 type_name: "UnicodeBidi", 2147 type_name: "UnicodeBidi",
2115 }, 2148 },
2116 { 2149 {
2117 name: "vector-effect", 2150 name: "vector-effect",
2118 svg: true, 2151 svg: true,
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
2542 { 2575 {
2543 name: "width", 2576 name: "width",
2544 api_class: "CSSPropertyAPIWidthOrHeight", 2577 api_class: "CSSPropertyAPIWidthOrHeight",
2545 converter: "ConvertLengthSizing", 2578 converter: "ConvertLengthSizing",
2546 is_descriptor: true, 2579 is_descriptor: true,
2547 interpolable: true, 2580 interpolable: true,
2548 keywords: ["auto", "fit-content", "min-content", "max-content"], 2581 keywords: ["auto", "fit-content", "min-content", "max-content"],
2549 supports_percentage: true, 2582 supports_percentage: true,
2550 typedom_types: ["Length"], 2583 typedom_types: ["Length"],
2551 field_template: "external", 2584 field_template: "external",
2552 field_type_path: "platform/Length", 2585 include_paths: ["platform/Length.h"],
2586 type_name: "Length",
2553 field_group: "box", 2587 field_group: "box",
2554 default_value: "Length()" 2588 default_value: "Length()"
2555 }, 2589 },
2556 { 2590 {
2557 name: "will-change", 2591 name: "will-change",
2558 api_class: true, 2592 api_class: true,
2559 api_methods: ["parseSingleValue"], 2593 api_methods: ["parseSingleValue"],
2560 custom_all: true, 2594 custom_all: true,
2561 }, 2595 },
2562 { 2596 {
(...skipping 776 matching lines...) Expand 10 before | Expand all | Expand 10 after
3339 { 3373 {
3340 name: "-webkit-transition-timing-function", 3374 name: "-webkit-transition-timing-function",
3341 alias_for: "transition-timing-function", 3375 alias_for: "transition-timing-function",
3342 }, 3376 },
3343 { 3377 {
3344 name: "-webkit-user-select", 3378 name: "-webkit-user-select",
3345 alias_for: "user-select", 3379 alias_for: "user-select",
3346 }, 3380 },
3347 ], 3381 ],
3348 } 3382 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698