OLD | NEW |
1 { | 1 { |
2 // This file specifies fields in ComputedStyle that we would like to | 2 // This file specifies fields in ComputedStyle that we would like to |
3 // generate, but are not CSS properties. | 3 // generate, but are not CSS properties. |
4 | 4 |
5 parameters: { | 5 parameters: { |
6 // - field_size | |
7 // Number of bits needed to store this field. Only used for storage_only | |
8 // fields. If specified, the field will be stored as bit field. Otherwise | |
9 // it will be stored as a normal data member. | |
10 field_size: { | |
11 valid_type: "int", | |
12 }, | |
13 | |
14 // If the field has_custom_compare_and_copy, then it does not appear in | 6 // If the field has_custom_compare_and_copy, then it does not appear in |
15 // ComputedStyle::operator== and ComputedStyle::CopyNonInheritedFromCached. | 7 // ComputedStyle::operator== and ComputedStyle::CopyNonInheritedFromCached. |
16 has_custom_compare_and_copy: { | 8 has_custom_compare_and_copy: { |
17 default: false, | 9 default: false, |
18 }, | 10 }, |
19 | 11 |
20 // The rest is the same as CSSProperties.json5, but the only relevant ones i
n | 12 // The rest is the same as CSSProperties.json5, but the only relevant ones i
n |
21 // this file are: | 13 // this file are: |
22 // name, field_template, field_type_path, default_value, type_name, keyword, | 14 // name, field_template, field_type_path, default_value, type_name, keyword, |
23 // inherited | 15 // inherited |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 }, | 156 }, |
165 { | 157 { |
166 name: "border", | 158 name: "border", |
167 field_template: "storage_only", | 159 field_template: "storage_only", |
168 field_type_path: "core/style/BorderData", | 160 field_type_path: "core/style/BorderData", |
169 field_group: "surround", | 161 field_group: "surround", |
170 default_value: "BorderData()", | 162 default_value: "BorderData()", |
171 }, | 163 }, |
172 ], | 164 ], |
173 } | 165 } |
OLD | NEW |