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

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

Issue 2867883003: [CSS Typed OM] Delete obsolete number and length classes from Typed OM (Closed)
Patch Set: rebase Created 3 years, 6 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 693 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 typedom_types: ["Image"], 704 typedom_types: ["Image"],
705 field_group: "surround", 705 field_group: "surround",
706 }, 706 },
707 { 707 {
708 name: "border-bottom-width", 708 name: "border-bottom-width",
709 api_class: "CSSPropertyAPIBorderWidth", 709 api_class: "CSSPropertyAPIBorderWidth",
710 converter: "ConvertLineWidth<float>", 710 converter: "ConvertLineWidth<float>",
711 initial: "InitialBorderWidth", 711 initial: "InitialBorderWidth",
712 interpolable: true, 712 interpolable: true,
713 keywords: ["thin", "medium", "thick"], 713 keywords: ["thin", "medium", "thick"],
714 typedom_types: ["Length"],
715 field_template: "storage_only", 714 field_template: "storage_only",
716 field_type_path: "platform/LayoutUnit", 715 field_type_path: "platform/LayoutUnit",
717 default_value: "LayoutUnit(3)", 716 default_value: "LayoutUnit(3)",
718 field_group: "surround", 717 field_group: "surround",
719 }, 718 },
720 { 719 {
721 name: "border-collapse", 720 name: "border-collapse",
722 independent: true, 721 independent: true,
723 inherited: true, 722 inherited: true,
724 default_value: "separate", 723 default_value: "separate",
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
775 typedom_types: ["Image"], 774 typedom_types: ["Image"],
776 field_group: "surround", 775 field_group: "surround",
777 }, 776 },
778 { 777 {
779 name: "border-left-width", 778 name: "border-left-width",
780 api_class: "CSSPropertyAPIBorderWidth", 779 api_class: "CSSPropertyAPIBorderWidth",
781 converter: "ConvertLineWidth<float>", 780 converter: "ConvertLineWidth<float>",
782 initial: "InitialBorderWidth", 781 initial: "InitialBorderWidth",
783 interpolable: true, 782 interpolable: true,
784 keywords: ["thin", "medium", "thick"], 783 keywords: ["thin", "medium", "thick"],
785 typedom_types: ["Length"],
786 field_template: "storage_only", 784 field_template: "storage_only",
787 field_type_path: "platform/LayoutUnit", 785 field_type_path: "platform/LayoutUnit",
788 default_value: "LayoutUnit(3)", 786 default_value: "LayoutUnit(3)",
789 field_group: "surround", 787 field_group: "surround",
790 }, 788 },
791 { 789 {
792 name: "border-right-color", 790 name: "border-right-color",
793 custom_all: true, 791 custom_all: true,
794 interpolable: true, 792 interpolable: true,
795 field_template: "storage_only", 793 field_template: "storage_only",
(...skipping 10 matching lines...) Expand all
806 keywords: ["none", "hidden", "inset", "groove", "outset", "ridge", "dotted ", "dashed", "solid", "double"], 804 keywords: ["none", "hidden", "inset", "groove", "outset", "ridge", "dotted ", "dashed", "solid", "double"],
807 field_group: "surround", 805 field_group: "surround",
808 }, 806 },
809 { 807 {
810 name: "border-right-width", 808 name: "border-right-width",
811 api_class: "CSSPropertyAPIBorderWidth", 809 api_class: "CSSPropertyAPIBorderWidth",
812 converter: "ConvertLineWidth<float>", 810 converter: "ConvertLineWidth<float>",
813 initial: "InitialBorderWidth", 811 initial: "InitialBorderWidth",
814 interpolable: true, 812 interpolable: true,
815 keywords: ["thin", "medium", "thick"], 813 keywords: ["thin", "medium", "thick"],
816 typedom_types: ["Length"],
817 field_template: "storage_only", 814 field_template: "storage_only",
818 field_type_path: "platform/LayoutUnit", 815 field_type_path: "platform/LayoutUnit",
819 default_value: "LayoutUnit(3)", 816 default_value: "LayoutUnit(3)",
820 field_group: "surround", 817 field_group: "surround",
821 }, 818 },
822 { 819 {
823 name: "border-top-color", 820 name: "border-top-color",
824 custom_all: true, 821 custom_all: true,
825 interpolable: true, 822 interpolable: true,
826 field_template: "storage_only", 823 field_template: "storage_only",
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
860 field_group: "surround", 857 field_group: "surround",
861 }, 858 },
862 { 859 {
863 name: "border-top-width", 860 name: "border-top-width",
864 api_class: "CSSPropertyAPIBorderWidth", 861 api_class: "CSSPropertyAPIBorderWidth",
865 converter: "ConvertLineWidth<float>", 862 converter: "ConvertLineWidth<float>",
866 initial: "InitialBorderWidth", 863 initial: "InitialBorderWidth",
867 interpolable: true, 864 interpolable: true,
868 keywords: ["thin", "medium", "thick"], 865 keywords: ["thin", "medium", "thick"],
869 supports_percentage: true, 866 supports_percentage: true,
870 typedom_types: ["Length"],
871 field_template: "storage_only", 867 field_template: "storage_only",
872 field_type_path: "platform/LayoutUnit", 868 field_type_path: "platform/LayoutUnit",
873 default_value: "LayoutUnit(3)", 869 default_value: "LayoutUnit(3)",
874 field_group: "surround", 870 field_group: "surround",
875 }, 871 },
876 { 872 {
877 name: "bottom", 873 name: "bottom",
878 api_class: "CSSPropertyAPIMargin", 874 api_class: "CSSPropertyAPIMargin",
879 api_methods: ["parseSingleValue"], 875 api_methods: ["parseSingleValue"],
880 converter: "ConvertLengthOrAuto", 876 converter: "ConvertLengthOrAuto",
881 interpolable: true, 877 interpolable: true,
882 keywords: ["auto"], 878 keywords: ["auto"],
883 supports_percentage: true, 879 supports_percentage: true,
884 typedom_types: ["Length"],
885 field_template: "external", 880 field_template: "external",
886 field_type_path: "platform/Length", 881 field_type_path: "platform/Length",
887 field_group: "surround", 882 field_group: "surround",
888 default_value: "Length()", 883 default_value: "Length()",
889 }, 884 },
890 { 885 {
891 name: "box-shadow", 886 name: "box-shadow",
892 converter: "ConvertShadowList", 887 converter: "ConvertShadowList",
893 interpolable: true, 888 interpolable: true,
894 }, 889 },
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
1243 runtime_flag: "CSSGridLayout", 1238 runtime_flag: "CSSGridLayout",
1244 }, 1239 },
1245 { 1240 {
1246 name: "height", 1241 name: "height",
1247 api_class: "CSSPropertyAPIWidthOrHeight", 1242 api_class: "CSSPropertyAPIWidthOrHeight",
1248 converter: "ConvertLengthSizing", 1243 converter: "ConvertLengthSizing",
1249 is_descriptor: true, 1244 is_descriptor: true,
1250 interpolable: true, 1245 interpolable: true,
1251 keywords: ["auto", "fit-content", "min-content", "max-content"], 1246 keywords: ["auto", "fit-content", "min-content", "max-content"],
1252 supports_percentage: true, 1247 supports_percentage: true,
1253 typedom_types: ["Length"],
1254 field_template: "external", 1248 field_template: "external",
1255 field_type_path: "platform/Length", 1249 field_type_path: "platform/Length",
1256 field_group: "box", 1250 field_group: "box",
1257 default_value: "Length()", 1251 default_value: "Length()",
1258 }, 1252 },
1259 { 1253 {
1260 name: "hyphens", 1254 name: "hyphens",
1261 inherited: true, 1255 inherited: true,
1262 runtime_flag: "CSSHyphens", 1256 runtime_flag: "CSSHyphens",
1263 field_template: "storage_only", 1257 field_template: "storage_only",
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
1309 runtime_flag: "CSSGridLayout", 1303 runtime_flag: "CSSGridLayout",
1310 }, 1304 },
1311 { 1305 {
1312 name: "left", 1306 name: "left",
1313 api_class: "CSSPropertyAPIMargin", 1307 api_class: "CSSPropertyAPIMargin",
1314 api_methods: ["parseSingleValue"], 1308 api_methods: ["parseSingleValue"],
1315 converter: "ConvertLengthOrAuto", 1309 converter: "ConvertLengthOrAuto",
1316 interpolable: true, 1310 interpolable: true,
1317 keywords: ["auto"], 1311 keywords: ["auto"],
1318 supports_percentage: true, 1312 supports_percentage: true,
1319 typedom_types: ["Length"],
1320 field_template: "external", 1313 field_template: "external",
1321 field_type_path: "platform/Length", 1314 field_type_path: "platform/Length",
1322 field_group: "surround", 1315 field_group: "surround",
1323 default_value: "Length()", 1316 default_value: "Length()",
1324 }, 1317 },
1325 { 1318 {
1326 name: "letter-spacing", 1319 name: "letter-spacing",
1327 api_class: "CSSPropertyAPILetterAndWordSpacing", 1320 api_class: "CSSPropertyAPILetterAndWordSpacing",
1328 api_methods: ["parseSingleValue"], 1321 api_methods: ["parseSingleValue"],
1329 converter: "ConvertSpacing", 1322 converter: "ConvertSpacing",
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
1756 custom_value: true, 1749 custom_value: true,
1757 }, 1750 },
1758 { 1751 {
1759 name: "right", 1752 name: "right",
1760 api_class: "CSSPropertyAPIMargin", 1753 api_class: "CSSPropertyAPIMargin",
1761 api_methods: ["parseSingleValue"], 1754 api_methods: ["parseSingleValue"],
1762 converter: "ConvertLengthOrAuto", 1755 converter: "ConvertLengthOrAuto",
1763 interpolable: true, 1756 interpolable: true,
1764 keywords: ["auto"], 1757 keywords: ["auto"],
1765 supports_percentage: true, 1758 supports_percentage: true,
1766 typedom_types: ["Length"],
1767 field_template: "external", 1759 field_template: "external",
1768 field_type_path: "platform/Length", 1760 field_type_path: "platform/Length",
1769 field_group: "surround", 1761 field_group: "surround",
1770 default_value: "Length()", 1762 default_value: "Length()",
1771 }, 1763 },
1772 { 1764 {
1773 name: "r", 1765 name: "r",
1774 api_class: "CSSPropertyAPIStrokeOrLength", 1766 api_class: "CSSPropertyAPIStrokeOrLength",
1775 converter: "ConvertLength", 1767 converter: "ConvertLength",
1776 interpolable: true, 1768 interpolable: true,
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
2121 field_group: "rare-inherited", 2113 field_group: "rare-inherited",
2122 }, 2114 },
2123 { 2115 {
2124 name: "top", 2116 name: "top",
2125 api_class: "CSSPropertyAPIMargin", 2117 api_class: "CSSPropertyAPIMargin",
2126 api_methods: ["parseSingleValue"], 2118 api_methods: ["parseSingleValue"],
2127 converter: "ConvertLengthOrAuto", 2119 converter: "ConvertLengthOrAuto",
2128 interpolable: true, 2120 interpolable: true,
2129 keywords: ["auto"], 2121 keywords: ["auto"],
2130 supports_percentage: true, 2122 supports_percentage: true,
2131 typedom_types: ["Length"],
2132 field_template: "external", 2123 field_template: "external",
2133 field_type_path: "platform/Length", 2124 field_type_path: "platform/Length",
2134 field_group: "surround", 2125 field_group: "surround",
2135 default_value: "Length()", 2126 default_value: "Length()",
2136 }, 2127 },
2137 { 2128 {
2138 name: "touch-action", 2129 name: "touch-action",
2139 api_class: true, 2130 api_class: true,
2140 api_methods: ["parseSingleValue"], 2131 api_methods: ["parseSingleValue"],
2141 converter: "ConvertFlags<TouchAction>", 2132 converter: "ConvertFlags<TouchAction>",
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after
2684 field_group: "rare-inherited", 2675 field_group: "rare-inherited",
2685 }, 2676 },
2686 { 2677 {
2687 name: "width", 2678 name: "width",
2688 api_class: "CSSPropertyAPIWidthOrHeight", 2679 api_class: "CSSPropertyAPIWidthOrHeight",
2689 converter: "ConvertLengthSizing", 2680 converter: "ConvertLengthSizing",
2690 is_descriptor: true, 2681 is_descriptor: true,
2691 interpolable: true, 2682 interpolable: true,
2692 keywords: ["auto", "fit-content", "min-content", "max-content"], 2683 keywords: ["auto", "fit-content", "min-content", "max-content"],
2693 supports_percentage: true, 2684 supports_percentage: true,
2694 typedom_types: ["Length"],
2695 field_template: "external", 2685 field_template: "external",
2696 field_type_path: "platform/Length", 2686 field_type_path: "platform/Length",
2697 field_group: "box", 2687 field_group: "box",
2698 default_value: "Length()" 2688 default_value: "Length()"
2699 }, 2689 },
2700 { 2690 {
2701 name: "will-change", 2691 name: "will-change",
2702 api_class: true, 2692 api_class: true,
2703 api_methods: ["parseSingleValue"], 2693 api_methods: ["parseSingleValue"],
2704 custom_all: true, 2694 custom_all: true,
(...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after
3488 { 3478 {
3489 name: "-webkit-transition-timing-function", 3479 name: "-webkit-transition-timing-function",
3490 alias_for: "transition-timing-function", 3480 alias_for: "transition-timing-function",
3491 }, 3481 },
3492 { 3482 {
3493 name: "-webkit-user-select", 3483 name: "-webkit-user-select",
3494 alias_for: "user-select", 3484 alias_for: "user-select",
3495 }, 3485 },
3496 ], 3486 ],
3497 } 3487 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/BUILD.gn ('k') | third_party/WebKit/Source/core/css/cssom/CSSAngleValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698