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

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

Issue 2567473002: Made a generator for CSSPropertyDescriptor.cpp (Closed)
Patch Set: fixed some formatting 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 // - api_class[=classname]
27 // Specifies the existance (and optionally name) of a CSSPropertyAPI
28 // implementation for the property to be used by make_css_property_descriptor.py .
29 // See core/css/properties/CSSPropertyAPI.h for API details.
30 // * Add this flag if the API has been implemented for this property.
31 // * If the classname for this is different to the name of the property, specify a
32 // value for this flag. e.g. api_class=CSSPropertyAPIWebkitPadding
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
35 // 'not_implemented' flag instead.
36
37
26 // - keyword_only 38 // - keyword_only
27 // These properties only store keyword values. This is used when 39 // These properties only store keyword values. This is used when
28 // generating the ComputedStyle storage for the property. The initial 40 // generating the ComputedStyle storage for the property. The initial
29 // value for this property on a ComputedStyle is specified with the 41 // value for this property on a ComputedStyle is specified with the
30 // initial_keyword flag below. 42 // initial_keyword flag below.
31 // TODO(sashab, meade): Remove this once TypedOM types are specified for 43 // TODO(sashab, meade): Remove this once TypedOM types are specified for
32 // every property, since this value can be inferred from that. 44 // every property, since this value can be inferred from that.
33 45
34 46
35 // - keywords=[keyword1|keyword2] 47 // - keywords=[keyword1|keyword2]
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 -webkit-border-before-color direction_aware 475 -webkit-border-before-color direction_aware
464 -webkit-border-before-style direction_aware 476 -webkit-border-before-style direction_aware
465 -webkit-border-before-width direction_aware 477 -webkit-border-before-width direction_aware
466 -webkit-border-after-color direction_aware 478 -webkit-border-after-color direction_aware
467 -webkit-border-after-style direction_aware 479 -webkit-border-after-style direction_aware
468 -webkit-border-after-width direction_aware 480 -webkit-border-after-width direction_aware
469 -webkit-margin-end direction_aware 481 -webkit-margin-end direction_aware
470 -webkit-margin-start direction_aware 482 -webkit-margin-start direction_aware
471 -webkit-margin-before direction_aware 483 -webkit-margin-before direction_aware
472 -webkit-margin-after direction_aware 484 -webkit-margin-after direction_aware
473 -webkit-padding-end direction_aware 485 -webkit-padding-end direction_aware, api_class=CSSPropertyAPIWebkitPadding
474 -webkit-padding-start direction_aware 486 -webkit-padding-start direction_aware, api_class=CSSPropertyAPIWebkitPadding
475 -webkit-padding-before direction_aware 487 -webkit-padding-before direction_aware, api_class=CSSPropertyAPIWebkitPadding
476 -webkit-padding-after direction_aware 488 -webkit-padding-after direction_aware, api_class=CSSPropertyAPIWebkitPadding
477 -webkit-logical-width direction_aware 489 -webkit-logical-width direction_aware
478 -webkit-logical-height direction_aware 490 -webkit-logical-height direction_aware
479 -webkit-min-logical-width direction_aware 491 -webkit-min-logical-width direction_aware
480 -webkit-min-logical-height direction_aware 492 -webkit-min-logical-height direction_aware
481 -webkit-max-logical-width direction_aware 493 -webkit-max-logical-width direction_aware
482 -webkit-max-logical-height direction_aware 494 -webkit-max-logical-height direction_aware
483 495
484 // Properties that we ignore in the StyleBuilder. 496 // Properties that we ignore in the StyleBuilder.
485 // TODO(timloh): This seems wrong, most of these shouldn't reach the StyleBuilde r 497 // TODO(timloh): This seems wrong, most of these shouldn't reach the StyleBuilde r
486 498
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 -webkit-text-size-adjust alias_for=text-size-adjust 631 -webkit-text-size-adjust alias_for=text-size-adjust
620 -webkit-transform alias_for=transform 632 -webkit-transform alias_for=transform
621 -webkit-transform-origin alias_for=transform-origin 633 -webkit-transform-origin alias_for=transform-origin
622 -webkit-transform-style alias_for=transform-style 634 -webkit-transform-style alias_for=transform-style
623 -webkit-transition alias_for=transition 635 -webkit-transition alias_for=transition
624 -webkit-transition-delay alias_for=transition-delay 636 -webkit-transition-delay alias_for=transition-delay
625 -webkit-transition-duration alias_for=transition-duration 637 -webkit-transition-duration alias_for=transition-duration
626 -webkit-transition-property alias_for=transition-property 638 -webkit-transition-property alias_for=transition-property
627 -webkit-transition-timing-function alias_for=transition-timing-function 639 -webkit-transition-timing-function alias_for=transition-timing-function
628 -webkit-user-select alias_for=user-select 640 -webkit-user-select alias_for=user-select
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698