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

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: fix crash without experimental flag 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
« no previous file with comments | « Source/core/core_generated.gyp ('k') | Source/core/css/CSSProperty.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
8 14
9 15
10 // The remaining arguments are used for the StyleBuilder and allow us to 16 // The remaining arguments are used for the StyleBuilder and allow us to
11 // succinctly describe how to apply properties. When default handlers are not 17 // succinctly describe how to apply properties. When default handlers are not
12 // sufficient, we should prefer to use converter, and failing that define 18 // sufficient, we should prefer to use converter, and failing that define
13 // custom property handlers in StyleBuilderCustom.cpp. We only should use 19 // custom property handlers in StyleBuilderCustom.cpp. We only should use
14 // StyleBuilderFunctions.cpp.tmpl to define handlers when there are multiple 20 // StyleBuilderFunctions.cpp.tmpl to define handlers when there are multiple
15 // properties requiring the same handling, but converter doesn't suffice. 21 // properties requiring the same handling, but converter doesn't suffice.
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // - direction_aware 59 // - direction_aware
54 // This property resolves to a different property based on the current direction 60 // This property resolves to a different property based on the current direction
55 // and writing mode. 61 // and writing mode.
56 62
57 63
58 // Properties with StyleBuilder handling 64 // Properties with StyleBuilder handling
59 65
60 // High Priority and all other font properties. 66 // High Priority and all other font properties.
61 // Other properties can depend upon high priority properties (e.g. font-size / e ms) 67 // Other properties can depend upon high priority properties (e.g. font-size / e ms)
62 color custom_all 68 color custom_all
69 direction custom_value
63 // FIXME: This is a mess due to crbug.com/353932. Shorthands shouldn't have 70 // FIXME: This is a mess due to crbug.com/353932. Shorthands shouldn't have
64 // any StyleBuilder handling! 71 // any StyleBuilder handling!
65 font custom_all, longhands=font-family;font-size;font-style;font-variant;font-we ight;font-stretch;line-height 72 font custom_all, longhands=font-family;font-size;font-style;font-variant;font-we ight;font-stretch;line-height
66 font-family custom_all 73 font-family custom_all
67 font-kerning font, type_name=FontDescription::Kerning, name_for_methods=Kerning 74 font-kerning font, type_name=FontDescription::Kerning, name_for_methods=Kerning
68 font-size custom_all 75 font-size custom_all
69 font-stretch font, type_name=FontStretch, name_for_methods=Stretch 76 font-stretch font, type_name=FontStretch, name_for_methods=Stretch
70 font-style font, type_name=FontStyle, name_for_methods=Style 77 font-style font, type_name=FontStyle, name_for_methods=Style
71 font-variant font, type_name=FontVariant, name_for_methods=Variant 78 font-variant font, type_name=FontVariant, name_for_methods=Variant
72 font-variant-ligatures font, name_for_methods=VariantLigatures, converter=conver tFontVariantLigatures 79 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 80 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 81 -webkit-font-feature-settings font, name_for_methods=FeatureSettings, converter= convertFontFeatureSettings
75 -webkit-font-smoothing font, type_name=FontSmoothingMode 82 -webkit-font-smoothing font, type_name=FontSmoothingMode
76 -webkit-locale custom_value 83 -webkit-locale custom_value
77 -webkit-text-orientation custom_value 84 -webkit-text-orientation custom_value
85 -webkit-writing-mode custom_value
78 text-rendering font, type_name=TextRenderingMode 86 text-rendering font, type_name=TextRenderingMode
79 zoom custom_all 87 zoom custom_all
88 line-height getter=specifiedLineHeight, custom_value
80 89
81 align-content 90 align-content
82 align-items custom_all 91 align-items custom_all
83 alignment-baseline svg 92 alignment-baseline svg
84 align-self custom_all 93 align-self custom_all
85 backface-visibility 94 backface-visibility
86 background-attachment custom_all 95 background-attachment custom_all
87 background-blend-mode custom_all 96 background-blend-mode custom_all
88 background-clip custom_all 97 background-clip custom_all
89 background-color custom_all 98 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 136 clip-path svg, name_for_methods=ClipperResource, converter=convertFragmentIdenti fier
128 clip-rule svg, type_name=WindRule 137 clip-rule svg, type_name=WindRule
129 color-interpolation svg 138 color-interpolation svg
130 color-interpolation-filters svg, type_name=EColorInterpolation 139 color-interpolation-filters svg, type_name=EColorInterpolation
131 color-rendering svg 140 color-rendering svg
132 column-fill type_name=ColumnFill 141 column-fill type_name=ColumnFill
133 content custom_all 142 content custom_all
134 counter-increment custom_all 143 counter-increment custom_all
135 counter-reset custom_all 144 counter-reset custom_all
136 cursor custom_all 145 cursor custom_all
137 direction custom_value
138 display 146 display
139 dominant-baseline svg 147 dominant-baseline svg
140 empty-cells type_name=EEmptyCell 148 empty-cells type_name=EEmptyCell
141 fill svg, setter=setFillPaint, custom_all 149 fill svg, setter=setFillPaint, custom_all
142 fill-opacity svg, converter=convertNumberOrPercentage 150 fill-opacity svg, converter=convertNumberOrPercentage
143 fill-rule svg, type_name=WindRule 151 fill-rule svg, type_name=WindRule
144 filter svg, name_for_methods=FilterResource, converter=convertFragmentIdentifier 152 filter svg, name_for_methods=FilterResource, converter=convertFragmentIdentifier
145 flex-basis converter=convertLengthOrAuto 153 flex-basis converter=convertLengthOrAuto
146 flex-direction 154 flex-direction
147 flex-grow type_name=float 155 flex-grow type_name=float
(...skipping 16 matching lines...) Expand all
164 grid-template-rows custom_all 172 grid-template-rows custom_all
165 height initial=initialSize, converter=convertLengthSizing 173 height initial=initialSize, converter=convertLengthSizing
166 image-rendering 174 image-rendering
167 isolation 175 isolation
168 justify-content 176 justify-content
169 justify-items custom_all 177 justify-items custom_all
170 justify-self custom_all 178 justify-self custom_all
171 left initial=initialOffset, converter=convertLengthOrAuto 179 left initial=initialOffset, converter=convertLengthOrAuto
172 letter-spacing initial=initialLetterWordSpacing, converter=convertSpacing 180 letter-spacing initial=initialLetterWordSpacing, converter=convertSpacing
173 lighting-color svg, converter=convertSVGColor 181 lighting-color svg, converter=convertSVGColor
174 line-height getter=specifiedLineHeight, custom_value
175 list-style-image custom_value 182 list-style-image custom_value
176 list-style-position 183 list-style-position
177 list-style-type 184 list-style-type
178 margin-bottom initial=initialMargin, converter=convertLengthOrAuto 185 margin-bottom initial=initialMargin, converter=convertLengthOrAuto
179 margin-left initial=initialMargin, converter=convertLengthOrAuto 186 margin-left initial=initialMargin, converter=convertLengthOrAuto
180 margin-right initial=initialMargin, converter=convertLengthOrAuto 187 margin-right initial=initialMargin, converter=convertLengthOrAuto
181 margin-top initial=initialMargin, converter=convertLengthOrAuto 188 margin-top initial=initialMargin, converter=convertLengthOrAuto
182 marker-end svg, name_for_methods=MarkerEndResource, converter=convertFragmentIde ntifier 189 marker-end svg, name_for_methods=MarkerEndResource, converter=convertFragmentIde ntifier
183 marker-mid svg, name_for_methods=MarkerMidResource, converter=convertFragmentIde ntifier 190 marker-mid svg, name_for_methods=MarkerMidResource, converter=convertFragmentIde ntifier
184 marker-start svg, name_for_methods=MarkerStartResource, converter=convertFragmen tIdentifier 191 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 356 -webkit-transform-origin-y converter=convertLength
350 -webkit-transform-origin-z converter=convertComputedLength<float> 357 -webkit-transform-origin-z converter=convertComputedLength<float>
351 -webkit-transform-style name_for_methods=TransformStyle3D 358 -webkit-transform-style name_for_methods=TransformStyle3D
352 -webkit-transition-delay custom_all 359 -webkit-transition-delay custom_all
353 -webkit-transition-duration custom_all 360 -webkit-transition-duration custom_all
354 -webkit-transition-property custom_all 361 -webkit-transition-property custom_all
355 -webkit-transition-timing-function custom_all 362 -webkit-transition-timing-function custom_all
356 -webkit-user-drag 363 -webkit-user-drag
357 -webkit-user-modify 364 -webkit-user-modify
358 -webkit-user-select 365 -webkit-user-select
359 -webkit-writing-mode custom_value
360 white-space 366 white-space
361 widows type_name=short, custom_all 367 widows type_name=short, custom_all
362 width initial=initialSize, converter=convertLengthSizing 368 width initial=initialSize, converter=convertLengthSizing
363 will-change custom_all 369 will-change custom_all
364 word-break 370 word-break
365 word-spacing initial=initialLetterWordSpacing, converter=convertSpacing 371 word-spacing initial=initialLetterWordSpacing, converter=convertSpacing
366 writing-mode svg, type_name=SVGWritingMode 372 writing-mode svg, type_name=SVGWritingMode
367 z-index type_name=int, custom_all 373 z-index type_name=int, custom_all
368 374
369 // Internal properties 375 // Internal properties
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 -webkit-columns longhands=-webkit-column-width;-webkit-column-count 480 -webkit-columns longhands=-webkit-column-width;-webkit-column-count
475 -webkit-margin-collapse longhands=-webkit-margin-before-collapse;-webkit-margin- after-collapse 481 -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 482 -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 483 -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 484 -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 485 -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 486 -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 487 -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 488 -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 489 -webkit-transition longhands=-webkit-transition-property;-webkit-transition-dura tion;-webkit-transition-timing-function;-webkit-transition-delay
490
491 // Aliases; these map to the same CSSPropertyID
492
493 -epub-caption-side alias_for=caption-side
494 -epub-text-combine alias_for=-webkit-text-combine
495 -epub-text-emphasis alias_for=-webkit-text-emphasis
496 -epub-text-emphasis-color alias_for=-webkit-text-emphasis-color
497 -epub-text-emphasis-style alias_for=-webkit-text-emphasis-style
498 -epub-text-orientation alias_for=-webkit-text-orientation
499 -epub-text-transform alias_for=text-transform
500 -epub-word-break alias_for=word-break
501 -epub-writing-mode alias_for=-webkit-writing-mode
502 -webkit-align-content alias_for=align-content
503 -webkit-align-items alias_for=align-items
504 -webkit-align-self alias_for=align-self
505 -webkit-border-bottom-left-radius alias_for=border-bottom-left-radius
506 -webkit-border-bottom-right-radius alias_for=border-bottom-right-radius
507 -webkit-border-top-left-radius alias_for=border-top-left-radius
508 -webkit-border-top-right-radius alias_for=border-top-right-radius
509 -webkit-box-sizing alias_for=box-sizing
510 -webkit-flex alias_for=flex
511 -webkit-flex-basis alias_for=flex-basis
512 -webkit-flex-direction alias_for=flex-direction
513 -webkit-flex-flow alias_for=flex-flow
514 -webkit-flex-grow alias_for=flex-grow
515 -webkit-flex-shrink alias_for=flex-shrink
516 -webkit-flex-wrap alias_for=flex-wrap
517 -webkit-justify-content alias_for=justify-content
518 -webkit-opacity alias_for=opacity
519 -webkit-order alias_for=order
520 -webkit-shape-image-threshold alias_for=shape-image-threshold
521 -webkit-shape-margin alias_for=shape-margin
522 -webkit-shape-outside alias_for=shape-outside
OLDNEW
« no previous file with comments | « Source/core/core_generated.gyp ('k') | Source/core/css/CSSProperty.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698