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

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

Issue 415613002: Merge CSSPropertyNames.in and SVGCSSPropertyNames.in with CSSProperties.in (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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
7 // Properties specifying alias_for do not get their own enum and instead map
8 // directly onto the CSSPropertyID they alias. Currently this means that the
9 // UseCounter will not pick up on these (crbug.com/304855)
10
11
6 // - longhands=property;other-property 12 // - longhands=property;other-property
7 // The property is a shorthand for several other properties. 13 // The property is a shorthand for several other properties. Setting this
14 // property will set builder_unreachable
8 15
9 16
10 // The remaining arguments are used for the StyleBuilder and allow us to 17 // The remaining arguments are used for the StyleBuilder and allow us to
11 // succinctly describe how to apply properties. When default handlers are not 18 // succinctly describe how to apply properties. When default handlers are not
12 // sufficient, we should prefer to use converter, and failing that define 19 // sufficient, we should prefer to use converter, and failing that define
13 // custom property handlers in StyleBuilderCustom.cpp. We only should use 20 // custom property handlers in StyleBuilderCustom.cpp. We only should use
14 // StyleBuilderFunctions.cpp.tmpl to define handlers when there are multiple 21 // StyleBuilderFunctions.cpp.tmpl to define handlers when there are multiple
15 // properties requiring the same handling, but converter doesn't suffice. 22 // properties requiring the same handling, but converter doesn't suffice.
16 23
17 // - font 24 // - font
(...skipping 22 matching lines...) Expand all
40 // - custom_initial 47 // - custom_initial
41 // - custom_inherit 48 // - custom_inherit
42 // - custom_value 49 // - custom_value
43 // - custom_all 50 // - custom_all
44 // Handlers of the given types will be declared but not defined. Setting 51 // Handlers of the given types will be declared but not defined. Setting
45 // custom_all is equivalent to setting the other three flags 52 // custom_all is equivalent to setting the other three flags
46 53
47 // - use_handlers_for=CSSPropertyTransform 54 // - use_handlers_for=CSSPropertyTransform
48 // Use handlers for the specified property instead of defining new ones 55 // Use handlers for the specified property instead of defining new ones
49 56
57 // - builder_unreachable
58 // Assert we shouldn't get into the StyleBuilder with this property.
50 // - builder_skip 59 // - builder_skip
51 // Ignore this property in the StyleBuilder 60 // Ignore this property in the StyleBuilder; usually builder_unreachable is bett er
52 61
53 // - direction_aware 62 // - direction_aware
54 // This property resolves to a different property based on the current direction 63 // This property resolves to a different property based on the current direction
55 // and writing mode. 64 // and writing mode.
56 65
57 66
58 // Properties with StyleBuilder handling 67 // Properties with StyleBuilder handling
59 68
60 // High Priority and all other font properties. 69 // High Priority and all other font properties.
61 // Other properties can depend upon high priority properties (e.g. font-size / e ms) 70 // Other properties can depend upon high priority properties (e.g. font-size / e ms)
62 color custom_all 71 color custom_all
72 direction custom_value
63 // FIXME: This is a mess due to crbug.com/353932. Shorthands shouldn't have 73 // FIXME: This is a mess due to crbug.com/353932. Shorthands shouldn't have
64 // any StyleBuilder handling! 74 // any StyleBuilder handling!
65 font custom_all, longhands=font-family;font-size;font-style;font-variant;font-we ight;font-stretch;line-height 75 font custom_all, longhands=font-family;font-size;font-style;font-variant;font-we ight;font-stretch;line-height
66 font-family custom_all 76 font-family custom_all
67 font-kerning font, type_name=FontDescription::Kerning, name_for_methods=Kerning 77 font-kerning font, type_name=FontDescription::Kerning, name_for_methods=Kerning
68 font-size custom_all 78 font-size custom_all
69 font-stretch font, type_name=FontStretch, name_for_methods=Stretch 79 font-stretch font, type_name=FontStretch, name_for_methods=Stretch
70 font-style font, type_name=FontStyle, name_for_methods=Style 80 font-style font, type_name=FontStyle, name_for_methods=Style
71 font-variant font, type_name=FontVariant, name_for_methods=Variant 81 font-variant font, type_name=FontVariant, name_for_methods=Variant
72 font-variant-ligatures font, name_for_methods=VariantLigatures, converter=conver tFontVariantLigatures 82 font-variant-ligatures font, name_for_methods=VariantLigatures, converter=conver tFontVariantLigatures
73 font-weight font, type_name=FontWeight, name_for_methods=Weight, converter=conve rtFontWeight 83 font-weight font, type_name=FontWeight, name_for_methods=Weight, converter=conve rtFontWeight
74 -webkit-font-feature-settings font, name_for_methods=FeatureSettings, converter= convertFontFeatureSettings 84 -webkit-font-feature-settings font, name_for_methods=FeatureSettings, converter= convertFontFeatureSettings
75 -webkit-font-smoothing font, type_name=FontSmoothingMode 85 -webkit-font-smoothing font, type_name=FontSmoothingMode
76 -webkit-locale custom_value 86 -webkit-locale custom_value
77 -webkit-text-orientation custom_value 87 -webkit-text-orientation custom_value
88 -webkit-writing-mode custom_value
78 text-rendering font, type_name=TextRenderingMode 89 text-rendering font, type_name=TextRenderingMode
79 zoom custom_all 90 zoom custom_all
91 line-height getter=specifiedLineHeight, custom_value
80 92
81 align-content 93 align-content
82 align-items custom_all 94 align-items custom_all
83 alignment-baseline svg 95 alignment-baseline svg
84 align-self custom_all 96 align-self custom_all
85 backface-visibility 97 backface-visibility
86 background-attachment custom_all 98 background-attachment custom_all
87 background-blend-mode custom_all 99 background-blend-mode custom_all
88 background-clip custom_all 100 background-clip custom_all
89 background-color custom_all 101 background-color custom_all
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 clip-path svg, name_for_methods=ClipperResource, converter=convertFragmentIdenti fier 139 clip-path svg, name_for_methods=ClipperResource, converter=convertFragmentIdenti fier
128 clip-rule svg, type_name=WindRule 140 clip-rule svg, type_name=WindRule
129 color-interpolation svg 141 color-interpolation svg
130 color-interpolation-filters svg, type_name=EColorInterpolation 142 color-interpolation-filters svg, type_name=EColorInterpolation
131 color-rendering svg 143 color-rendering svg
132 column-fill type_name=ColumnFill 144 column-fill type_name=ColumnFill
133 content custom_all 145 content custom_all
134 counter-increment custom_all 146 counter-increment custom_all
135 counter-reset custom_all 147 counter-reset custom_all
136 cursor custom_all 148 cursor custom_all
137 direction custom_value
138 display 149 display
139 dominant-baseline svg 150 dominant-baseline svg
140 empty-cells type_name=EEmptyCell 151 empty-cells type_name=EEmptyCell
141 fill svg, setter=setFillPaint, custom_all 152 fill svg, setter=setFillPaint, custom_all
142 fill-opacity svg, converter=convertNumberOrPercentage 153 fill-opacity svg, converter=convertNumberOrPercentage
143 fill-rule svg, type_name=WindRule 154 fill-rule svg, type_name=WindRule
144 filter svg, name_for_methods=FilterResource, converter=convertFragmentIdentifier 155 filter svg, name_for_methods=FilterResource, converter=convertFragmentIdentifier
145 flex-basis converter=convertLengthOrAuto 156 flex-basis converter=convertLengthOrAuto
146 flex-direction 157 flex-direction
147 flex-grow type_name=float 158 flex-grow type_name=float
(...skipping 16 matching lines...) Expand all
164 grid-template-rows custom_all 175 grid-template-rows custom_all
165 height initial=initialSize, converter=convertLengthSizing 176 height initial=initialSize, converter=convertLengthSizing
166 image-rendering 177 image-rendering
167 isolation 178 isolation
168 justify-content 179 justify-content
169 justify-items custom_all 180 justify-items custom_all
170 justify-self custom_all 181 justify-self custom_all
171 left initial=initialOffset, converter=convertLengthOrAuto 182 left initial=initialOffset, converter=convertLengthOrAuto
172 letter-spacing initial=initialLetterWordSpacing, converter=convertSpacing 183 letter-spacing initial=initialLetterWordSpacing, converter=convertSpacing
173 lighting-color svg, converter=convertSVGColor 184 lighting-color svg, converter=convertSVGColor
174 line-height getter=specifiedLineHeight, custom_value
175 list-style-image custom_value 185 list-style-image custom_value
176 list-style-position 186 list-style-position
177 list-style-type 187 list-style-type
178 margin-bottom initial=initialMargin, converter=convertLengthOrAuto 188 margin-bottom initial=initialMargin, converter=convertLengthOrAuto
179 margin-left initial=initialMargin, converter=convertLengthOrAuto 189 margin-left initial=initialMargin, converter=convertLengthOrAuto
180 margin-right initial=initialMargin, converter=convertLengthOrAuto 190 margin-right initial=initialMargin, converter=convertLengthOrAuto
181 margin-top initial=initialMargin, converter=convertLengthOrAuto 191 margin-top initial=initialMargin, converter=convertLengthOrAuto
182 marker-end svg, name_for_methods=MarkerEndResource, converter=convertFragmentIde ntifier 192 marker-end svg, name_for_methods=MarkerEndResource, converter=convertFragmentIde ntifier
183 marker-mid svg, name_for_methods=MarkerMidResource, converter=convertFragmentIde ntifier 193 marker-mid svg, name_for_methods=MarkerMidResource, converter=convertFragmentIde ntifier
184 marker-start svg, name_for_methods=MarkerStartResource, converter=convertFragmen tIdentifier 194 marker-start svg, name_for_methods=MarkerStartResource, converter=convertFragmen tIdentifier
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 -webkit-transform-origin-y converter=convertLength 359 -webkit-transform-origin-y converter=convertLength
350 -webkit-transform-origin-z converter=convertComputedLength<float> 360 -webkit-transform-origin-z converter=convertComputedLength<float>
351 -webkit-transform-style name_for_methods=TransformStyle3D 361 -webkit-transform-style name_for_methods=TransformStyle3D
352 -webkit-transition-delay custom_all 362 -webkit-transition-delay custom_all
353 -webkit-transition-duration custom_all 363 -webkit-transition-duration custom_all
354 -webkit-transition-property custom_all 364 -webkit-transition-property custom_all
355 -webkit-transition-timing-function custom_all 365 -webkit-transition-timing-function custom_all
356 -webkit-user-drag 366 -webkit-user-drag
357 -webkit-user-modify 367 -webkit-user-modify
358 -webkit-user-select 368 -webkit-user-select
359 -webkit-writing-mode custom_value
360 white-space 369 white-space
361 widows type_name=short, custom_all 370 widows type_name=short, custom_all
362 width initial=initialSize, converter=convertLengthSizing 371 width initial=initialSize, converter=convertLengthSizing
363 will-change custom_all 372 will-change custom_all
364 word-break 373 word-break
365 word-spacing initial=initialLetterWordSpacing, converter=convertSpacing 374 word-spacing initial=initialLetterWordSpacing, converter=convertSpacing
366 writing-mode svg, type_name=SVGWritingMode 375 writing-mode svg, type_name=SVGWritingMode
367 z-index type_name=int, custom_all 376 z-index type_name=int, custom_all
368 377
369 // Internal properties 378 // Internal properties
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 -webkit-columns longhands=-webkit-column-width;-webkit-column-count 483 -webkit-columns longhands=-webkit-column-width;-webkit-column-count
475 -webkit-margin-collapse longhands=-webkit-margin-before-collapse;-webkit-margin- after-collapse 484 -webkit-margin-collapse longhands=-webkit-margin-before-collapse;-webkit-margin- after-collapse
476 -webkit-mask longhands=-webkit-mask-image;-webkit-mask-position-x;-webkit-mask-p osition-y;-webkit-mask-size;-webkit-mask-repeat-x;-webkit-mask-repeat-y;-webkit- mask-origin;-webkit-mask-clip 485 -webkit-mask longhands=-webkit-mask-image;-webkit-mask-position-x;-webkit-mask-p osition-y;-webkit-mask-size;-webkit-mask-repeat-x;-webkit-mask-repeat-y;-webkit- mask-origin;-webkit-mask-clip
477 -webkit-mask-box-image longhands=-webkit-mask-box-image-source;-webkit-mask-box- image-slice;-webkit-mask-box-image-width;-webkit-mask-box-image-outset;-webkit-m ask-box-image-repeat 486 -webkit-mask-box-image longhands=-webkit-mask-box-image-source;-webkit-mask-box- image-slice;-webkit-mask-box-image-width;-webkit-mask-box-image-outset;-webkit-m ask-box-image-repeat
478 -webkit-mask-position longhands=-webkit-mask-position-x;-webkit-mask-position-y 487 -webkit-mask-position longhands=-webkit-mask-position-x;-webkit-mask-position-y
479 -webkit-mask-repeat longhands=-webkit-mask-repeat-x;-webkit-mask-repeat-y 488 -webkit-mask-repeat longhands=-webkit-mask-repeat-x;-webkit-mask-repeat-y
480 -webkit-text-emphasis longhands=-webkit-text-emphasis-style;-webkit-text-emphasi s-color 489 -webkit-text-emphasis longhands=-webkit-text-emphasis-style;-webkit-text-emphasi s-color
481 -webkit-text-stroke longhands=-webkit-text-stroke-width;-webkit-text-stroke-colo r 490 -webkit-text-stroke longhands=-webkit-text-stroke-width;-webkit-text-stroke-colo r
482 -webkit-transform-origin longhands=-webkit-transform-origin-x;-webkit-transform- origin-y;-webkit-transform-origin-z 491 -webkit-transform-origin longhands=-webkit-transform-origin-x;-webkit-transform- origin-y;-webkit-transform-origin-z
483 -webkit-transition longhands=-webkit-transition-property;-webkit-transition-dura tion;-webkit-transition-timing-function;-webkit-transition-delay 492 -webkit-transition longhands=-webkit-transition-property;-webkit-transition-dura tion;-webkit-transition-timing-function;-webkit-transition-delay
493
494 // Aliases; these map to the same CSSPropertyID
495
496 -epub-caption-side alias_for=caption-side
497 -epub-text-combine alias_for=-webkit-text-combine
498 -epub-text-emphasis alias_for=-webkit-text-emphasis
499 -epub-text-emphasis-color alias_for=-webkit-text-emphasis-color
500 -epub-text-emphasis-style alias_for=-webkit-text-emphasis-style
501 -epub-text-orientation alias_for=-webkit-text-orientation
502 -epub-text-transform alias_for=text-transform
503 -epub-word-break alias_for=word-break
504 -epub-writing-mode alias_for=-webkit-writing-mode
505 -webkit-align-content alias_for=align-content
506 -webkit-align-items alias_for=align-items
507 -webkit-align-self alias_for=align-self
508 -webkit-border-bottom-left-radius alias_for=border-bottom-left-radius
509 -webkit-border-bottom-right-radius alias_for=border-bottom-right-radius
510 -webkit-border-top-left-radius alias_for=border-top-left-radius
511 -webkit-border-top-right-radius alias_for=border-top-right-radius
512 -webkit-box-sizing alias_for=box-sizing
513 -webkit-flex alias_for=flex
514 -webkit-flex-basis alias_for=flex-basis
515 -webkit-flex-direction alias_for=flex-direction
516 -webkit-flex-flow alias_for=flex-flow
517 -webkit-flex-grow alias_for=flex-grow
518 -webkit-flex-shrink alias_for=flex-shrink
519 -webkit-flex-wrap alias_for=flex-wrap
520 -webkit-justify-content alias_for=justify-content
521 -webkit-opacity alias_for=opacity
522 -webkit-order alias_for=order
523 -webkit-shape-image-threshold alias_for=shape-image-threshold
524 -webkit-shape-margin alias_for=shape-margin
525 -webkit-shape-outside alias_for=shape-outside
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698