Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: third_party/WebKit/Source/core/css/CSSProperties.json5

Issue 2670433002: Makes descriptors hold nullptr for properties not implemented in API. (Closed)
Patch Set: Neatened up code Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698