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 // This list must be an ordered, complete list of methods whose names mat
ch those |
| 54 // defined in CSSPropertyDescriptor.h. |
53 valid_values: ["parseSingleValue"], | 55 valid_values: ["parseSingleValue"], |
54 }, | 56 }, |
55 | 57 |
56 // - keyword_only | 58 // - keyword_only |
57 // These properties only store keyword values. This is used when | 59 // These properties only store keyword values. This is used when |
58 // generating the ComputedStyle storage for the property. The initial | 60 // generating the ComputedStyle storage for the property. The initial |
59 // value for this property on a ComputedStyle is specified with the | 61 // value for this property on a ComputedStyle is specified with the |
60 // initial_keyword flag below. | 62 // initial_keyword flag below. |
61 // TODO(sashab): Rename this to field_type=keyword once we support | 63 // TODO(sashab): Rename this to field_type=keyword once we support |
62 // multiple types of generatable fields in ComputedStyle | 64 // multiple types of generatable fields in ComputedStyle |
(...skipping 2869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2932 { | 2934 { |
2933 name: "-webkit-transition-timing-function", | 2935 name: "-webkit-transition-timing-function", |
2934 alias_for: "transition-timing-function", | 2936 alias_for: "transition-timing-function", |
2935 }, | 2937 }, |
2936 { | 2938 { |
2937 name: "-webkit-user-select", | 2939 name: "-webkit-user-select", |
2938 alias_for: "user-select", | 2940 alias_for: "user-select", |
2939 }, | 2941 }, |
2940 ], | 2942 ], |
2941 } | 2943 } |
OLD | NEW |