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 // 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 |
7 // ComputedStyle::operator== and ComputedStyle::CopyNonInheritedFromCached. | 7 // ComputedStyle::operator== and ComputedStyle::CopyNonInheritedFromCached. |
8 has_custom_compare_and_copy: { | 8 has_custom_compare_and_copy: { |
9 default: false, | 9 default: false, |
10 }, | 10 }, |
11 | 11 |
12 // 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 |
13 // this file are: | 13 // this file are: |
14 // name, field_template, field_type_path, default_value, type_name, keyword, | 14 // name, field_template, include_paths, default_value, type_name, keyword, |
15 // inherited | 15 // inherited |
16 }, | 16 }, |
17 | 17 |
18 data: [ | 18 data: [ |
19 { | 19 { |
20 name: "IsLink", | 20 name: "IsLink", |
21 field_template: "monotonic_flag", | 21 field_template: "monotonic_flag", |
22 default_value: "false", | 22 default_value: "false", |
23 has_custom_compare_and_copy: true, | 23 has_custom_compare_and_copy: true, |
24 }, | 24 }, |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 name: "VerticalAlign", | 179 name: "VerticalAlign", |
180 field_template: "storage_only", | 180 field_template: "storage_only", |
181 field_size: 4, | 181 field_size: 4, |
182 default_value: "EVerticalAlign::kBaseline", | 182 default_value: "EVerticalAlign::kBaseline", |
183 type_name: "EVerticalAlign", | 183 type_name: "EVerticalAlign", |
184 }, | 184 }, |
185 { | 185 { |
186 name: "VerticalAlignLength", | 186 name: "VerticalAlignLength", |
187 field_template: "storage_only", | 187 field_template: "storage_only", |
188 default_value: "Length()", | 188 default_value: "Length()", |
189 field_type_path: "platform/Length", | 189 include_paths: ["platform/Length.h"], |
| 190 type_name: "Length", |
190 field_group: "box", | 191 field_group: "box", |
191 }, | 192 }, |
192 { | 193 { |
193 name: "border-image", | 194 name: "border-image", |
194 field_template: "external", | 195 field_template: "external", |
195 field_type_path: "core/style/NinePieceImage", | 196 include_paths: ["core/style/NinePieceImage.h"], |
| 197 type_name: "NinePieceImage", |
196 field_group: "surround", | 198 field_group: "surround", |
197 default_value: "NinePieceImage()", | 199 default_value: "NinePieceImage()", |
198 }, | 200 }, |
199 { | 201 { |
200 name: "Background", | 202 name: "Background", |
201 field_template: "storage_only", | 203 field_template: "storage_only", |
202 field_type_path: "core/style/FillLayer", | 204 include_paths: ["core/style/FillLayer.h"], |
| 205 type_name: "FillLayer", |
203 default_value: "FillLayer(kBackgroundFillLayer, true)", | 206 default_value: "FillLayer(kBackgroundFillLayer, true)", |
204 field_group: "background", | 207 field_group: "background", |
205 }, | 208 }, |
206 { | 209 { |
207 name: "BackgroundColor", | 210 name: "BackgroundColor", |
208 field_template: "storage_only", | 211 field_template: "storage_only", |
209 field_type_path: "core/css/StyleColor", | 212 include_paths: ["core/css/StyleColor.h"], |
| 213 type_name: "StyleColor", |
210 default_value: "Color::kTransparent", | 214 default_value: "Color::kTransparent", |
211 field_group: "background", | 215 field_group: "background", |
212 }, | 216 }, |
213 { | 217 { |
214 name: "TextDecoration", | 218 name: "TextDecoration", |
215 field_template: "storage_only", | 219 field_template: "storage_only", |
216 type_name: "TextDecoration", | 220 type_name: "TextDecoration", |
217 field_size: 4, | 221 field_size: 4, |
218 default_value: "TextDecoration::kNone", | 222 default_value: "TextDecoration::kNone", |
219 field_group: "visual", | 223 field_group: "visual", |
(...skipping 10 matching lines...) Expand all Loading... |
230 name: "HasAutoZIndex", | 234 name: "HasAutoZIndex", |
231 field_template: "storage_only", | 235 field_template: "storage_only", |
232 type_name: "bool", | 236 type_name: "bool", |
233 field_size: 1, | 237 field_size: 1, |
234 field_group: "box", | 238 field_group: "box", |
235 default_value: "true", | 239 default_value: "true", |
236 }, | 240 }, |
237 { | 241 { |
238 name: "font", | 242 name: "font", |
239 field_template: "storage_only", | 243 field_template: "storage_only", |
240 field_type_path: "platform/fonts/Font", | 244 include_paths: ["platform/fonts/Font.h"], |
| 245 type_name: "Font", |
241 field_group: "inherited", | 246 field_group: "inherited", |
242 inherited: true, | 247 inherited: true, |
243 default_value: "Font()", | 248 default_value: "Font()", |
244 }, | 249 }, |
245 { | 250 { |
246 name: "color", | 251 name: "color", |
247 inherited: true, | 252 inherited: true, |
248 field_template: "storage_only", | 253 field_template: "storage_only", |
249 field_type_path: "platform/graphics/Color", | 254 include_paths: ["platform/graphics/Color.h"], |
| 255 type_name: "Color", |
250 field_group: "inherited", | 256 field_group: "inherited", |
251 default_value: "Color::kBlack", | 257 default_value: "Color::kBlack", |
252 }, | 258 }, |
253 { | 259 { |
254 name: "VisitedLinkColor", | 260 name: "VisitedLinkColor", |
255 inherited: true, | 261 inherited: true, |
256 field_template: "external", | 262 field_template: "external", |
257 field_type_path: "platform/graphics/Color", | 263 include_paths: ["platform/graphics/Color.h"], |
| 264 type_name: "Color", |
258 field_group: "inherited", | 265 field_group: "inherited", |
259 default_value: "Color::kBlack", | 266 default_value: "Color::kBlack", |
260 }, | 267 }, |
261 { | 268 { |
262 name: "TextAutosizingMultiplier", | 269 name: "TextAutosizingMultiplier", |
263 inherited: true, | 270 inherited: true, |
264 field_template: "storage_only", | 271 field_template: "storage_only", |
265 type_name: "float", | 272 type_name: "float", |
266 field_group: "inherited", | 273 field_group: "inherited", |
267 default_value: "1.0", | 274 default_value: "1.0", |
268 }, | 275 }, |
269 { | 276 { |
270 name: "VisitedLinkTextStrokeColor", | 277 name: "VisitedLinkTextStrokeColor", |
271 inherited: true, | 278 inherited: true, |
272 field_template: "storage_only", | 279 field_template: "storage_only", |
273 field_type_path: "platform/graphics/Color", | 280 type_name: "Color", |
| 281 include_paths: ["platform/graphics/Color.h"], |
274 default_value: "Color()", | 282 default_value: "Color()", |
275 field_group: "rare-inherited", | 283 field_group: "rare-inherited", |
276 }, | 284 }, |
277 { | 285 { |
278 name: "VisitedLinkTextFillColor", | 286 name: "VisitedLinkTextFillColor", |
279 inherited: true, | 287 inherited: true, |
280 field_template: "storage_only", | 288 field_template: "storage_only", |
281 field_type_path: "platform/graphics/Color", | 289 type_name: "Color", |
| 290 include_paths: ["platform/graphics/Color.h"], |
282 default_value: "Color()", | 291 default_value: "Color()", |
283 field_group: "rare-inherited", | 292 field_group: "rare-inherited", |
284 }, | 293 }, |
285 { | 294 { |
286 name: "VisitedLinkTextEmphasisColor", | 295 name: "VisitedLinkTextEmphasisColor", |
287 inherited: true, | 296 inherited: true, |
288 field_template: "storage_only", | 297 field_template: "storage_only", |
289 field_type_path: "platform/graphics/Color", | 298 type_name: "Color", |
| 299 include_paths: ["platform/graphics/Color.h"], |
290 default_value: "Color()", | 300 default_value: "Color()", |
291 field_group: "rare-inherited", | 301 field_group: "rare-inherited", |
292 }, | 302 }, |
293 { | 303 { |
294 name: "VisitedLinkCaretColor", | 304 name: "VisitedLinkCaretColor", |
295 inherited: true, | 305 inherited: true, |
296 field_template: "storage_only", | 306 field_template: "storage_only", |
297 field_type_path: "platform/graphics/Color", | 307 type_name: "Color", |
| 308 include_paths: ["platform/graphics/Color.h"], |
298 default_value: "Color()", | 309 default_value: "Color()", |
299 field_group: "rare-inherited", | 310 field_group: "rare-inherited", |
300 }, | 311 }, |
301 { | 312 { |
302 name: "CursorData", | 313 name: "CursorData", |
303 inherited: true, | 314 inherited: true, |
304 field_template: "storage_only", | 315 field_template: "storage_only", |
305 field_type_path: "core/style/CursorList", | 316 type_name: "CursorList", |
| 317 include_paths: ["core/style/CursorList.h"], |
306 default_value: "nullptr", | 318 default_value: "nullptr", |
307 wrapper_pointer_name: "Persistent", | 319 wrapper_pointer_name: "Persistent", |
308 field_group: "rare-inherited", | 320 field_group: "rare-inherited", |
309 }, | 321 }, |
310 { | 322 { |
311 name: "EffectiveZoom", | 323 name: "EffectiveZoom", |
312 inherited: true, | 324 inherited: true, |
313 field_template: "storage_only", | 325 field_template: "storage_only", |
314 type_name: "float", | 326 type_name: "float", |
315 default_value: "1.0f", | 327 default_value: "1.0f", |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
511 inherited: true, | 523 inherited: true, |
512 field_template: "storage_only", | 524 field_template: "storage_only", |
513 type_name: "short", | 525 type_name: "short", |
514 default_value: "-1", | 526 default_value: "-1", |
515 field_group: "rare-inherited", | 527 field_group: "rare-inherited", |
516 }, | 528 }, |
517 { | 529 { |
518 name: "TextEmphasisCustomMark", | 530 name: "TextEmphasisCustomMark", |
519 inherited: true, | 531 inherited: true, |
520 field_template: "storage_only", | 532 field_template: "storage_only", |
521 field_type_path: "platform/wtf/text/AtomicString", | 533 type_name: "AtomicString", |
| 534 include_paths: ["platform/wtf/text/AtomicString.h"], |
522 default_value: "AtomicString()", | 535 default_value: "AtomicString()", |
523 field_group: "rare-inherited", | 536 field_group: "rare-inherited", |
524 }, | 537 }, |
525 { | 538 { |
526 name: "AppliedTextDecorations", | 539 name: "AppliedTextDecorations", |
527 inherited: true, | 540 inherited: true, |
528 field_template: "storage_only", | 541 field_template: "storage_only", |
529 field_type_path: "core/style/AppliedTextDecorationList", | 542 type_name: "AppliedTextDecorationList", |
| 543 include_paths: ["core/style/AppliedTextDecorationList.h"], |
530 default_value: "nullptr", | 544 default_value: "nullptr", |
531 wrapper_pointer_name: "RefPtr", | 545 wrapper_pointer_name: "RefPtr", |
532 field_group: "rare-inherited", | 546 field_group: "rare-inherited", |
533 }, | 547 }, |
534 { | 548 { |
535 name: "Variables", | 549 name: "Variables", |
536 inherited: true, | 550 inherited: true, |
537 field_template: "storage_only", | 551 field_template: "storage_only", |
538 field_type_path: "core/style/StyleInheritedVariables", | 552 type_name: "StyleInheritedVariables", |
| 553 include_paths: ["core/style/StyleInheritedVariables.h"], |
539 default_value: "nullptr", | 554 default_value: "nullptr", |
540 wrapper_pointer_name: "RefPtr", | 555 wrapper_pointer_name: "RefPtr", |
541 field_group: "rare-inherited", | 556 field_group: "rare-inherited", |
542 }, | 557 }, |
543 ], | 558 ], |
544 } | 559 } |
OLD | NEW |