OLD | NEW |
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 27 matching lines...) Expand all Loading... |
38 // Flags which go into CSSPropertyMetadata: | 38 // Flags which go into CSSPropertyMetadata: |
39 // - interpolable | 39 // - interpolable |
40 // The interpolable flag indicates whether a property can be animated smoothly. | 40 // The interpolable flag indicates whether a property can be animated smoothly. |
41 // If this flag is set, the property should also be added to the switch | 41 // If this flag is set, the property should also be added to the switch |
42 // statements in AnimatedStyleBuilder, CSSPropertyEquality and | 42 // statements in AnimatedStyleBuilder, CSSPropertyEquality and |
43 // CSSAnimatableValueFactory. | 43 // CSSAnimatableValueFactory. |
44 // - inherited | 44 // - inherited |
45 // The property will inherit by default if no value is specified, typically | 45 // The property will inherit by default if no value is specified, typically |
46 // mentioned in specifications as "Inherited: yes" | 46 // mentioned in specifications as "Inherited: yes" |
47 | 47 |
| 48 // - independent |
| 49 // This property affects only one field on ComputedStyle, and can be set |
| 50 // directly during inheritance instead of forcing a recalc. |
| 51 // StyleResolver and StyleAdjuster are not invoked when these properties |
| 52 // are changed on a parent. Recalcs only happen if at least one |
| 53 // non-independent inherited property is changed in the parent. |
48 | 54 |
49 // The remaining arguments are used for the StyleBuilder and allow us to | 55 // The remaining arguments are used for the StyleBuilder and allow us to |
50 // succinctly describe how to apply properties. When default handlers are not | 56 // succinctly describe how to apply properties. When default handlers are not |
51 // sufficient, we should prefer to use converter, and failing that define | 57 // sufficient, we should prefer to use converter, and failing that define |
52 // custom property handlers in StyleBuilderCustom.cpp. We only should use | 58 // custom property handlers in StyleBuilderCustom.cpp. We only should use |
53 // StyleBuilderFunctions.cpp.tmpl to define handlers when there are multiple | 59 // StyleBuilderFunctions.cpp.tmpl to define handlers when there are multiple |
54 // properties requiring the same handling, but converter doesn't suffice. | 60 // properties requiring the same handling, but converter doesn't suffice. |
55 | 61 |
56 // - font | 62 // - font |
57 // The default property handlers call into the FontBuilder instead of setting | 63 // The default property handlers call into the FontBuilder instead of setting |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 overflow-wrap inherited | 271 overflow-wrap inherited |
266 overflow-x type_name=EOverflow | 272 overflow-x type_name=EOverflow |
267 overflow-y type_name=EOverflow | 273 overflow-y type_name=EOverflow |
268 padding-bottom interpolable, initial=initialPadding, converter=convertLength | 274 padding-bottom interpolable, initial=initialPadding, converter=convertLength |
269 padding-left interpolable, initial=initialPadding, converter=convertLength | 275 padding-left interpolable, initial=initialPadding, converter=convertLength |
270 padding-right interpolable, initial=initialPadding, converter=convertLength | 276 padding-right interpolable, initial=initialPadding, converter=convertLength |
271 padding-top interpolable, initial=initialPadding, converter=convertLength | 277 padding-top interpolable, initial=initialPadding, converter=convertLength |
272 paint-order inherited, svg, converter=convertPaintOrder | 278 paint-order inherited, svg, converter=convertPaintOrder |
273 perspective interpolable, converter=convertPerspective | 279 perspective interpolable, converter=convertPerspective |
274 perspective-origin interpolable, converter=convertPosition | 280 perspective-origin interpolable, converter=convertPosition |
275 pointer-events inherited | 281 pointer-events inherited, independent |
276 position custom_inherit | 282 position custom_inherit |
277 quotes inherited, converter=convertQuotes | 283 quotes inherited, converter=convertQuotes |
278 resize custom_value | 284 resize custom_value |
279 right typedom_types=[Length], keywords=[auto], supports_percentage, interpolable
, initial=initialOffset, converter=convertLengthOrAuto | 285 right typedom_types=[Length], keywords=[auto], supports_percentage, interpolable
, initial=initialOffset, converter=convertLengthOrAuto |
280 r interpolable, svg, converter=convertLength | 286 r interpolable, svg, converter=convertLength |
281 rx interpolable, svg, converter=convertLengthOrAuto | 287 rx interpolable, svg, converter=convertLengthOrAuto |
282 ry interpolable, svg, converter=convertLengthOrAuto | 288 ry interpolable, svg, converter=convertLengthOrAuto |
283 scroll-behavior runtime_flag=CSSOMSmoothScroll, type_name=ScrollBehavior | 289 scroll-behavior runtime_flag=CSSOMSmoothScroll, type_name=ScrollBehavior |
284 scroll-snap-type runtime_flag=CSSScrollSnapPoints, type_name=ScrollSnapType | 290 scroll-snap-type runtime_flag=CSSScrollSnapPoints, type_name=ScrollSnapType |
285 scroll-snap-points-x runtime_flag=CSSScrollSnapPoints, converter=convertSnapPoin
ts | 291 scroll-snap-points-x runtime_flag=CSSScrollSnapPoints, converter=convertSnapPoin
ts |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 translate runtime_flag=CSSIndependentTransformProperties, converter=convertTrans
late, interpolable | 335 translate runtime_flag=CSSIndependentTransformProperties, converter=convertTrans
late, interpolable |
330 rotate runtime_flag=CSSIndependentTransformProperties, converter=convertRotate,
interpolable | 336 rotate runtime_flag=CSSIndependentTransformProperties, converter=convertRotate,
interpolable |
331 scale runtime_flag=CSSIndependentTransformProperties, converter=convertScale, in
terpolable | 337 scale runtime_flag=CSSIndependentTransformProperties, converter=convertScale, in
terpolable |
332 transition-delay custom_all | 338 transition-delay custom_all |
333 transition-duration custom_all | 339 transition-duration custom_all |
334 transition-property custom_all | 340 transition-property custom_all |
335 transition-timing-function custom_all | 341 transition-timing-function custom_all |
336 unicode-bidi | 342 unicode-bidi |
337 vector-effect svg | 343 vector-effect svg |
338 vertical-align interpolable, custom_inherit, custom_value | 344 vertical-align interpolable, custom_inherit, custom_value |
339 visibility interpolable, inherited | 345 visibility interpolable, inherited, independent |
340 x interpolable, svg, converter=convertLength | 346 x interpolable, svg, converter=convertLength |
341 y interpolable, svg, converter=convertLength | 347 y interpolable, svg, converter=convertLength |
342 -webkit-appearance type_name=ControlPart | 348 -webkit-appearance type_name=ControlPart |
343 -webkit-app-region custom_all | 349 -webkit-app-region custom_all |
344 -webkit-background-clip use_handlers_for=CSSPropertyBackgroundClip | 350 -webkit-background-clip use_handlers_for=CSSPropertyBackgroundClip |
345 -webkit-background-origin use_handlers_for=CSSPropertyBackgroundOrigin | 351 -webkit-background-origin use_handlers_for=CSSPropertyBackgroundOrigin |
346 -webkit-border-horizontal-spacing interpolable, inherited, name_for_methods=Hori
zontalBorderSpacing, converter=convertComputedLength<short> | 352 -webkit-border-horizontal-spacing interpolable, inherited, name_for_methods=Hori
zontalBorderSpacing, converter=convertComputedLength<short> |
347 -webkit-border-image initial=initialNinePieceImage, custom_value | 353 -webkit-border-image initial=initialNinePieceImage, custom_value |
348 -webkit-border-vertical-spacing interpolable, inherited, name_for_methods=Vertic
alBorderSpacing, converter=convertComputedLength<short> | 354 -webkit-border-vertical-spacing interpolable, inherited, name_for_methods=Vertic
alBorderSpacing, converter=convertComputedLength<short> |
349 -webkit-box-align type_name=EBoxAlignment | 355 -webkit-box-align type_name=EBoxAlignment |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
580 -webkit-shape-outside alias_for=shape-outside | 586 -webkit-shape-outside alias_for=shape-outside |
581 -webkit-text-size-adjust alias_for=text-size-adjust | 587 -webkit-text-size-adjust alias_for=text-size-adjust |
582 -webkit-transform alias_for=transform | 588 -webkit-transform alias_for=transform |
583 -webkit-transform-origin alias_for=transform-origin | 589 -webkit-transform-origin alias_for=transform-origin |
584 -webkit-transform-style alias_for=transform-style | 590 -webkit-transform-style alias_for=transform-style |
585 -webkit-transition alias_for=transition | 591 -webkit-transition alias_for=transition |
586 -webkit-transition-delay alias_for=transition-delay | 592 -webkit-transition-delay alias_for=transition-delay |
587 -webkit-transition-duration alias_for=transition-duration | 593 -webkit-transition-duration alias_for=transition-duration |
588 -webkit-transition-property alias_for=transition-property | 594 -webkit-transition-property alias_for=transition-property |
589 -webkit-transition-timing-function alias_for=transition-timing-function | 595 -webkit-transition-timing-function alias_for=transition-timing-function |
OLD | NEW |