| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 "keyword", | 71 "keyword", |
| 72 // Field stores a primitive value like int/bool. The type is specified b
y | 72 // Field stores a primitive value like int/bool. The type is specified b
y |
| 73 // type_name. The interface has a initial/getter/setter/resetter. | 73 // type_name. The interface has a initial/getter/setter/resetter. |
| 74 "primitive", | 74 "primitive", |
| 75 // Field is stored as a bool, whose default value is false | 75 // Field is stored as a bool, whose default value is false |
| 76 // and can only be set to true. Has a initial/getter/setter. | 76 // and can only be set to true. Has a initial/getter/setter. |
| 77 "monotonic_flag", | 77 "monotonic_flag", |
| 78 // Field has type specified at field_type_path and has a getter/setter. | 78 // Field has type specified at field_type_path and has a getter/setter. |
| 79 // Also has a setter taking an rvalue reference. Cannot be packed. | 79 // Also has a setter taking an rvalue reference. Cannot be packed. |
| 80 "external", | 80 "external", |
| 81 // Only the storage is generated. The interface is handwritten. |
| 82 "storage_only", |
| 81 ], | 83 ], |
| 82 }, | 84 }, |
| 83 | 85 |
| 84 // - field_type_path: "path/to/Type" | 86 // - field_type_path: "path/to/Type" |
| 85 // For properties that have generated field storage in ComputedStyle, | 87 // For properties that have generated field storage in ComputedStyle, |
| 86 // this optional argument will override the field's generated type with | 88 // this optional argument will override the field's generated type with |
| 87 // an external one specified at the given path. The type must be defined | 89 // an external one specified at the given path. The type must be defined |
| 88 // in a header file at that path, and have the same name as the file. | 90 // in a header file at that path, and have the same name as the file. |
| 89 // Currently, only enum types are supported, and the enum's only values | 91 // Currently, only enum types are supported, and the enum's only values |
| 90 // must be CamelCase values of the keywords of the property. | 92 // must be CamelCase values of the keywords of the property. |
| (...skipping 3102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3193 { | 3195 { |
| 3194 name: "-webkit-transition-timing-function", | 3196 name: "-webkit-transition-timing-function", |
| 3195 alias_for: "transition-timing-function", | 3197 alias_for: "transition-timing-function", |
| 3196 }, | 3198 }, |
| 3197 { | 3199 { |
| 3198 name: "-webkit-user-select", | 3200 name: "-webkit-user-select", |
| 3199 alias_for: "user-select", | 3201 alias_for: "user-select", |
| 3200 }, | 3202 }, |
| 3201 ], | 3203 ], |
| 3202 } | 3204 } |
| OLD | NEW |