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

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

Issue 2786883002: Generate subgroup StyleSurroundData in ComputedStyle. (Closed)
Patch Set: Fix things Created 3 years, 8 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // in the .h file for this property, and also used in CSSPropertyAPIFiles.h. tmpl to 54 // in the .h file for this property, and also used in CSSPropertyAPIFiles.h. tmpl to
55 // generate declarations for only the methods this property has implementati ons for. 55 // generate declarations for only the methods this property has implementati ons for.
56 api_methods: { 56 api_methods: {
57 default: [], 57 default: [],
58 valid_type: "list", 58 valid_type: "list",
59 // This list must be an ordered, complete list of methods whose names mat ch those 59 // This list must be an ordered, complete list of methods whose names mat ch those
60 // defined in CSSPropertyDescriptor.h. 60 // defined in CSSPropertyDescriptor.h.
61 valid_values: ["parseSingleValue", "parseShorthand"], 61 valid_values: ["parseSingleValue", "parseShorthand"],
62 }, 62 },
63 63
64 // - field_group
65 // Name of the group that this field belongs to. Fields in the same group ar e stored
66 // together as a nested class inside ComputedStyle and dynamically allocated on use.
67 // Leave this out if the field is stored directly on ComputedStyle.
68 field_group: {
69 value_type: "str"
70 },
71
64 // - field_template 72 // - field_template
65 // Affects how the interface to this field is generated. 73 // Affects how the interface to this field is generated.
66 // TODO(sashab, meade): Remove this once TypedOM types are specified for 74 // TODO(sashab, meade): Remove this once TypedOM types are specified for
67 // every property, since this value can be inferred from that. 75 // every property, since this value can be inferred from that.
68 field_template: { 76 field_template: {
69 valid_values: [ 77 valid_values: [
70 // Field is stored as an enum and has a initial/getter/setter/resetter. 78 // Field is stored as an enum and has a initial/getter/setter/resetter.
71 "keyword", 79 "keyword",
72 // Field stores a primitive value like int/bool. The type is specified b y 80 // Field stores a primitive value like int/bool. The type is specified b y
73 // type_name. The interface has a initial/getter/setter/resetter. 81 // type_name. The interface has a initial/getter/setter/resetter.
(...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after
789 }, 797 },
790 { 798 {
791 name: "bottom", 799 name: "bottom",
792 api_class: "CSSPropertyAPIMargin", 800 api_class: "CSSPropertyAPIMargin",
793 api_methods: ["parseSingleValue"], 801 api_methods: ["parseSingleValue"],
794 converter: "ConvertLengthOrAuto", 802 converter: "ConvertLengthOrAuto",
795 interpolable: true, 803 interpolable: true,
796 keywords: ["auto"], 804 keywords: ["auto"],
797 supports_percentage: true, 805 supports_percentage: true,
798 typedom_types: ["Length"], 806 typedom_types: ["Length"],
807 field_template: "external",
808 field_type_path: "platform/Length",
809 field_group: "surround",
810 default_value: "Length()",
799 }, 811 },
800 { 812 {
801 name: "box-shadow", 813 name: "box-shadow",
802 converter: "ConvertShadowList", 814 converter: "ConvertShadowList",
803 interpolable: true, 815 interpolable: true,
804 }, 816 },
805 "box-sizing", 817 "box-sizing",
806 { 818 {
807 name: "break-after", 819 name: "break-after",
808 // Storage for this property also covers these legacy properties: 820 // Storage for this property also covers these legacy properties:
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
1191 }, 1203 },
1192 { 1204 {
1193 name: "left", 1205 name: "left",
1194 api_class: "CSSPropertyAPIMargin", 1206 api_class: "CSSPropertyAPIMargin",
1195 api_methods: ["parseSingleValue"], 1207 api_methods: ["parseSingleValue"],
1196 converter: "ConvertLengthOrAuto", 1208 converter: "ConvertLengthOrAuto",
1197 interpolable: true, 1209 interpolable: true,
1198 keywords: ["auto"], 1210 keywords: ["auto"],
1199 supports_percentage: true, 1211 supports_percentage: true,
1200 typedom_types: ["Length"], 1212 typedom_types: ["Length"],
1213 field_template: "external",
1214 field_type_path: "platform/Length",
1215 field_group: "surround",
1216 default_value: "Length()",
1201 }, 1217 },
1202 { 1218 {
1203 name: "letter-spacing", 1219 name: "letter-spacing",
1204 api_class: "CSSPropertyAPILetterAndWordSpacing", 1220 api_class: "CSSPropertyAPILetterAndWordSpacing",
1205 api_methods: ["parseSingleValue"], 1221 api_methods: ["parseSingleValue"],
1206 converter: "ConvertSpacing", 1222 converter: "ConvertSpacing",
1207 inherited: true, 1223 inherited: true,
1208 initial: "InitialLetterWordSpacing", 1224 initial: "InitialLetterWordSpacing",
1209 interpolable: true, 1225 interpolable: true,
1210 }, 1226 },
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
1590 }, 1606 },
1591 { 1607 {
1592 name: "right", 1608 name: "right",
1593 api_class: "CSSPropertyAPIMargin", 1609 api_class: "CSSPropertyAPIMargin",
1594 api_methods: ["parseSingleValue"], 1610 api_methods: ["parseSingleValue"],
1595 converter: "ConvertLengthOrAuto", 1611 converter: "ConvertLengthOrAuto",
1596 interpolable: true, 1612 interpolable: true,
1597 keywords: ["auto"], 1613 keywords: ["auto"],
1598 supports_percentage: true, 1614 supports_percentage: true,
1599 typedom_types: ["Length"], 1615 typedom_types: ["Length"],
1616 field_template: "external",
1617 field_type_path: "platform/Length",
1618 field_group: "surround",
1619 default_value: "Length()",
1600 }, 1620 },
1601 { 1621 {
1602 name: "r", 1622 name: "r",
1603 api_class: "CSSPropertyAPIStrokeOrLength", 1623 api_class: "CSSPropertyAPIStrokeOrLength",
1604 converter: "ConvertLength", 1624 converter: "ConvertLength",
1605 interpolable: true, 1625 interpolable: true,
1606 svg: true, 1626 svg: true,
1607 }, 1627 },
1608 { 1628 {
1609 name: "rx", 1629 name: "rx",
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
1908 }, 1928 },
1909 { 1929 {
1910 name: "top", 1930 name: "top",
1911 api_class: "CSSPropertyAPIMargin", 1931 api_class: "CSSPropertyAPIMargin",
1912 api_methods: ["parseSingleValue"], 1932 api_methods: ["parseSingleValue"],
1913 converter: "ConvertLengthOrAuto", 1933 converter: "ConvertLengthOrAuto",
1914 interpolable: true, 1934 interpolable: true,
1915 keywords: ["auto"], 1935 keywords: ["auto"],
1916 supports_percentage: true, 1936 supports_percentage: true,
1917 typedom_types: ["Length"], 1937 typedom_types: ["Length"],
1938 field_template: "external",
1939 field_type_path: "platform/Length",
1940 field_group: "surround",
1941 default_value: "Length()",
1918 }, 1942 },
1919 { 1943 {
1920 name: "touch-action", 1944 name: "touch-action",
1921 api_class: true, 1945 api_class: true,
1922 api_methods: ["parseSingleValue"], 1946 api_methods: ["parseSingleValue"],
1923 converter: "ConvertFlags<TouchAction>", 1947 converter: "ConvertFlags<TouchAction>",
1924 type_name: "TouchAction", 1948 type_name: "TouchAction",
1925 }, 1949 },
1926 { 1950 {
1927 name: "transform", 1951 name: "transform",
(...skipping 1263 matching lines...) Expand 10 before | Expand all | Expand 10 after
3191 { 3215 {
3192 name: "-webkit-transition-timing-function", 3216 name: "-webkit-transition-timing-function",
3193 alias_for: "transition-timing-function", 3217 alias_for: "transition-timing-function",
3194 }, 3218 },
3195 { 3219 {
3196 name: "-webkit-user-select", 3220 name: "-webkit-user-select",
3197 alias_for: "user-select", 3221 alias_for: "user-select",
3198 }, 3222 },
3199 ], 3223 ],
3200 } 3224 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698