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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 }, | 170 }, |
179 { | 171 { |
180 name: "BackgroundColor", | 172 name: "BackgroundColor", |
181 field_template: "storage_only", | 173 field_template: "storage_only", |
182 field_type_path: "core/css/StyleColor", | 174 field_type_path: "core/css/StyleColor", |
183 default_value: "Color::kTransparent", | 175 default_value: "Color::kTransparent", |
184 field_group: "background", | 176 field_group: "background", |
185 }, | 177 }, |
186 ], | 178 ], |
187 } | 179 } |
OLD | NEW |