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 | 6 // - field_size |
7 // Number of bits needed to store this field. Only used for storage_only | 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 | 8 // fields. If specified, the field will be stored as bit field. Otherwise |
9 // it will be stored as a normal data member. | 9 // it will be stored as a normal data member. |
10 field_size: { | 10 field_size: { |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 { | 146 { |
147 name: "HasSimpleUnderline", | 147 name: "HasSimpleUnderline", |
148 field_template: "storage_only", | 148 field_template: "storage_only", |
149 field_size: 1, | 149 field_size: 1, |
150 default_value: "false", | 150 default_value: "false", |
151 type_name: "bool", | 151 type_name: "bool", |
152 inherited: true, | 152 inherited: true, |
153 has_custom_compare_and_copy: true, | 153 has_custom_compare_and_copy: true, |
154 }, | 154 }, |
155 // TODO(shend): vertical align is actually a CSS property, but since we don'
t support union fields | 155 // TODO(shend): vertical align is actually a CSS property, but since we don'
t support union fields |
156 // which can be either a keyword or Length, this is generated as a nonproper
ty for now. Remove this | 156 // which can be either a keyword or Length, this is specified in this file f
or now. Remove this |
157 // once we can support union fields and groups. | 157 // once we can support union fields. |
158 { | 158 { |
159 name: "VerticalAlign", | 159 name: "VerticalAlign", |
160 field_template: "storage_only", | 160 field_template: "storage_only", |
161 field_size: 4, | 161 field_size: 4, |
162 default_value: "EVerticalAlign::kBaseline", | 162 default_value: "EVerticalAlign::kBaseline", |
163 type_name: "EVerticalAlign", | 163 type_name: "EVerticalAlign", |
164 has_custom_compare_and_copy: true, | |
165 }, | 164 }, |
166 { | 165 { |
167 name: "border", | 166 name: "border", |
168 field_template: "storage_only", | 167 field_template: "storage_only", |
169 field_type_path: "core/style/BorderData", | 168 field_type_path: "core/style/BorderData", |
170 field_group: "surround", | 169 field_group: "surround", |
171 default_value: "BorderData()", | 170 default_value: "BorderData()", |
172 }, | 171 }, |
173 { | 172 { |
174 name: "Background", | 173 name: "Background", |
175 field_template: "storage_only", | 174 field_template: "storage_only", |
176 field_type_path: "core/style/FillLayer", | 175 field_type_path: "core/style/FillLayer", |
177 default_value: "FillLayer(kBackgroundFillLayer, true)", | 176 default_value: "FillLayer(kBackgroundFillLayer, true)", |
178 field_group: "background", | 177 field_group: "background", |
179 }, | 178 }, |
180 { | 179 { |
181 name: "BackgroundColor", | 180 name: "BackgroundColor", |
182 field_template: "storage_only", | 181 field_template: "storage_only", |
183 field_type_path: "core/css/StyleColor", | 182 field_type_path: "core/css/StyleColor", |
184 default_value: "Color::kTransparent", | 183 default_value: "Color::kTransparent", |
185 field_group: "background", | 184 field_group: "background", |
186 }, | 185 }, |
187 ], | 186 ], |
188 } | 187 } |
OLD | NEW |