OLD | NEW |
1 // This file specifies all the CSS properties we support and the necessary | 1 // This file specifies all the CSS properties we support and the necessary |
2 // information for our code generation. The various supported arguments | 2 // information for our code generation. The various supported arguments |
3 // are described below with example usage | 3 // are described below with example usage |
4 | 4 |
5 | 5 |
6 // - alias_for=other-property | 6 // - alias_for=other-property |
7 // Properties specifying alias_for do not get their own enum and instead map | 7 // Properties specifying alias_for do not get their own enum and instead map |
8 // directly onto the CSSPropertyID they alias. Currently this means that the | 8 // directly onto the CSSPropertyID they alias. Currently this means that the |
9 // UseCounter will not pick up on these (crbug.com/304855) | 9 // UseCounter will not pick up on these (crbug.com/304855) |
10 | 10 |
(...skipping 19 matching lines...) Expand all Loading... |
30 | 30 |
31 // The remaining arguments are used for the StyleBuilder and allow us to | 31 // The remaining arguments are used for the StyleBuilder and allow us to |
32 // succinctly describe how to apply properties. When default handlers are not | 32 // succinctly describe how to apply properties. When default handlers are not |
33 // sufficient, we should prefer to use converter, and failing that define | 33 // sufficient, we should prefer to use converter, and failing that define |
34 // custom property handlers in StyleBuilderCustom.cpp. We only should use | 34 // custom property handlers in StyleBuilderCustom.cpp. We only should use |
35 // StyleBuilderFunctions.cpp.tmpl to define handlers when there are multiple | 35 // StyleBuilderFunctions.cpp.tmpl to define handlers when there are multiple |
36 // properties requiring the same handling, but converter doesn't suffice. | 36 // properties requiring the same handling, but converter doesn't suffice. |
37 | 37 |
38 // - font | 38 // - font |
39 // The default property handlers call into the FontBuilder instead of setting | 39 // The default property handlers call into the FontBuilder instead of setting |
40 // values directly onto the LayoutStyle | 40 // values directly onto the ComputedStyle |
41 // - svg | 41 // - svg |
42 // The default property handlers access the SVGLayoutStyle | 42 // The default property handlers access the SVGComputedStyle |
43 | 43 |
44 // - name_for_methods=BlendMode | 44 // - name_for_methods=BlendMode |
45 // Tweaks how we choose defaults for getter, setter, initial and type_name. | 45 // Tweaks how we choose defaults for getter, setter, initial and type_name. |
46 // For example, setting this to BlendMode will make us use a setter of setBlendM
ode | 46 // For example, setting this to BlendMode will make us use a setter of setBlendM
ode |
47 // - initial | 47 // - initial |
48 // The initial value accessor on the LayoutStyle, defaults to e.g. initialBoxSha
dow | 48 // The initial value accessor on the ComputedStyle, defaults to e.g. initialBoxS
hadow |
49 // - getter | 49 // - getter |
50 // The LayoutStyle getter, defaults to e.g. borderBottomLeft | 50 // The ComputedStyle getter, defaults to e.g. borderBottomLeft |
51 // - setter | 51 // - setter |
52 // The LayoutStyle setter, defaults to e.g. setBorderBottomLeft | 52 // The ComputedStyle setter, defaults to e.g. setBorderBottomLeft |
53 // - type_name | 53 // - type_name |
54 // The computed type for the property. Only required for the default value | 54 // The computed type for the property. Only required for the default value |
55 // application, defaults to e.g. EDisplay | 55 // application, defaults to e.g. EDisplay |
56 | 56 |
57 // - converter=convertRadius | 57 // - converter=convertRadius |
58 // The StyleBuilder will call the specified function on StyleBuilderConverter | 58 // The StyleBuilder will call the specified function on StyleBuilderConverter |
59 // to convert a CSSValue to an appropriate platform value | 59 // to convert a CSSValue to an appropriate platform value |
60 | 60 |
61 // - custom_initial | 61 // - custom_initial |
62 // - custom_inherit | 62 // - custom_inherit |
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
527 -webkit-flex-flow alias_for=flex-flow | 527 -webkit-flex-flow alias_for=flex-flow |
528 -webkit-flex-grow alias_for=flex-grow | 528 -webkit-flex-grow alias_for=flex-grow |
529 -webkit-flex-shrink alias_for=flex-shrink | 529 -webkit-flex-shrink alias_for=flex-shrink |
530 -webkit-flex-wrap alias_for=flex-wrap | 530 -webkit-flex-wrap alias_for=flex-wrap |
531 -webkit-justify-content alias_for=justify-content | 531 -webkit-justify-content alias_for=justify-content |
532 -webkit-opacity alias_for=opacity | 532 -webkit-opacity alias_for=opacity |
533 -webkit-order alias_for=order | 533 -webkit-order alias_for=order |
534 -webkit-shape-image-threshold alias_for=shape-image-threshold | 534 -webkit-shape-image-threshold alias_for=shape-image-threshold |
535 -webkit-shape-margin alias_for=shape-margin | 535 -webkit-shape-margin alias_for=shape-margin |
536 -webkit-shape-outside alias_for=shape-outside | 536 -webkit-shape-outside alias_for=shape-outside |
OLD | NEW |