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

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

Issue 2653733005: Added parseShorthand method from the parser to CSSPropertyAPI.h. (Closed)
Patch Set: rebase Created 3 years, 10 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 { 1 {
2 // This file specifies all the CSS properties we support and the necessary 2 // This file specifies all the CSS properties we support and the necessary
3 // information for our code generation. The various supported arguments 3 // information for our code generation. The various supported arguments
4 // are described below with example usage 4 // are described below with example usage
5 5
6 parameters: { 6 parameters: {
7 // - alias_for: "other-property" 7 // - alias_for: "other-property"
8 // Properties specifying alias_for should be virtually identical to the 8 // Properties specifying alias_for should be virtually identical to the
9 // properties they alias. Minor parsing differences are allowed as long as 9 // properties they alias. Minor parsing differences are allowed as long as
10 // the CSSValues created are of the same format of the aliased property. 10 // the CSSValues created are of the same format of the aliased property.
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 // - api_methods: ["method1", "method2"] 45 // - api_methods: ["method1", "method2"]
46 // List of methods that are implemented in the CSSPropertyAPI for this prope rty. 46 // List of methods that are implemented in the CSSPropertyAPI for this prope rty.
47 // This is used by make_css_property_apis.py to specify which functions are defined 47 // This is used by make_css_property_apis.py to specify which functions are defined
48 // in the .h file for this property, and also used in CSSPropertyAPIFiles.h. tmpl to 48 // in the .h file for this property, and also used in CSSPropertyAPIFiles.h. tmpl to
49 // generate declarations for only the methods this property has implementati ons for. 49 // generate declarations for only the methods this property has implementati ons for.
50 api_methods: { 50 api_methods: {
51 default: [], 51 default: [],
52 valid_type: "list", 52 valid_type: "list",
53 // This list must be an ordered, complete list of methods whose names mat ch those 53 // This list must be an ordered, complete list of methods whose names mat ch those
54 // defined in CSSPropertyDescriptor.h. 54 // defined in CSSPropertyDescriptor.h.
55 valid_values: ["parseSingleValue"], 55 valid_values: ["parseSingleValue", "parseShorthand"],
56 }, 56 },
57 57
58 // - keyword_only 58 // - keyword_only
59 // These properties only store keyword values. This is used when 59 // These properties only store keyword values. This is used when
60 // generating the ComputedStyle storage for the property. The initial 60 // generating the ComputedStyle storage for the property. The initial
61 // value for this property on a ComputedStyle is specified with the 61 // value for this property on a ComputedStyle is specified with the
62 // initial_keyword flag below. 62 // initial_keyword flag below.
63 // TODO(sashab): Rename this to field_type=keyword once we support 63 // TODO(sashab): Rename this to field_type=keyword once we support
64 // multiple types of generatable fields in ComputedStyle 64 // multiple types of generatable fields in ComputedStyle
65 // TODO(sashab, meade): Remove this once TypedOM types are specified for 65 // TODO(sashab, meade): Remove this once TypedOM types are specified for
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 name: "align-content", 515 name: "align-content",
516 converter: "convertContentAlignmentData", 516 converter: "convertContentAlignmentData",
517 initial: "initialContentAlignment", 517 initial: "initialContentAlignment",
518 }, 518 },
519 { 519 {
520 name: "align-items", 520 name: "align-items",
521 api_class: true, 521 api_class: true,
522 api_methods: ["parseSingleValue"], 522 api_methods: ["parseSingleValue"],
523 converter: "convertSelfOrDefaultAlignmentData", 523 converter: "convertSelfOrDefaultAlignmentData",
524 initial: "initialDefaultAlignment", 524 initial: "initialDefaultAlignment",
525 api_class: true,
526 }, 525 },
527 { 526 {
528 name: "alignment-baseline", 527 name: "alignment-baseline",
529 svg: true, 528 svg: true,
530 }, 529 },
531 { 530 {
532 api_class: "CSSPropertyAPIAlignOrJustifySelf", 531 api_class: "CSSPropertyAPIAlignOrJustifySelf",
533 api_methods: ["parseSingleValue"], 532 api_methods: ["parseSingleValue"],
534 name: "align-self", 533 name: "align-self",
535 converter: "convertSelfOrDefaultAlignmentData", 534 converter: "convertSelfOrDefaultAlignmentData",
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
1066 converter: "convertContentAlignmentData", 1065 converter: "convertContentAlignmentData",
1067 initial: "initialContentAlignment", 1066 initial: "initialContentAlignment",
1068 }, 1067 },
1069 { 1068 {
1070 name: "justify-items", 1069 name: "justify-items",
1071 api_class: true, 1070 api_class: true,
1072 api_methods: ["parseSingleValue"], 1071 api_methods: ["parseSingleValue"],
1073 converter: "convertSelfOrDefaultAlignmentData", 1072 converter: "convertSelfOrDefaultAlignmentData",
1074 initial: "initialSelfAlignment", 1073 initial: "initialSelfAlignment",
1075 runtime_flag: "CSSGridLayout", 1074 runtime_flag: "CSSGridLayout",
1076 api_class: true,
1077 }, 1075 },
1078 { 1076 {
1079 name: "justify-self", 1077 name: "justify-self",
1080 api_class: "CSSPropertyAPIAlignOrJustifySelf", 1078 api_class: "CSSPropertyAPIAlignOrJustifySelf",
1081 api_methods: ["parseSingleValue"], 1079 api_methods: ["parseSingleValue"],
1082 converter: "convertSelfOrDefaultAlignmentData", 1080 converter: "convertSelfOrDefaultAlignmentData",
1083 initial: "initialSelfAlignment", 1081 initial: "initialSelfAlignment",
1084 runtime_flag: "CSSGridLayout", 1082 runtime_flag: "CSSGridLayout",
1085 }, 1083 },
1086 { 1084 {
(...skipping 1884 matching lines...) Expand 10 before | Expand all | Expand 10 after
2971 { 2969 {
2972 name: "-webkit-transition-timing-function", 2970 name: "-webkit-transition-timing-function",
2973 alias_for: "transition-timing-function", 2971 alias_for: "transition-timing-function",
2974 }, 2972 },
2975 { 2973 {
2976 name: "-webkit-user-select", 2974 name: "-webkit-user-select",
2977 alias_for: "user-select", 2975 alias_for: "user-select",
2978 }, 2976 },
2979 ], 2977 ],
2980 } 2978 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698