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

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

Issue 2567473002: Made a generator for CSSPropertyDescriptor.cpp (Closed)
Patch Set: Created 4 years 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
11 11
12 // - runtime_flag=CSSGridLayout 12 // - runtime_flag=CSSGridLayout
13 // The flag on RuntimeEnabledFeatures conditionally enables the property. 13 // The flag on RuntimeEnabledFeatures conditionally enables the property.
14 // This doesn't currently work with alias_for. 14 // This doesn't currently work with alias_for.
15 15
16 16
17 // - descriptor_only 17 // - descriptor_only
18 // These are actually descriptors and not CSS properties. Properties with 18 // These are actually descriptors and not CSS properties. Properties with
19 // the same name as a descriptor do not get this flag. 19 // the same name as a descriptor do not get this flag.
20 20
21 21
22 // - longhands=property;other-property 22 // - longhands=property;other-property
23 // The property is a shorthand for several other properties. 23 // The property is a shorthand for several other properties.
24 24
25 25
26 // - generated_api_class[=group]
27 // We have a CSSPropertyAPI interface which contains parsing functions for
28 // properties, and will be implemented by all CSS properties.
29 // * When we want to generate the .h file for a property, we add this flag.
sashab 2016/12/08 23:56:35 Small nit: instead of saying "we", phrase stuff li
aazzam 2016/12/09 00:44:39 tried re-wording, ptal :)
30 // * Properties which have the same parsing logic should be grouped together whe n
31 // generating an API .h file for the property. If the specified property is in
32 // a group, the value of that flag should be set to the group name - all of
sashab 2016/12/08 23:56:35 Remove double space before value Also explain tha
33 // the properties with this flag value will inherit from a class with this nam e.
34 // * Properties which are not generated do not get this flag.
35 // TODO(aazzam): Once all .h files are generated, change this so that only group ed
36 // properties have this flag and introduce a 'not_generated' flag instead.
37
38
26 // - keyword_only 39 // - keyword_only
27 // These properties only store keyword values. This is used when 40 // These properties only store keyword values. This is used when
28 // generating the ComputedStyle storage for the property. The initial 41 // generating the ComputedStyle storage for the property. The initial
29 // value for this property on a ComputedStyle is specified with the 42 // value for this property on a ComputedStyle is specified with the
30 // initial_keyword flag below. 43 // initial_keyword flag below.
31 // TODO(sashab, meade): Remove this once TypedOM types are specified for 44 // TODO(sashab, meade): Remove this once TypedOM types are specified for
32 // every property, since this value can be inferred from that. 45 // every property, since this value can be inferred from that.
33 46
34 47
35 // - keywords=[keyword1|keyword2] 48 // - keywords=[keyword1|keyword2]
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 -webkit-border-before-color direction_aware 474 -webkit-border-before-color direction_aware
462 -webkit-border-before-style direction_aware 475 -webkit-border-before-style direction_aware
463 -webkit-border-before-width direction_aware 476 -webkit-border-before-width direction_aware
464 -webkit-border-after-color direction_aware 477 -webkit-border-after-color direction_aware
465 -webkit-border-after-style direction_aware 478 -webkit-border-after-style direction_aware
466 -webkit-border-after-width direction_aware 479 -webkit-border-after-width direction_aware
467 -webkit-margin-end direction_aware 480 -webkit-margin-end direction_aware
468 -webkit-margin-start direction_aware 481 -webkit-margin-start direction_aware
469 -webkit-margin-before direction_aware 482 -webkit-margin-before direction_aware
470 -webkit-margin-after direction_aware 483 -webkit-margin-after direction_aware
471 -webkit-padding-end direction_aware 484 -webkit-padding-end direction_aware, generated_api_class=WebkitPadding
472 -webkit-padding-start direction_aware 485 -webkit-padding-start direction_aware, generated_api_class=WebkitPadding
473 -webkit-padding-before direction_aware 486 -webkit-padding-before direction_aware, generated_api_class=WebkitPadding
474 -webkit-padding-after direction_aware 487 -webkit-padding-after direction_aware, generated_api_class=WebkitPadding
475 -webkit-logical-width direction_aware 488 -webkit-logical-width direction_aware
476 -webkit-logical-height direction_aware 489 -webkit-logical-height direction_aware
477 -webkit-min-logical-width direction_aware 490 -webkit-min-logical-width direction_aware
478 -webkit-min-logical-height direction_aware 491 -webkit-min-logical-height direction_aware
479 -webkit-max-logical-width direction_aware 492 -webkit-max-logical-width direction_aware
480 -webkit-max-logical-height direction_aware 493 -webkit-max-logical-height direction_aware
481 494
482 // Properties that we ignore in the StyleBuilder. 495 // Properties that we ignore in the StyleBuilder.
483 // TODO(timloh): This seems wrong, most of these shouldn't reach the StyleBuilde r 496 // TODO(timloh): This seems wrong, most of these shouldn't reach the StyleBuilde r
484 497
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
617 -webkit-text-size-adjust alias_for=text-size-adjust 630 -webkit-text-size-adjust alias_for=text-size-adjust
618 -webkit-transform alias_for=transform 631 -webkit-transform alias_for=transform
619 -webkit-transform-origin alias_for=transform-origin 632 -webkit-transform-origin alias_for=transform-origin
620 -webkit-transform-style alias_for=transform-style 633 -webkit-transform-style alias_for=transform-style
621 -webkit-transition alias_for=transition 634 -webkit-transition alias_for=transition
622 -webkit-transition-delay alias_for=transition-delay 635 -webkit-transition-delay alias_for=transition-delay
623 -webkit-transition-duration alias_for=transition-duration 636 -webkit-transition-duration alias_for=transition-duration
624 -webkit-transition-property alias_for=transition-property 637 -webkit-transition-property alias_for=transition-property
625 -webkit-transition-timing-function alias_for=transition-timing-function 638 -webkit-transition-timing-function alias_for=transition-timing-function
626 -webkit-user-select alias_for=user-select 639 -webkit-user-select alias_for=user-select
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698