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

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

Issue 2692803002: Clean up type handling in make_computed_style_base.py. (Closed)
Patch Set: Update comments 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
« no previous file with comments | « third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
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", "parseShorthand"], 55 valid_values: ["parseSingleValue", "parseShorthand"],
56 }, 56 },
57 57
58 // - keyword_only 58 // - field_template
59 // These properties only store keyword values. This is used when 59 // Affects how the interface to this field is generated.
60 // generating the ComputedStyle storage for the property. The initial
61 // value for this property on a ComputedStyle is specified with the
62 // initial_keyword flag below.
63 // TODO(sashab): Rename this to field_type=keyword once we support
64 // multiple types of generatable fields in ComputedStyle
65 // TODO(sashab, meade): Remove this once TypedOM types are specified for 60 // TODO(sashab, meade): Remove this once TypedOM types are specified for
66 // every property, since this value can be inferred from that. 61 // every property, since this value can be inferred from that.
67 keyword_only: { 62 field_template: {
68 default: false, 63 valid_values: [
69 valid_type: "bool", 64 // Field is stored as an enum and has a initial/getter/setter/resetter.
65 "keyword",
66 // Field is stored a packed boolean flag and has a initial/getter/setter /resetter.
67 // TODO(shend): generalise this to "primitive"
68 "flag",
69 ],
70 }, 70 },
71 71
72 // - field_storage_type: "path/to/Type" 72 // - field_type_path: "path/to/Type"
73 // For properties that have generated field storage in ComputedStyle, 73 // For properties that have generated field storage in ComputedStyle,
74 // this optional argument will override the field's generated type with 74 // this optional argument will override the field's generated type with
75 // an external one specified at the given path. The type must be defined 75 // an external one specified at the given path. The type must be defined
76 // in a header file at that path, and have the same name as the file. 76 // in a header file at that path, and have the same name as the file.
77 // Currently, only enum types are supported, and the enum's only values 77 // Currently, only enum types are supported, and the enum's only values
78 // must be CamelCase values of the keywords of the property. 78 // must be CamelCase values of the keywords of the property.
79 field_storage_type: { 79 field_type_path: {
80 }, 80 },
81 81
82 // - keywords: ["keyword1", "keyword2"] 82 // - keywords: ["keyword1", "keyword2"]
83 // This specifies all valid keyword values for the property. 83 // This specifies all valid keyword values for the property.
84 // TODO(sashab): Once all properties are represented here, delete 84 // TODO(sashab): Once all properties are represented here, delete
85 // CSSValueKeywords.in and use this list instead. 85 // CSSValueKeywords.in and use this list instead.
86 keywords: { 86 keywords: {
87 default: [], 87 default: [],
88 }, 88 },
89 89
90 // - initial_keyword: "keyword-value" 90 // - initial_keyword: "keyword-value"
91 // This specifies the initial keyword value for the keyword_only 91 // This specifies the initial keyword value for the keyword fields.
92 // property.
93 initial_keyword: { 92 initial_keyword: {
94 }, 93 },
95 94
96 // Flags which go into CSSOMTypes: 95 // Flags which go into CSSOMTypes:
97 // - typedom_types: ["Type", "OtherType"] 96 // - typedom_types: ["Type", "OtherType"]
98 // The property can take types specified in typedom_types for CSS Typed OM. 97 // The property can take types specified in typedom_types for CSS Typed OM.
99 // Keyword does not need to be specified as every property can take keywords . 98 // Keyword does not need to be specified as every property can take keywords .
100 // - repeated 99 // - repeated
101 // The property supports a list of values. 100 // The property supports a list of values.
102 // - supports_percentage 101 // - supports_percentage
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 { 320 {
322 name: "color", 321 name: "color",
323 custom_all: true, 322 custom_all: true,
324 inherited: true, 323 inherited: true,
325 interpolable: true, 324 interpolable: true,
326 priority: "High", 325 priority: "High",
327 }, 326 },
328 { 327 {
329 name: "direction", 328 name: "direction",
330 custom_value: true, 329 custom_value: true,
331 field_storage_type: "platform/text/TextDirection", 330 field_type_path: "platform/text/TextDirection",
332 inherited: true, 331 inherited: true,
333 initial_keyword: "ltr", 332 initial_keyword: "ltr",
334 keyword_only: true, 333 field_template: "keyword",
335 keywords: ["ltr", "rtl"], 334 keywords: ["ltr", "rtl"],
336 priority: "High", 335 priority: "High",
337 }, 336 },
338 { 337 {
339 name: "font-family", 338 name: "font-family",
340 converter: "convertFontFamily", 339 converter: "convertFontFamily",
341 font: true, 340 font: true,
342 inherited: true, 341 inherited: true,
343 name_for_methods: "FamilyDescription", 342 name_for_methods: "FamilyDescription",
344 priority: "High", 343 priority: "High",
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 { 473 {
475 name: "-webkit-text-orientation", 474 name: "-webkit-text-orientation",
476 custom_value: true, 475 custom_value: true,
477 inherited: true, 476 inherited: true,
478 priority: "High", 477 priority: "High",
479 type_name: "TextOrientation", 478 type_name: "TextOrientation",
480 }, 479 },
481 { 480 {
482 name: "writing-mode", 481 name: "writing-mode",
483 custom_value: true, 482 custom_value: true,
484 field_storage_type: "platform/text/WritingMode", 483 field_type_path: "platform/text/WritingMode",
485 inherited: true, 484 inherited: true,
486 initial_keyword: "horizontal-tb", 485 initial_keyword: "horizontal-tb",
487 keyword_only: true, 486 field_template: "keyword",
488 keywords: ["horizontal-tb", "vertical-rl", "vertical-lr"], 487 keywords: ["horizontal-tb", "vertical-rl", "vertical-lr"],
489 priority: "High", 488 priority: "High",
490 type_name: "WritingMode", 489 type_name: "WritingMode",
491 }, 490 },
492 { 491 {
493 name: "-webkit-writing-mode", 492 name: "-webkit-writing-mode",
494 custom_value: true, 493 custom_value: true,
495 inherited: true, 494 inherited: true,
496 priority: "High", 495 priority: "High",
497 type_name: "WritingMode", 496 type_name: "WritingMode",
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
634 api_class: "CSSPropertyAPIBorderWidth", 633 api_class: "CSSPropertyAPIBorderWidth",
635 converter: "convertLineWidth<float>", 634 converter: "convertLineWidth<float>",
636 initial: "initialBorderWidth", 635 initial: "initialBorderWidth",
637 interpolable: true, 636 interpolable: true,
638 }, 637 },
639 { 638 {
640 name: "border-collapse", 639 name: "border-collapse",
641 independent: true, 640 independent: true,
642 inherited: true, 641 inherited: true,
643 initial_keyword: "separate", 642 initial_keyword: "separate",
644 keyword_only: true, 643 field_template: "keyword",
645 keywords: ["separate", "collapse"], 644 keywords: ["separate", "collapse"],
646 }, 645 },
647 { 646 {
648 name: "border-image-outset", 647 name: "border-image-outset",
649 api_class: "CSSPropertyAPIBorderImageOutset", 648 api_class: "CSSPropertyAPIBorderImageOutset",
650 custom_all: true, 649 custom_all: true,
651 interpolable: true, 650 interpolable: true,
652 }, 651 },
653 { 652 {
654 name: "border-image-repeat", 653 name: "border-image-repeat",
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
761 name: "box-shadow", 760 name: "box-shadow",
762 converter: "convertShadowList", 761 converter: "convertShadowList",
763 interpolable: true, 762 interpolable: true,
764 }, 763 },
765 "box-sizing", 764 "box-sizing",
766 { 765 {
767 name: "break-after", 766 name: "break-after",
768 // Storage for this property also covers these legacy properties: 767 // Storage for this property also covers these legacy properties:
769 // page-break-after, -webkit-column-break-after 768 // page-break-after, -webkit-column-break-after
770 initial_keyword: "auto", 769 initial_keyword: "auto",
771 keyword_only: true, 770 field_template: "keyword",
772 keywords: [ 771 keywords: [
773 "auto", "avoid", "avoid-column", "avoid-page", "column", "left", "page", "recto", "right", "verso" 772 "auto", "avoid", "avoid-column", "avoid-page", "column", "left", "page", "recto", "right", "verso"
774 ], 773 ],
775 type_name: "EBreakBetween", 774 type_name: "EBreakBetween",
776 }, 775 },
777 { 776 {
778 name: "break-before", 777 name: "break-before",
779 // Storage for this property also covers these legacy properties: 778 // Storage for this property also covers these legacy properties:
780 // page-break-before, -webkit-column-break-before 779 // page-break-before, -webkit-column-break-before
781 initial_keyword: "auto", 780 initial_keyword: "auto",
782 keyword_only: true, 781 field_template: "keyword",
783 keywords: [ 782 keywords: [
784 "auto", "avoid", "avoid-column", "avoid-page", "column", "left", "page", "recto", "right", "verso" 783 "auto", "avoid", "avoid-column", "avoid-page", "column", "left", "page", "recto", "right", "verso"
785 ], 784 ],
786 type_name: "EBreakBetween", 785 type_name: "EBreakBetween",
787 }, 786 },
788 { 787 {
789 name: "break-inside", 788 name: "break-inside",
790 // Storage for this property also covers these legacy properties: 789 // Storage for this property also covers these legacy properties:
791 // page-break-inside, -webkit-column-break-inside 790 // page-break-inside, -webkit-column-break-inside
792 initial_keyword: "auto", 791 initial_keyword: "auto",
793 keyword_only: true, 792 field_template: "keyword",
794 keywords: ["auto", "avoid", "avoid-column", "avoid-page"], 793 keywords: ["auto", "avoid", "avoid-column", "avoid-page"],
795 }, 794 },
796 { 795 {
797 name: "buffered-rendering", 796 name: "buffered-rendering",
798 svg: true, 797 svg: true,
799 }, 798 },
800 { 799 {
801 name: "caption-side", 800 name: "caption-side",
802 independent: true, 801 independent: true,
803 inherited: true, 802 inherited: true,
804 initial_keyword: "top", 803 initial_keyword: "top",
805 keyword_only: true, 804 field_template: "keyword",
806 keywords: ["top", "bottom", "left", "right"], 805 keywords: ["top", "bottom", "left", "right"],
807 }, 806 },
808 { 807 {
809 name: "caret-color", 808 name: "caret-color",
810 api_class: true, 809 api_class: true,
811 api_methods: ["parseSingleValue"], 810 api_methods: ["parseSingleValue"],
812 custom_all: true, 811 custom_all: true,
813 inherited: true, 812 inherited: true,
814 interpolable: true, 813 interpolable: true,
815 }, 814 },
816 { 815 {
817 name: "clear", 816 name: "clear",
818 initial_keyword: "none", 817 initial_keyword: "none",
819 keyword_only: true, 818 field_template: "keyword",
820 keywords: ["none", "left", "right", "both"], 819 keywords: ["none", "left", "right", "both"],
821 }, 820 },
822 { 821 {
823 name: "clip", 822 name: "clip",
824 api_class: true, 823 api_class: true,
825 api_methods: ["parseSingleValue"], 824 api_methods: ["parseSingleValue"],
826 converter: "convertClip", 825 converter: "convertClip",
827 custom_all: true, 826 custom_all: true,
828 interpolable: true, 827 interpolable: true,
829 }, 828 },
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
916 { 915 {
917 name: "dominant-baseline", 916 name: "dominant-baseline",
918 inherited: true, 917 inherited: true,
919 svg: true, 918 svg: true,
920 }, 919 },
921 { 920 {
922 name: "empty-cells", 921 name: "empty-cells",
923 independent: true, 922 independent: true,
924 inherited: true, 923 inherited: true,
925 initial_keyword: "show", 924 initial_keyword: "show",
926 keyword_only: true, 925 field_template: "keyword",
927 keywords: ["show", "hide"], 926 keywords: ["show", "hide"],
928 type_name: "EEmptyCells", 927 type_name: "EEmptyCells",
929 }, 928 },
930 { 929 {
931 name: "fill", 930 name: "fill",
932 api_class: "CSSPropertyAPIPaintStroke", 931 api_class: "CSSPropertyAPIPaintStroke",
933 api_methods: ["parseSingleValue"], 932 api_methods: ["parseSingleValue"],
934 custom_all: true, 933 custom_all: true,
935 inherited: true, 934 inherited: true,
936 interpolable: true, 935 interpolable: true,
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
975 { 974 {
976 name: "flex-shrink", 975 name: "flex-shrink",
977 api_class: "CSSPropertyAPIFlexGrowOrShrink", 976 api_class: "CSSPropertyAPIFlexGrowOrShrink",
978 interpolable: true, 977 interpolable: true,
979 type_name: "float", 978 type_name: "float",
980 }, 979 },
981 "flex-wrap", 980 "flex-wrap",
982 { 981 {
983 name: "float", 982 name: "float",
984 initial_keyword: "none", 983 initial_keyword: "none",
985 keyword_only: true, 984 field_template: "keyword",
986 keywords: ["none", "left", "right"], 985 keywords: ["none", "left", "right"],
987 name_for_methods: "Floating", 986 name_for_methods: "Floating",
988 type_name: "EFloat", 987 type_name: "EFloat",
989 }, 988 },
990 { 989 {
991 name: "flood-color", 990 name: "flood-color",
992 api_class: "CSSPropertyAPIColor", 991 api_class: "CSSPropertyAPIColor",
993 api_methods: ["parseSingleValue"], 992 api_methods: ["parseSingleValue"],
994 converter: "convertColor", 993 converter: "convertColor",
995 interpolable: true, 994 interpolable: true,
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
1169 custom_value: true, 1168 custom_value: true,
1170 inherited: true, 1169 inherited: true,
1171 interpolable: true, 1170 interpolable: true,
1172 typedom_types: ["Image"], 1171 typedom_types: ["Image"],
1173 }, 1172 },
1174 { 1173 {
1175 name: "list-style-position", 1174 name: "list-style-position",
1176 independent: true, 1175 independent: true,
1177 inherited: true, 1176 inherited: true,
1178 initial_keyword: "outside", 1177 initial_keyword: "outside",
1179 keyword_only: true, 1178 field_template: "keyword",
1180 keywords: ["outside", "inside"], 1179 keywords: ["outside", "inside"],
1181 }, 1180 },
1182 { 1181 {
1183 name: "list-style-type", 1182 name: "list-style-type",
1184 inherited: true, 1183 inherited: true,
1185 initial_keyword: "disc", 1184 initial_keyword: "disc",
1186 keyword_only: true, 1185 field_template: "keyword",
1187 keywords: [ 1186 keywords: [
1188 "disc", "circle", "square", "decimal", "decimal-leading-zero", "arabic-i ndic", "bengali", "cambodian", "khmer", "devanagari", "gujarati", "gurmukhi", "k annada", "lao", "malayalam", "mongolian", "myanmar", "oriya", "persian", "urdu", "telugu", "tibetan", "thai", "lower-roman", "upper-roman", "lower-greek", "lowe r-alpha", "lower-latin", "upper-alpha", "upper-latin", "cjk-earthly-branch", "cj k-heavenly-stem", "ethiopic-halehame", "ethiopic-halehame-am", "ethiopic-haleham e-ti-er", "ethiopic-halehame-ti-et", "hangul", "hangul-consonant", "korean-hangu l-formal", "korean-hanja-formal", "korean-hanja-informal", "hebrew", "armenian", "lower-armenian", "upper-armenian", "georgian", "cjk-ideographic", "simp-chines e-formal", "simp-chinese-informal", "trad-chinese-formal", "trad-chinese-informa l", "hiragana", "katakana", "hiragana-iroha", "katakana-iroha", "none", 1187 "disc", "circle", "square", "decimal", "decimal-leading-zero", "arabic-i ndic", "bengali", "cambodian", "khmer", "devanagari", "gujarati", "gurmukhi", "k annada", "lao", "malayalam", "mongolian", "myanmar", "oriya", "persian", "urdu", "telugu", "tibetan", "thai", "lower-roman", "upper-roman", "lower-greek", "lowe r-alpha", "lower-latin", "upper-alpha", "upper-latin", "cjk-earthly-branch", "cj k-heavenly-stem", "ethiopic-halehame", "ethiopic-halehame-am", "ethiopic-haleham e-ti-er", "ethiopic-halehame-ti-et", "hangul", "hangul-consonant", "korean-hangu l-formal", "korean-hanja-formal", "korean-hanja-informal", "hebrew", "armenian", "lower-armenian", "upper-armenian", "georgian", "cjk-ideographic", "simp-chines e-formal", "simp-chinese-informal", "trad-chinese-formal", "trad-chinese-informa l", "hiragana", "katakana", "hiragana-iroha", "katakana-iroha", "none",
1189 ], 1188 ],
1190 }, 1189 },
1191 { 1190 {
1192 name: "margin-bottom", 1191 name: "margin-bottom",
1193 api_class: "CSSPropertyAPIMargin", 1192 api_class: "CSSPropertyAPIMargin",
1194 api_methods: ["parseSingleValue"], 1193 api_methods: ["parseSingleValue"],
1195 converter: "convertQuirkyLength", 1194 converter: "convertQuirkyLength",
1196 initial: "initialMargin", 1195 initial: "initialMargin",
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
1392 api_class: true, 1391 api_class: true,
1393 api_methods: ["parseSingleValue"], 1392 api_methods: ["parseSingleValue"],
1394 converter: "convertLineWidth<unsigned short>", 1393 converter: "convertLineWidth<unsigned short>",
1395 interpolable: true, 1394 interpolable: true,
1396 }, 1395 },
1397 { 1396 {
1398 name: "overflow-anchor", 1397 name: "overflow-anchor",
1399 runtime_flag: "ScrollAnchoring", 1398 runtime_flag: "ScrollAnchoring",
1400 inherited: false, 1399 inherited: false,
1401 initial_keyword: "auto", 1400 initial_keyword: "auto",
1402 keyword_only: true, 1401 field_template: "keyword",
1403 keywords: [ 1402 keywords: [
1404 "visible", "none", "auto", 1403 "visible", "none", "auto",
1405 ], 1404 ],
1406 }, 1405 },
1407 { 1406 {
1408 name: "overflow-wrap", 1407 name: "overflow-wrap",
1409 inherited: true, 1408 inherited: true,
1410 }, 1409 },
1411 { 1410 {
1412 name: "overflow-x", 1411 name: "overflow-x",
1413 initial_keyword: "visible", 1412 initial_keyword: "visible",
1414 keyword_only: true, 1413 field_template: "keyword",
1415 keywords: [ 1414 keywords: [
1416 "visible", "hidden", "scroll", "auto", "overlay", "-webkit-paged-x", "-w ebkit-paged-y", 1415 "visible", "hidden", "scroll", "auto", "overlay", "-webkit-paged-x", "-w ebkit-paged-y",
1417 ], 1416 ],
1418 type_name: "EOverflow", 1417 type_name: "EOverflow",
1419 }, 1418 },
1420 { 1419 {
1421 name: "overflow-y", 1420 name: "overflow-y",
1422 initial_keyword: "visible", 1421 initial_keyword: "visible",
1423 keyword_only: true, 1422 field_template: "keyword",
1424 keywords: [ 1423 keywords: [
1425 "visible", "hidden", "scroll", "auto", "overlay", "-webkit-paged-x", "-w ebkit-paged-y", 1424 "visible", "hidden", "scroll", "auto", "overlay", "-webkit-paged-x", "-w ebkit-paged-y",
1426 ], 1425 ],
1427 type_name: "EOverflow", 1426 type_name: "EOverflow",
1428 }, 1427 },
1429 { 1428 {
1430 name: "padding-bottom", 1429 name: "padding-bottom",
1431 api_class: "CSSPropertyAPIPadding", 1430 api_class: "CSSPropertyAPIPadding",
1432 api_methods: ["parseSingleValue"], 1431 api_methods: ["parseSingleValue"],
1433 converter: "convertLength", 1432 converter: "convertLength",
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
1475 { 1474 {
1476 name: "perspective-origin", 1475 name: "perspective-origin",
1477 converter: "convertPosition", 1476 converter: "convertPosition",
1478 interpolable: true, 1477 interpolable: true,
1479 }, 1478 },
1480 { 1479 {
1481 name: "pointer-events", 1480 name: "pointer-events",
1482 independent: true, 1481 independent: true,
1483 inherited: true, 1482 inherited: true,
1484 initial_keyword: "auto", 1483 initial_keyword: "auto",
1485 keyword_only: true, 1484 field_template: "keyword",
1486 keywords: [ 1485 keywords: [
1487 "none", "auto", "stroke", "fill", "painted", "visible", "visibleStroke", "visibleFill", "visiblePainted", "bounding-box", "all", 1486 "none", "auto", "stroke", "fill", "painted", "visible", "visibleStroke", "visibleFill", "visiblePainted", "bounding-box", "all",
1488 ], 1487 ],
1489 }, 1488 },
1490 { 1489 {
1491 name: "position", 1490 name: "position",
1492 custom_inherit: true, 1491 custom_inherit: true,
1493 initial_keyword: "static", 1492 initial_keyword: "static",
1494 keyword_only: true, 1493 field_template: "keyword",
1495 keywords: [ 1494 keywords: [
1496 "static", "relative", "absolute", "fixed", "sticky", 1495 "static", "relative", "absolute", "fixed", "sticky",
1497 ], 1496 ],
1498 }, 1497 },
1499 { 1498 {
1500 name: "quotes", 1499 name: "quotes",
1501 api_class: true, 1500 api_class: true,
1502 api_methods: ["parseSingleValue"], 1501 api_methods: ["parseSingleValue"],
1503 converter: "convertQuotes", 1502 converter: "convertQuotes",
1504 inherited: true, 1503 inherited: true,
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
1700 name: "stroke-width", 1699 name: "stroke-width",
1701 api_class: "CSSPropertyAPIStrokeOrLength", 1700 api_class: "CSSPropertyAPIStrokeOrLength",
1702 converter: "convertUnzoomedLength", 1701 converter: "convertUnzoomedLength",
1703 inherited: true, 1702 inherited: true,
1704 interpolable: true, 1703 interpolable: true,
1705 svg: true, 1704 svg: true,
1706 }, 1705 },
1707 { 1706 {
1708 name: "table-layout", 1707 name: "table-layout",
1709 initial_keyword: "auto", 1708 initial_keyword: "auto",
1710 keyword_only: true, 1709 field_template: "keyword",
1711 keywords: [ 1710 keywords: [
1712 "auto", "fixed" 1711 "auto", "fixed"
1713 ] 1712 ]
1714 }, 1713 },
1715 { 1714 {
1716 name: "tab-size", 1715 name: "tab-size",
1717 api_class: true, 1716 api_class: true,
1718 api_methods: ["parseSingleValue"], 1717 api_methods: ["parseSingleValue"],
1719 converter: "convertLengthOrTabSpaces", 1718 converter: "convertLengthOrTabSpaces",
1720 inherited: true, 1719 inherited: true,
1721 type_name: "TabSize", 1720 type_name: "TabSize",
1722 }, 1721 },
1723 { 1722 {
1724 name: "text-align", 1723 name: "text-align",
1725 custom_value: true, 1724 custom_value: true,
1726 inherited: true, 1725 inherited: true,
1727 initial_keyword: "start", 1726 initial_keyword: "start",
1728 keyword_only: true, 1727 field_template: "keyword",
1729 keywords: [ 1728 keywords: [
1730 "left", "right", "center", "justify", "webkitLeft", "webkitRight", "webk itCenter", "start", "end", 1729 "left", "right", "center", "justify", "webkitLeft", "webkitRight", "webk itCenter", "start", "end",
1731 ], 1730 ],
1732 }, 1731 },
1733 { 1732 {
1734 name: "text-align-last", 1733 name: "text-align-last",
1735 inherited: true, 1734 inherited: true,
1736 type_name: "TextAlignLast", 1735 type_name: "TextAlignLast",
1737 }, 1736 },
1738 { 1737 {
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
1814 api_methods: ["parseSingleValue"], 1813 api_methods: ["parseSingleValue"],
1815 converter: "convertTextSizeAdjust", 1814 converter: "convertTextSizeAdjust",
1816 inherited: true, 1815 inherited: true,
1817 type_name: "TextSizeAdjust", 1816 type_name: "TextSizeAdjust",
1818 }, 1817 },
1819 { 1818 {
1820 name: "text-transform", 1819 name: "text-transform",
1821 independent: true, 1820 independent: true,
1822 inherited: true, 1821 inherited: true,
1823 initial_keyword: "none", 1822 initial_keyword: "none",
1824 keyword_only: true, 1823 field_template: "keyword",
1825 keywords: ["capitalize", "uppercase", "lowercase", "none"], 1824 keywords: ["capitalize", "uppercase", "lowercase", "none"],
1826 }, 1825 },
1827 { 1826 {
1828 name: "text-underline-position", 1827 name: "text-underline-position",
1829 api_class: true, 1828 api_class: true,
1830 api_methods: ["parseSingleValue"], 1829 api_methods: ["parseSingleValue"],
1831 inherited: true, 1830 inherited: true,
1832 runtime_flag: "CSS3TextDecorations", 1831 runtime_flag: "CSS3TextDecorations",
1833 type_name: "TextUnderlinePosition", 1832 type_name: "TextUnderlinePosition",
1834 }, 1833 },
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
1887 { 1886 {
1888 name: "scale", 1887 name: "scale",
1889 api_class: true, 1888 api_class: true,
1890 api_methods: ["parseSingleValue"], 1889 api_methods: ["parseSingleValue"],
1891 converter: "convertScale", 1890 converter: "convertScale",
1892 interpolable: true, 1891 interpolable: true,
1893 runtime_flag: "CSSIndependentTransformProperties", 1892 runtime_flag: "CSSIndependentTransformProperties",
1894 }, 1893 },
1895 { 1894 {
1896 name: "unicode-bidi", 1895 name: "unicode-bidi",
1897 field_storage_type: "platform/text/UnicodeBidi", 1896 field_type_path: "platform/text/UnicodeBidi",
1898 initial_keyword: "normal", 1897 initial_keyword: "normal",
1899 keyword_only: true, 1898 field_template: "keyword",
1900 keywords: [ 1899 keywords: [
1901 "normal", "embed", "bidi-override", "isolate", "plaintext", "isolate-ove rride", 1900 "normal", "embed", "bidi-override", "isolate", "plaintext", "isolate-ove rride",
1902 ], 1901 ],
1903 type_name: "UnicodeBidi", 1902 type_name: "UnicodeBidi",
1904 }, 1903 },
1905 { 1904 {
1906 name: "vector-effect", 1905 name: "vector-effect",
1907 svg: true, 1906 svg: true,
1908 }, 1907 },
1909 { 1908 {
1910 name: "vertical-align", 1909 name: "vertical-align",
1911 api_class: true, 1910 api_class: true,
1912 api_methods: ["parseSingleValue"], 1911 api_methods: ["parseSingleValue"],
1913 custom_inherit: true, 1912 custom_inherit: true,
1914 custom_value: true, 1913 custom_value: true,
1915 interpolable: true, 1914 interpolable: true,
1916 }, 1915 },
1917 { 1916 {
1918 name: "visibility", 1917 name: "visibility",
1919 independent: true, 1918 independent: true,
1920 inherited: true, 1919 inherited: true,
1921 initial_keyword: "visible", 1920 initial_keyword: "visible",
1922 interpolable: true, 1921 interpolable: true,
1923 keyword_only: true, 1922 field_template: "keyword",
1924 keywords: ["visible", "hidden", "collapse"], 1923 keywords: ["visible", "hidden", "collapse"],
1925 }, 1924 },
1926 { 1925 {
1927 name: "x", 1926 name: "x",
1928 api_class: "CSSPropertyAPIStrokeOrLength", 1927 api_class: "CSSPropertyAPIStrokeOrLength",
1929 converter: "convertLength", 1928 converter: "convertLength",
1930 interpolable: true, 1929 interpolable: true,
1931 svg: true, 1930 svg: true,
1932 }, 1931 },
1933 { 1932 {
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
1978 { 1977 {
1979 name: "-webkit-box-align", 1978 name: "-webkit-box-align",
1980 type_name: "EBoxAlignment", 1979 type_name: "EBoxAlignment",
1981 }, 1980 },
1982 "-webkit-box-decoration-break", 1981 "-webkit-box-decoration-break",
1983 { 1982 {
1984 name: "-webkit-box-direction", 1983 name: "-webkit-box-direction",
1985 independent: true, 1984 independent: true,
1986 inherited: true, 1985 inherited: true,
1987 initial_keyword: "normal", 1986 initial_keyword: "normal",
1988 keyword_only: true, 1987 field_template: "keyword",
1989 keywords: ["normal", "reverse"], 1988 keywords: ["normal", "reverse"],
1990 }, 1989 },
1991 { 1990 {
1992 name: "-webkit-box-flex", 1991 name: "-webkit-box-flex",
1993 api_class: true, 1992 api_class: true,
1994 type_name: "float", 1993 type_name: "float",
1995 }, 1994 },
1996 { 1995 {
1997 name: "-webkit-box-flex-group", 1996 name: "-webkit-box-flex-group",
1998 api_class: true, 1997 api_class: true,
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
2183 name: "-webkit-perspective-origin-y", 2182 name: "-webkit-perspective-origin-y",
2184 api_class: "CSSPropertyAPIWebkitOriginY", 2183 api_class: "CSSPropertyAPIWebkitOriginY",
2185 converter: "convertLength", 2184 converter: "convertLength",
2186 interpolable: true, 2185 interpolable: true,
2187 }, 2186 },
2188 { 2187 {
2189 name: "-webkit-print-color-adjust", 2188 name: "-webkit-print-color-adjust",
2190 independent: true, 2189 independent: true,
2191 inherited: true, 2190 inherited: true,
2192 initial_keyword: "economy", 2191 initial_keyword: "economy",
2193 keyword_only: true, 2192 field_template: "keyword",
2194 keywords: ["economy", "exact"], 2193 keywords: ["economy", "exact"],
2195 }, 2194 },
2196 { 2195 {
2197 name: "-webkit-rtl-ordering", 2196 name: "-webkit-rtl-ordering",
2198 independent: true, 2197 independent: true,
2199 inherited: true, 2198 inherited: true,
2200 initial: "initialRtlOrdering", 2199 initial: "initialRtlOrdering",
2201 initial_keyword: "logical", 2200 initial_keyword: "logical",
2202 keyword_only: true, 2201 field_template: "keyword",
2203 keywords: ["logical", "visual"], 2202 keywords: ["logical", "visual"],
2204 setter: "setRtlOrdering", 2203 setter: "setRtlOrdering",
2205 type_name: "EOrder", 2204 type_name: "EOrder",
2206 }, 2205 },
2207 { 2206 {
2208 name: "-webkit-ruby-position", 2207 name: "-webkit-ruby-position",
2209 inherited: true, 2208 inherited: true,
2210 type_name: "RubyPosition", 2209 type_name: "RubyPosition",
2211 }, 2210 },
2212 { 2211 {
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
2293 }, 2292 },
2294 { 2293 {
2295 name: "user-select", 2294 name: "user-select",
2296 inherited: true, 2295 inherited: true,
2297 }, 2296 },
2298 { 2297 {
2299 name: "white-space", 2298 name: "white-space",
2300 independent: true, 2299 independent: true,
2301 inherited: true, 2300 inherited: true,
2302 initial_keyword: "normal", 2301 initial_keyword: "normal",
2303 keyword_only: true, 2302 field_template: "keyword",
2304 keywords: ["normal", "pre", "pre-wrap", "pre-line", "nowrap", "-webkit-now rap"], 2303 keywords: ["normal", "pre", "pre-wrap", "pre-line", "nowrap", "-webkit-now rap"],
2305 }, 2304 },
2306 { 2305 {
2307 name: "widows", 2306 name: "widows",
2308 inherited: true, 2307 inherited: true,
2309 interpolable: true, 2308 interpolable: true,
2310 type_name: "short", 2309 type_name: "short",
2311 }, 2310 },
2312 { 2311 {
2313 name: "width", 2312 name: "width",
(...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after
3073 { 3072 {
3074 name: "-webkit-transition-timing-function", 3073 name: "-webkit-transition-timing-function",
3075 alias_for: "transition-timing-function", 3074 alias_for: "transition-timing-function",
3076 }, 3075 },
3077 { 3076 {
3078 name: "-webkit-user-select", 3077 name: "-webkit-user-select",
3079 alias_for: "user-select", 3078 alias_for: "user-select",
3080 }, 3079 },
3081 ], 3080 ],
3082 } 3081 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698