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

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

Issue 2563913002: Added functionality in ComputedStyleBase to use platform/ types (Closed)
Patch Set: Rebase Created 3 years, 11 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 // This file specifies all the CSS properties we support and the necessary 1 // This file specifies all the CSS properties we support and the necessary
2 // information for our code generation. The various supported arguments 2 // information for our code generation. The various supported arguments
3 // are described below with example usage 3 // are described below with example usage
4 4
5 5
6 // - alias_for=other-property 6 // - alias_for=other-property
7 // Properties specifying alias_for should be virtually identical to the 7 // Properties specifying alias_for should be virtually identical to the
8 // properties they alias. Minor parsing differences are allowed as long as 8 // properties they alias. Minor parsing differences are allowed as long as
9 // the CSSValues created are of the same format of the aliased property. 9 // the CSSValues created are of the same format of the aliased property.
10 10
(...skipping 22 matching lines...) Expand all
33 // TODO(aazzam): When most properties have been implemented, modify this so that 33 // TODO(aazzam): When most properties have been implemented, modify this so that
34 // properties with default classnames do not get this flag, and introduce a 34 // properties with default classnames do not get this flag, and introduce a
35 // 'not_implemented' flag instead. 35 // 'not_implemented' flag instead.
36 36
37 37
38 // - keyword_only 38 // - keyword_only
39 // These properties only store keyword values. This is used when 39 // These properties only store keyword values. This is used when
40 // generating the ComputedStyle storage for the property. The initial 40 // generating the ComputedStyle storage for the property. The initial
41 // value for this property on a ComputedStyle is specified with the 41 // value for this property on a ComputedStyle is specified with the
42 // initial_keyword flag below. 42 // initial_keyword flag below.
43 // TODO(sashab): Rename this to field_type=keyword once we support
44 // multiple types of generatable fields in ComputedStyle
43 // TODO(sashab, meade): Remove this once TypedOM types are specified for 45 // TODO(sashab, meade): Remove this once TypedOM types are specified for
44 // every property, since this value can be inferred from that. 46 // every property, since this value can be inferred from that.
45 47
46 48
49 // - field_storage_type=path/to/Type
50 // For properties that have generated field storage in ComputedStyle,
51 // this optional argument will override the field's generated type with
52 // an external one specified at the given path. The type must be defined
53 // in a header file at that path, and have the same name as the file.
54 // Currently, only enum types are supported, and the enum's only values
55 // must be CamelCase values of the keywords of the property.
56
57
47 // - keywords=[keyword1|keyword2] 58 // - keywords=[keyword1|keyword2]
48 // This specifies all valid keyword values for the property. 59 // This specifies all valid keyword values for the property.
49 // TODO(sashab): Once all properties are represented here, delete 60 // TODO(sashab): Once all properties are represented here, delete
50 // CSSValueKeywords.in and use this list instead. 61 // CSSValueKeywords.in and use this list instead.
51 62
52 63
53 // - initial_keyword 64 // - initial_keyword
54 // This specifies the initial keyword value for the keyword_only 65 // This specifies the initial keyword value for the keyword_only
55 // property. 66 // property.
56 67
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 animation-play-state custom_all 155 animation-play-state custom_all
145 animation-timing-function custom_all 156 animation-timing-function custom_all
146 transition-delay custom_all 157 transition-delay custom_all
147 transition-duration custom_all 158 transition-duration custom_all
148 transition-property custom_all 159 transition-property custom_all
149 transition-timing-function custom_all 160 transition-timing-function custom_all
150 161
151 // High Priority and all other font properties. 162 // High Priority and all other font properties.
152 // Other properties can depend upon high priority properties (e.g. font-size / e ms) 163 // Other properties can depend upon high priority properties (e.g. font-size / e ms)
153 color interpolable, inherited, custom_all 164 color interpolable, inherited, custom_all
154 direction inherited, custom_value 165 direction inherited, custom_value, keyword_only, keywords=[ltr|rtl], initial_key word=ltr, field_storage_type=platform/text/TextDirection
155 font-family inherited, font, type_name=FontDescription::FamilyDescription, name_ for_methods=FamilyDescription, converter=convertFontFamily 166 font-family inherited, font, type_name=FontDescription::FamilyDescription, name_ for_methods=FamilyDescription, converter=convertFontFamily
156 font-kerning inherited, font, type_name=FontDescription::Kerning, name_for_metho ds=Kerning 167 font-kerning inherited, font, type_name=FontDescription::Kerning, name_for_metho ds=Kerning
157 font-size interpolable, inherited, font, name_for_methods=Size, getter=getSize, converter=convertFontSize 168 font-size interpolable, inherited, font, name_for_methods=Size, getter=getSize, converter=convertFontSize
158 font-size-adjust runtime_flag=CSSFontSizeAdjust, interpolable, inherited, font, name_for_methods=SizeAdjust, converter=convertFontSizeAdjust 169 font-size-adjust runtime_flag=CSSFontSizeAdjust, interpolable, inherited, font, name_for_methods=SizeAdjust, converter=convertFontSizeAdjust
159 font-stretch inherited, font, type_name=FontStretch, name_for_methods=Stretch 170 font-stretch inherited, font, type_name=FontStretch, name_for_methods=Stretch
160 font-style inherited, font, type_name=FontStyle, name_for_methods=Style 171 font-style inherited, font, type_name=FontStyle, name_for_methods=Style
161 font-variant-ligatures inherited, font, type_name=VariantLigatures, name_for_met hods=VariantLigatures, converter=convertFontVariantLigatures 172 font-variant-ligatures inherited, font, type_name=VariantLigatures, name_for_met hods=VariantLigatures, converter=convertFontVariantLigatures
162 font-variant-caps inherited, font, name_for_methods=VariantCaps, converter=conve rtFontVariantCaps 173 font-variant-caps inherited, font, name_for_methods=VariantCaps, converter=conve rtFontVariantCaps
163 font-variant-numeric inherited, font, name_for_methods=VariantNumeric, converter =convertFontVariantNumeric 174 font-variant-numeric inherited, font, name_for_methods=VariantNumeric, converter =convertFontVariantNumeric
164 font-weight interpolable, inherited, font, type_name=FontWeight, name_for_method s=Weight, converter=convertFontWeight 175 font-weight interpolable, inherited, font, type_name=FontWeight, name_for_method s=Weight, converter=convertFontWeight
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 -webkit-text-size-adjust alias_for=text-size-adjust 642 -webkit-text-size-adjust alias_for=text-size-adjust
632 -webkit-transform alias_for=transform 643 -webkit-transform alias_for=transform
633 -webkit-transform-origin alias_for=transform-origin 644 -webkit-transform-origin alias_for=transform-origin
634 -webkit-transform-style alias_for=transform-style 645 -webkit-transform-style alias_for=transform-style
635 -webkit-transition alias_for=transition 646 -webkit-transition alias_for=transition
636 -webkit-transition-delay alias_for=transition-delay 647 -webkit-transition-delay alias_for=transition-delay
637 -webkit-transition-duration alias_for=transition-duration 648 -webkit-transition-duration alias_for=transition-duration
638 -webkit-transition-property alias_for=transition-property 649 -webkit-transition-property alias_for=transition-property
639 -webkit-transition-timing-function alias_for=transition-timing-function 650 -webkit-transition-timing-function alias_for=transition-timing-function
640 -webkit-user-select alias_for=user-select 651 -webkit-user-select alias_for=user-select
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698