| OLD | NEW |
| 1 { | 1 { |
| 2 // This file specifies all the CSS properties we support and the necessary | 2 // This file specifies all the CSS properties we support and the necessary |
| 3 // information for our code generation. The various supported arguments | 3 // information for our code generation. The various supported arguments |
| 4 // are described below with example usage | 4 // are described below with example usage |
| 5 | 5 |
| 6 parameters: { | 6 parameters: { |
| 7 // - alias_for: "other-property" | 7 // - alias_for: "other-property" |
| 8 // Properties specifying alias_for should be virtually identical to the | 8 // Properties specifying alias_for should be virtually identical to the |
| 9 // properties they alias. Minor parsing differences are allowed as long as | 9 // properties they alias. Minor parsing differences are allowed as long as |
| 10 // the CSSValues created are of the same format of the aliased property. | 10 // the CSSValues created are of the same format of the aliased property. |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 // - field_template | 80 // - field_template |
| 81 // Affects how the interface to this field is generated. | 81 // Affects how the interface to this field is generated. |
| 82 // TODO(sashab, meade): Remove this once TypedOM types are specified for | 82 // TODO(sashab, meade): Remove this once TypedOM types are specified for |
| 83 // every property, since this value can be inferred from that. | 83 // every property, since this value can be inferred from that. |
| 84 field_template: { | 84 field_template: { |
| 85 valid_values: [ | 85 valid_values: [ |
| 86 // Field is stored as an enum and has a initial/getter/setter/resetter. | 86 // Field is stored as an enum and has a initial/getter/setter/resetter. |
| 87 // If include_paths is empty, we would also generate the corresponding | 87 // If include_paths is empty, we would also generate the corresponding |
| 88 // enum definition in ComputedStyleConstants.h. | 88 // enum definition in ComputedStyleConstants.h. |
| 89 "keyword", | 89 "keyword", |
| 90 // Field can take on any subset of values from a list of keywords. |
| 91 "keyword_set", |
| 90 // Field stores a primitive value like int/bool. The type is specified b
y | 92 // Field stores a primitive value like int/bool. The type is specified b
y |
| 91 // type_name. The interface has a initial/getter/setter/resetter. | 93 // type_name. The interface has a initial/getter/setter/resetter. |
| 92 "primitive", | 94 "primitive", |
| 93 // Field is stored as a bool, whose default value is false | 95 // Field is stored as a bool, whose default value is false |
| 94 // and can only be set to true. Has a initial/getter/setter. | 96 // and can only be set to true. Has a initial/getter/setter. |
| 95 "monotonic_flag", | 97 "monotonic_flag", |
| 96 // Field has type specified at type_name and has a getter/setter. | 98 // Field has type specified at type_name and has a getter/setter. |
| 97 // Also has a setter taking an rvalue reference. Cannot be packed. | 99 // Also has a setter taking an rvalue reference. Cannot be packed. |
| 98 "external", | 100 "external", |
| 99 // Only the storage is generated. The interface is handwritten. | 101 // Only the storage is generated. The interface is handwritten. |
| (...skipping 1949 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2049 interpolable: true, | 2051 interpolable: true, |
| 2050 runtime_flag: "CSS3TextDecorations", | 2052 runtime_flag: "CSS3TextDecorations", |
| 2051 }, | 2053 }, |
| 2052 { | 2054 { |
| 2053 name: "text-decoration-line", | 2055 name: "text-decoration-line", |
| 2054 api_class: "CSSPropertyAPITextDecorationLine", | 2056 api_class: "CSSPropertyAPITextDecorationLine", |
| 2055 converter: "ConvertFlags<TextDecoration>", | 2057 converter: "ConvertFlags<TextDecoration>", |
| 2056 name_for_methods: "TextDecoration", | 2058 name_for_methods: "TextDecoration", |
| 2057 runtime_flag: "CSS3TextDecorations", | 2059 runtime_flag: "CSS3TextDecorations", |
| 2058 type_name: "TextDecoration", | 2060 type_name: "TextDecoration", |
| 2061 field_template: "keyword_set", |
| 2062 default_value: "none", |
| 2063 keywords: ["none", "underline", "overline", "line-through", "blink"], |
| 2064 field_group: "visual", |
| 2059 }, | 2065 }, |
| 2060 { | 2066 { |
| 2061 name: "text-decoration-skip", | 2067 name: "text-decoration-skip", |
| 2062 api_class: true, | 2068 api_class: true, |
| 2063 api_methods: ["parseSingleValue"], | 2069 api_methods: ["parseSingleValue"], |
| 2064 converter: "ConvertFlags<TextDecorationSkip>", | 2070 converter: "ConvertFlags<TextDecorationSkip>", |
| 2065 inherited: true, | 2071 inherited: true, |
| 2066 runtime_flag: "CSS3TextDecorations", | 2072 runtime_flag: "CSS3TextDecorations", |
| 2067 field_template: "storage_only", | 2073 field_template: "storage_only", |
| 2068 type_name: "TextDecorationSkip", | 2074 type_name: "TextDecorationSkip", |
| (...skipping 1454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3523 { | 3529 { |
| 3524 name: "-webkit-transition-timing-function", | 3530 name: "-webkit-transition-timing-function", |
| 3525 alias_for: "transition-timing-function", | 3531 alias_for: "transition-timing-function", |
| 3526 }, | 3532 }, |
| 3527 { | 3533 { |
| 3528 name: "-webkit-user-select", | 3534 name: "-webkit-user-select", |
| 3529 alias_for: "user-select", | 3535 alias_for: "user-select", |
| 3530 }, | 3536 }, |
| 3531 ], | 3537 ], |
| 3532 } | 3538 } |
| OLD | NEW |