| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 }, | 43 }, |
| 44 | 44 |
| 45 // - api_methods: ["method1", "method2"] | 45 // - api_methods: ["method1", "method2"] |
| 46 // List of methods that are implemented in the CSSPropertyAPI for this prope
rty. | 46 // List of methods that are implemented in the CSSPropertyAPI for this prope
rty. |
| 47 // This is used by make_css_property_apis.py to specify which functions are
defined | 47 // This is used by make_css_property_apis.py to specify which functions are
defined |
| 48 // in the .h file for this property, and also used in CSSPropertyAPIFiles.h.
tmpl to | 48 // in the .h file for this property, and also used in CSSPropertyAPIFiles.h.
tmpl to |
| 49 // generate declarations for only the methods this property has implementati
ons for. | 49 // generate declarations for only the methods this property has implementati
ons for. |
| 50 api_methods: { | 50 api_methods: { |
| 51 default: [], | 51 default: [], |
| 52 valid_type: "list", | 52 valid_type: "list", |
| 53 valid_values: ["parseSingleValue"], | 53 valid_values: ["parseSingleValue", "parseShorthand"], |
| 54 }, | 54 }, |
| 55 | 55 |
| 56 // - keyword_only | 56 // - keyword_only |
| 57 // These properties only store keyword values. This is used when | 57 // These properties only store keyword values. This is used when |
| 58 // generating the ComputedStyle storage for the property. The initial | 58 // generating the ComputedStyle storage for the property. The initial |
| 59 // value for this property on a ComputedStyle is specified with the | 59 // value for this property on a ComputedStyle is specified with the |
| 60 // initial_keyword flag below. | 60 // initial_keyword flag below. |
| 61 // TODO(sashab): Rename this to field_type=keyword once we support | 61 // TODO(sashab): Rename this to field_type=keyword once we support |
| 62 // multiple types of generatable fields in ComputedStyle | 62 // multiple types of generatable fields in ComputedStyle |
| 63 // TODO(sashab, meade): Remove this once TypedOM types are specified for | 63 // TODO(sashab, meade): Remove this once TypedOM types are specified for |
| (...skipping 2848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2912 { | 2912 { |
| 2913 name: "-webkit-transition-timing-function", | 2913 name: "-webkit-transition-timing-function", |
| 2914 alias_for: "transition-timing-function", | 2914 alias_for: "transition-timing-function", |
| 2915 }, | 2915 }, |
| 2916 { | 2916 { |
| 2917 name: "-webkit-user-select", | 2917 name: "-webkit-user-select", |
| 2918 alias_for: "user-select", | 2918 alias_for: "user-select", |
| 2919 }, | 2919 }, |
| 2920 ], | 2920 ], |
| 2921 } | 2921 } |
| OLD | NEW |