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

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

Issue 2801523002: Allow ComputedStyleBase property fields to be storage_only. (Closed)
Patch Set: Rebase Created 3 years, 8 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
« no previous file with comments | « third_party/WebKit/Source/build/scripts/make_computed_style_base.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/build/scripts/make_computed_style_base.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698