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

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

Issue 2923333002: Generate StyleRareNonInheritedData in ComputedStyleBase. (Closed)
Patch Set: Rebase Created 3 years, 6 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 // example, if the type_name is 'Vector<String>', include_paths should be 107 // example, if the type_name is 'Vector<String>', include_paths should be
108 // ["platform/wtf/Vector.h", "platform/wtf/text/WTFString.h"] 108 // ["platform/wtf/Vector.h", "platform/wtf/text/WTFString.h"]
109 include_paths: { 109 include_paths: {
110 default: [], 110 default: [],
111 }, 111 },
112 112
113 // Name of the pointer type that wraps this field (e.g. RefPtr). 113 // Name of the pointer type that wraps this field (e.g. RefPtr).
114 // Can only be set if the field template is storage_only. 114 // Can only be set if the field template is storage_only.
115 wrapper_pointer_name: { 115 wrapper_pointer_name: {
116 valid_type: "str", 116 valid_type: "str",
117 valid_values: ["RefPtr", "Persistent"], 117 // TODO(shend): Remove DataRef once we generate all of
118 // StyleRareNonInheritedData.
119 valid_values: ["RefPtr", "Persistent", "std::unique_ptr", "DataPersistent" , "DataRef"],
118 }, 120 },
119 121
120 // - keywords: ["keyword1", "keyword2"] 122 // - keywords: ["keyword1", "keyword2"]
121 // This specifies all valid keyword values for the property. 123 // This specifies all valid keyword values for the property.
122 // TODO(sashab): Once all properties are represented here, delete 124 // TODO(sashab): Once all properties are represented here, delete
123 // CSSValueKeywords.in and use this list instead. 125 // CSSValueKeywords.in and use this list instead.
124 keywords: { 126 keywords: {
125 default: [], 127 default: [],
126 }, 128 },
127 129
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 default_value: "1.0", 586 default_value: "1.0",
585 field_group: "visual", 587 field_group: "visual",
586 }, 588 },
587 589
588 { 590 {
589 name: "align-content", 591 name: "align-content",
590 api_methods: ["parseSingleValue"], 592 api_methods: ["parseSingleValue"],
591 api_class: "CSSPropertyAPIAlignOrJustifyContent", 593 api_class: "CSSPropertyAPIAlignOrJustifyContent",
592 converter: "ConvertContentAlignmentData", 594 converter: "ConvertContentAlignmentData",
593 initial: "InitialContentAlignment", 595 initial: "InitialContentAlignment",
596 field_template: "storage_only",
597 type_name: "StyleContentAlignmentData",
598 field_group: "rare-non-inherited",
599 default_value: "StyleContentAlignmentData(kContentPositionNormal, kContent DistributionDefault, kOverflowAlignmentDefault)",
600 include_paths: ["core/style/StyleContentAlignmentData.h"],
594 }, 601 },
595 { 602 {
596 name: "align-items", 603 name: "align-items",
597 api_class: true, 604 api_class: true,
598 api_methods: ["parseSingleValue"], 605 api_methods: ["parseSingleValue"],
599 converter: "ConvertSelfOrDefaultAlignmentData", 606 converter: "ConvertSelfOrDefaultAlignmentData",
600 initial: "InitialDefaultAlignment", 607 initial: "InitialDefaultAlignment",
608 field_template: "storage_only",
609 type_name: "StyleSelfAlignmentData",
610 field_group: "rare-non-inherited",
611 default_value: "StyleSelfAlignmentData(RuntimeEnabledFeatures::CSSGridLayo utEnabled() ? kItemPositionNormal : kItemPositionStretch, kOverflowAlignmentDefa ult)",
alancutter (OOO until 2018) 2017/06/13 03:49:29 This is getting kind of crazy. We should seriously
shend 2017/06/13 20:54:43 Sounds like a good idea. Another approach is to pu
612 include_paths: ["core/style/StyleSelfAlignmentData.h"],
601 }, 613 },
602 { 614 {
603 name: "alignment-baseline", 615 name: "alignment-baseline",
604 svg: true, 616 svg: true,
605 }, 617 },
606 { 618 {
607 name: "align-self", 619 name: "align-self",
608 api_class: "CSSPropertyAPIAlignOrJustifySelf", 620 api_class: "CSSPropertyAPIAlignOrJustifySelf",
609 api_methods: ["parseSingleValue"], 621 api_methods: ["parseSingleValue"],
610 converter: "ConvertSelfOrDefaultAlignmentData", 622 converter: "ConvertSelfOrDefaultAlignmentData",
611 initial: "InitialSelfAlignment", 623 initial: "InitialSelfAlignment",
624 field_template: "storage_only",
625 type_name: "StyleSelfAlignmentData",
626 field_group: "rare-non-inherited",
627 default_value: "StyleSelfAlignmentData(kItemPositionAuto, kOverflowAlignme ntDefault)",
628 include_paths: ["core/style/StyleSelfAlignmentData.h"],
612 }, 629 },
613 { 630 {
614 name: "backdrop-filter", 631 name: "backdrop-filter",
615 api_class: "CSSPropertyAPIFilter", 632 api_class: "CSSPropertyAPIFilter",
616 converter: "ConvertFilterOperations", 633 converter: "ConvertFilterOperations",
617 interpolable: true, 634 interpolable: true,
618 runtime_flag: "CSSBackdropFilter", 635 runtime_flag: "CSSBackdropFilter",
619 }, 636 },
620 { 637 {
621 name: "backface-visibility", 638 name: "backface-visibility",
639 field_template: "storage_only",
640 type_name: "EBackfaceVisibility",
641 field_group: "rare-non-inherited",
642 default_value: "kBackfaceVisibilityVisible",
643 field_size: 1,
622 }, 644 },
623 { 645 {
624 name: "background-attachment", 646 name: "background-attachment",
625 custom_all: true, 647 custom_all: true,
626 }, 648 },
627 { 649 {
628 name: "background-blend-mode", 650 name: "background-blend-mode",
629 custom_all: true, 651 custom_all: true,
630 }, 652 },
631 { 653 {
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
911 field_template: "external", 933 field_template: "external",
912 include_paths: ["platform/Length.h"], 934 include_paths: ["platform/Length.h"],
913 type_name: "Length", 935 type_name: "Length",
914 field_group: "surround", 936 field_group: "surround",
915 default_value: "Length()", 937 default_value: "Length()",
916 }, 938 },
917 { 939 {
918 name: "box-shadow", 940 name: "box-shadow",
919 converter: "ConvertShadowList", 941 converter: "ConvertShadowList",
920 interpolable: true, 942 interpolable: true,
943 field_template: "storage_only",
944 type_name: "ShadowList",
945 field_group: "rare-non-inherited",
946 default_value: "nullptr",
947 wrapper_pointer_name: "RefPtr",
921 }, 948 },
922 { 949 {
923 name: "box-sizing", 950 name: "box-sizing",
924 field_template: "keyword", 951 field_template: "keyword",
925 type_name: "EBoxSizing", 952 type_name: "EBoxSizing",
926 default_value: "content-box", 953 default_value: "content-box",
927 keywords: ["content-box", "border-box"], 954 keywords: ["content-box", "border-box"],
928 field_group: "box", 955 field_group: "box",
929 }, 956 },
930 { 957 {
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
1000 type_name: "LengthBox", 1027 type_name: "LengthBox",
1001 default_value: "LengthBox()", 1028 default_value: "LengthBox()",
1002 field_group: "visual", 1029 field_group: "visual",
1003 }, 1030 },
1004 { 1031 {
1005 name: "clip-path", 1032 name: "clip-path",
1006 api_class: true, 1033 api_class: true,
1007 api_methods: ["parseSingleValue"], 1034 api_methods: ["parseSingleValue"],
1008 converter: "ConvertClipPath", 1035 converter: "ConvertClipPath",
1009 interpolable: true, 1036 interpolable: true,
1037 field_template: "storage_only",
1038 type_name: "ClipPathOperation",
1039 field_group: "rare-non-inherited",
1040 default_value: "nullptr",
1041 wrapper_pointer_name: "RefPtr",
1042 include_paths: ["core/style/ClipPathOperation.h"],
1010 }, 1043 },
1011 { 1044 {
1012 name: "clip-rule", 1045 name: "clip-rule",
1013 inherited: true, 1046 inherited: true,
1014 svg: true, 1047 svg: true,
1015 type_name: "WindRule", 1048 type_name: "WindRule",
1016 }, 1049 },
1017 { 1050 {
1018 name: "color-interpolation", 1051 name: "color-interpolation",
1019 inherited: true, 1052 inherited: true,
(...skipping 13 matching lines...) Expand all
1033 { 1066 {
1034 name: "column-fill", 1067 name: "column-fill",
1035 type_name: "ColumnFill", 1068 type_name: "ColumnFill",
1036 }, 1069 },
1037 { 1070 {
1038 name: "contain", 1071 name: "contain",
1039 api_class: true, 1072 api_class: true,
1040 api_methods: ["parseSingleValue"], 1073 api_methods: ["parseSingleValue"],
1041 converter: "ConvertFlags<Containment>", 1074 converter: "ConvertFlags<Containment>",
1042 runtime_flag: "CSSContainment", 1075 runtime_flag: "CSSContainment",
1076 name_for_methods: "Contain",
1077 type_name: "Containment",
1078 field_template: "storage_only",
1079 field_group: "rare-non-inherited",
1080 field_size: 4,
1081 default_value: "kContainsNone",
1043 }, 1082 },
1044 { 1083 {
1045 name: "content", 1084 name: "content",
1046 api_class: true, 1085 api_class: true,
1047 api_methods: ["parseSingleValue"], 1086 api_methods: ["parseSingleValue"],
1048 custom_all: true, 1087 custom_all: true,
1049 separator: ",", 1088 separator: ",",
1050 typedom_types: ["Image"], 1089 typedom_types: ["Image"],
1090 type_name: "ContentData",
1091 field_template: "storage_only",
1092 field_group: "rare-non-inherited",
1093 default_value: "nullptr",
1094 wrapper_pointer_name: "Persistent",
1095 include_paths: ["core/style/ContentData.h"],
1051 }, 1096 },
1052 { 1097 {
1053 name: "counter-increment", 1098 name: "counter-increment",
1054 api_class: true, 1099 api_class: true,
1055 api_methods: ["parseSingleValue"], 1100 api_methods: ["parseSingleValue"],
1056 custom_all: true, 1101 custom_all: true,
1057 }, 1102 },
1058 { 1103 {
1059 name: "counter-reset", 1104 name: "counter-reset",
1060 api_class: true, 1105 api_class: true,
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
1311 name: "image-orientation", 1356 name: "image-orientation",
1312 api_class: true, 1357 api_class: true,
1313 api_methods: ["parseSingleValue"], 1358 api_methods: ["parseSingleValue"],
1314 converter: "ConvertImageOrientation", 1359 converter: "ConvertImageOrientation",
1315 inherited: true, 1360 inherited: true,
1316 name_for_methods: "RespectImageOrientation", 1361 name_for_methods: "RespectImageOrientation",
1317 runtime_flag: "ImageOrientation", 1362 runtime_flag: "ImageOrientation",
1318 }, 1363 },
1319 { 1364 {
1320 name: "isolation", 1365 name: "isolation",
1366 type_name: "EIsolation",
1367 field_template: "storage_only",
1368 field_group: "rare-non-inherited",
1369 field_size: 1,
1370 default_value: "kIsolationAuto",
1321 }, 1371 },
1322 { 1372 {
1323 name: "justify-content", 1373 name: "justify-content",
1324 api_class: "CSSPropertyAPIAlignOrJustifyContent", 1374 api_class: "CSSPropertyAPIAlignOrJustifyContent",
1325 api_methods: ["parseSingleValue"], 1375 api_methods: ["parseSingleValue"],
1326 converter: "ConvertContentAlignmentData", 1376 converter: "ConvertContentAlignmentData",
1327 initial: "InitialContentAlignment", 1377 initial: "InitialContentAlignment",
1378 field_template: "storage_only",
1379 type_name: "StyleContentAlignmentData",
1380 field_group: "rare-non-inherited",
1381 default_value: "StyleContentAlignmentData(kContentPositionNormal, kContent DistributionDefault, kOverflowAlignmentDefault)",
1382 include_paths: ["core/style/StyleContentAlignmentData.h"],
1328 }, 1383 },
1329 { 1384 {
1330 name: "justify-items", 1385 name: "justify-items",
1331 api_class: true, 1386 api_class: true,
1332 api_methods: ["parseSingleValue"], 1387 api_methods: ["parseSingleValue"],
1333 converter: "ConvertSelfOrDefaultAlignmentData", 1388 converter: "ConvertSelfOrDefaultAlignmentData",
1334 initial: "InitialSelfAlignment", 1389 initial: "InitialSelfAlignment",
1335 runtime_flag: "CSSGridLayout", 1390 runtime_flag: "CSSGridLayout",
1391 field_template: "storage_only",
1392 type_name: "StyleSelfAlignmentData",
1393 field_group: "rare-non-inherited",
1394 default_value: "StyleSelfAlignmentData(kItemPositionAuto, kOverflowAlignme ntDefault)",
1395 include_paths: ["core/style/StyleSelfAlignmentData.h"],
1336 }, 1396 },
1337 { 1397 {
1338 name: "justify-self", 1398 name: "justify-self",
1339 api_class: "CSSPropertyAPIAlignOrJustifySelf", 1399 api_class: "CSSPropertyAPIAlignOrJustifySelf",
1340 api_methods: ["parseSingleValue"], 1400 api_methods: ["parseSingleValue"],
1341 converter: "ConvertSelfOrDefaultAlignmentData", 1401 converter: "ConvertSelfOrDefaultAlignmentData",
1342 initial: "InitialSelfAlignment", 1402 initial: "InitialSelfAlignment",
1343 runtime_flag: "CSSGridLayout", 1403 runtime_flag: "CSSGridLayout",
1404 field_template: "storage_only",
1405 type_name: "StyleSelfAlignmentData",
1406 field_group: "rare-non-inherited",
1407 default_value: "StyleSelfAlignmentData(kItemPositionAuto, kOverflowAlignme ntDefault)",
1408 include_paths: ["core/style/StyleSelfAlignmentData.h"],
1344 }, 1409 },
1345 { 1410 {
1346 name: "left", 1411 name: "left",
1347 api_class: "CSSPropertyAPIMargin", 1412 api_class: "CSSPropertyAPIMargin",
1348 api_methods: ["parseSingleValue"], 1413 api_methods: ["parseSingleValue"],
1349 converter: "ConvertLengthOrAuto", 1414 converter: "ConvertLengthOrAuto",
1350 interpolable: true, 1415 interpolable: true,
1351 typedom_types: ["Length", "Percent"], 1416 typedom_types: ["Length", "Percent"],
1352 keywords: ["auto"], 1417 keywords: ["auto"],
1353 field_template: "external", 1418 field_template: "external",
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
1565 default_value: "Length()", 1630 default_value: "Length()",
1566 }, 1631 },
1567 { 1632 {
1568 name: "mix-blend-mode", 1633 name: "mix-blend-mode",
1569 name_for_methods: "BlendMode", 1634 name_for_methods: "BlendMode",
1570 type_name: "blink::WebBlendMode", 1635 type_name: "blink::WebBlendMode",
1571 }, 1636 },
1572 { 1637 {
1573 name: "object-fit", 1638 name: "object-fit",
1574 type_name: "ObjectFit", 1639 type_name: "ObjectFit",
1640 field_template: "storage_only",
1641 field_group: "rare-non-inherited",
1642 field_size: 3,
1643 default_value: "kObjectFitFill",
1575 }, 1644 },
1576 { 1645 {
1577 name: "object-position", 1646 name: "object-position",
1578 converter: "ConvertPosition", 1647 converter: "ConvertPosition",
1579 interpolable: true, 1648 interpolable: true,
1649 field_template: "storage_only",
1650 type_name: "LengthPoint",
1651 field_group: "rare-non-inherited",
1652 default_value: "LengthPoint(Length(50.0, kPercent), Length(50.0, kPercent) )",
1580 }, 1653 },
1581 { 1654 {
1582 name: "offset-anchor", 1655 name: "offset-anchor",
1583 api_class: true, 1656 api_class: true,
1584 api_methods: ["parseSingleValue"], 1657 api_methods: ["parseSingleValue"],
1585 converter: "ConvertPositionOrAuto", 1658 converter: "ConvertPositionOrAuto",
1586 interpolable: true, 1659 interpolable: true,
1587 runtime_flag: "CSSOffsetPositionAnchor", 1660 runtime_flag: "CSSOffsetPositionAnchor",
1588 }, 1661 },
1589 { 1662 {
(...skipping 15 matching lines...) Expand all
1605 converter: "ConvertPositionOrAuto", 1678 converter: "ConvertPositionOrAuto",
1606 interpolable: true, 1679 interpolable: true,
1607 runtime_flag: "CSSOffsetPositionAnchor", 1680 runtime_flag: "CSSOffsetPositionAnchor",
1608 }, 1681 },
1609 { 1682 {
1610 name: "offset-rotate", 1683 name: "offset-rotate",
1611 api_class: "CSSPropertyAPIOffsetRotate", 1684 api_class: "CSSPropertyAPIOffsetRotate",
1612 converter: "ConvertOffsetRotate", 1685 converter: "ConvertOffsetRotate",
1613 interpolable: true, 1686 interpolable: true,
1614 }, 1687 },
1688 // Whether or not we're transparent.
1615 { 1689 {
1616 name: "opacity", 1690 name: "opacity",
1617 api_class: "CSSPropertyAPIOpacity", 1691 api_class: "CSSPropertyAPIOpacity",
1618 api_methods: ["parseSingleValue"], 1692 api_methods: ["parseSingleValue"],
1619 interpolable: true, 1693 interpolable: true,
1694 field_template: "storage_only",
1620 type_name: "float", 1695 type_name: "float",
1696 field_group: "rare-non-inherited",
1697 default_value: "1.0",
1621 }, 1698 },
1622 { 1699 {
1623 name: "order", 1700 name: "order",
1624 api_class: true, 1701 api_class: true,
1625 api_methods: ["parseSingleValue"], 1702 api_methods: ["parseSingleValue"],
1626 interpolable: true, 1703 interpolable: true,
1704 field_template: "storage_only",
1627 type_name: "int", 1705 type_name: "int",
1706 field_group: "rare-non-inherited",
1707 default_value: "0",
1628 }, 1708 },
1629 { 1709 {
1630 name: "orphans", 1710 name: "orphans",
1631 api_class: "CSSPropertyAPIFragmentation", 1711 api_class: "CSSPropertyAPIFragmentation",
1632 api_methods: ["parseSingleValue"], 1712 api_methods: ["parseSingleValue"],
1633 inherited: true, 1713 inherited: true,
1634 interpolable: true, 1714 interpolable: true,
1635 type_name: "short", 1715 type_name: "short",
1636 field_template: "primitive", 1716 field_template: "primitive",
1637 default_value: "2", 1717 default_value: "2",
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
1753 api_methods: ["parseSingleValue"], 1833 api_methods: ["parseSingleValue"],
1754 converter: "ConvertPaintOrder", 1834 converter: "ConvertPaintOrder",
1755 inherited: true, 1835 inherited: true,
1756 svg: true, 1836 svg: true,
1757 }, 1837 },
1758 { 1838 {
1759 name: "perspective", 1839 name: "perspective",
1760 api_class: "CSSPropertyAPIPerspective", 1840 api_class: "CSSPropertyAPIPerspective",
1761 converter: "ConvertPerspective", 1841 converter: "ConvertPerspective",
1762 interpolable: true, 1842 interpolable: true,
1843 field_template: "storage_only",
1844 type_name: "float",
1845 field_group: "rare-non-inherited",
1846 default_value: "0.0",
1763 }, 1847 },
1764 { 1848 {
1765 name: "perspective-origin", 1849 name: "perspective-origin",
1766 converter: "ConvertPosition", 1850 converter: "ConvertPosition",
1767 interpolable: true, 1851 interpolable: true,
1852 field_template: "storage_only",
1853 type_name: "LengthPoint",
1854 field_group: "rare-non-inherited",
1855 default_value: "LengthPoint(Length(50.0, kPercent), Length(50.0, kPercent) )",
1768 }, 1856 },
1769 { 1857 {
1770 name: "pointer-events", 1858 name: "pointer-events",
1771 independent: true, 1859 independent: true,
1772 inherited: true, 1860 inherited: true,
1773 default_value: "auto", 1861 default_value: "auto",
1774 field_template: "keyword", 1862 field_template: "keyword",
1775 keywords: [ 1863 keywords: [
1776 "none", "auto", "stroke", "fill", "painted", "visible", "visibleStroke", "visibleFill", "visiblePainted", "bounding-box", "all", 1864 "none", "auto", "stroke", "fill", "painted", "visible", "visibleStroke", "visibleFill", "visiblePainted", "bounding-box", "all",
1777 ], 1865 ],
(...skipping 17 matching lines...) Expand all
1795 field_template: "storage_only", 1883 field_template: "storage_only",
1796 type_name: "QuotesData", 1884 type_name: "QuotesData",
1797 include_paths: ["core/style/QuotesData.h"], 1885 include_paths: ["core/style/QuotesData.h"],
1798 default_value: "nullptr", 1886 default_value: "nullptr",
1799 wrapper_pointer_name: "RefPtr", 1887 wrapper_pointer_name: "RefPtr",
1800 field_group: "rare-inherited", 1888 field_group: "rare-inherited",
1801 }, 1889 },
1802 { 1890 {
1803 name: "resize", 1891 name: "resize",
1804 custom_value: true, 1892 custom_value: true,
1893 type_name: "EResize",
1894 field_template: "storage_only",
1895 field_group: "rare-non-inherited",
1896 field_size: 2,
1897 default_value: "RESIZE_NONE",
1805 }, 1898 },
1806 { 1899 {
1807 name: "right", 1900 name: "right",
1808 api_class: "CSSPropertyAPIMargin", 1901 api_class: "CSSPropertyAPIMargin",
1809 api_methods: ["parseSingleValue"], 1902 api_methods: ["parseSingleValue"],
1810 converter: "ConvertLengthOrAuto", 1903 converter: "ConvertLengthOrAuto",
1811 interpolable: true, 1904 interpolable: true,
1812 typedom_types: ["Length", "Percent"], 1905 typedom_types: ["Length", "Percent"],
1813 keywords: ["auto"], 1906 keywords: ["auto"],
1814 field_template: "external", 1907 field_template: "external",
(...skipping 22 matching lines...) Expand all
1837 api_class: "CSSPropertyAPIRadius", 1930 api_class: "CSSPropertyAPIRadius",
1838 api_methods: ["parseSingleValue"], 1931 api_methods: ["parseSingleValue"],
1839 converter: "ConvertLengthOrAuto", 1932 converter: "ConvertLengthOrAuto",
1840 interpolable: true, 1933 interpolable: true,
1841 svg: true, 1934 svg: true,
1842 }, 1935 },
1843 { 1936 {
1844 name: "scroll-behavior", 1937 name: "scroll-behavior",
1845 runtime_flag: "CSSOMSmoothScroll", 1938 runtime_flag: "CSSOMSmoothScroll",
1846 type_name: "ScrollBehavior", 1939 type_name: "ScrollBehavior",
1940 field_template: "storage_only",
1941 field_group: "rare-non-inherited",
1942 field_size: 2,
1943 default_value: "kScrollBehaviorAuto",
1847 }, 1944 },
1848 { 1945 {
1849 name: "scroll-snap-type", 1946 name: "scroll-snap-type",
1850 runtime_flag: "CSSScrollSnapPoints", 1947 runtime_flag: "CSSScrollSnapPoints",
1851 type_name: "ScrollSnapType", 1948 type_name: "ScrollSnapType",
1949 field_template: "storage_only",
1950 field_group: "rare-non-inherited",
1951 field_size: 2,
1952 default_value: "kScrollSnapTypeNone",
1852 }, 1953 },
1853 { 1954 {
1854 name: "scroll-snap-points-x", 1955 name: "scroll-snap-points-x",
1855 converter: "ConvertSnapPoints", 1956 converter: "ConvertSnapPoints",
1856 runtime_flag: "CSSScrollSnapPoints", 1957 runtime_flag: "CSSScrollSnapPoints",
1857 }, 1958 },
1858 { 1959 {
1859 name: "scroll-snap-points-y", 1960 name: "scroll-snap-points-y",
1860 converter: "ConvertSnapPoints", 1961 converter: "ConvertSnapPoints",
1861 runtime_flag: "CSSScrollSnapPoints", 1962 runtime_flag: "CSSScrollSnapPoints",
1862 }, 1963 },
1863 { 1964 {
1864 name: "scroll-snap-destination", 1965 name: "scroll-snap-destination",
1865 converter: "ConvertPosition", 1966 converter: "ConvertPosition",
1866 runtime_flag: "CSSScrollSnapPoints", 1967 runtime_flag: "CSSScrollSnapPoints",
1867 }, 1968 },
1868 { 1969 {
1869 name: "scroll-snap-coordinate", 1970 name: "scroll-snap-coordinate",
1870 api_class: true, 1971 api_class: true,
1871 api_methods: ["parseSingleValue"], 1972 api_methods: ["parseSingleValue"],
1872 converter: "ConvertSnapCoordinates", 1973 converter: "ConvertSnapCoordinates",
1873 runtime_flag: "CSSScrollSnapPoints", 1974 runtime_flag: "CSSScrollSnapPoints",
1874 }, 1975 },
1875 { 1976 {
1876 name: "shape-image-threshold", 1977 name: "shape-image-threshold",
1877 api_class: true, 1978 api_class: true,
1878 api_methods: ["parseSingleValue"], 1979 api_methods: ["parseSingleValue"],
1879 interpolable: true, 1980 interpolable: true,
1981 field_template: "storage_only",
1880 type_name: "float", 1982 type_name: "float",
1983 field_group: "rare-non-inherited",
1984 default_value: "0.0",
1881 }, 1985 },
1882 { 1986 {
1883 name: "shape-margin", 1987 name: "shape-margin",
1884 api_class: true, 1988 api_class: true,
1885 api_methods: ["parseSingleValue"], 1989 api_methods: ["parseSingleValue"],
1886 converter: "ConvertLength", 1990 converter: "ConvertLength",
1887 interpolable: true, 1991 interpolable: true,
1992 field_template: "storage_only",
1993 type_name: "Length",
1994 field_group: "rare-non-inherited",
1995 default_value: "Length(0, kFixed)",
1888 }, 1996 },
1889 { 1997 {
1890 name: "shape-outside", 1998 name: "shape-outside",
1891 api_class: true, 1999 api_class: true,
1892 api_methods: ["parseSingleValue"], 2000 api_methods: ["parseSingleValue"],
1893 converter: "ConvertShapeValue", 2001 converter: "ConvertShapeValue",
1894 interpolable: true, 2002 interpolable: true,
1895 typedom_types: ["Image"], 2003 typedom_types: ["Image"],
2004 field_template: "storage_only",
2005 type_name: "ShapeValue",
2006 field_group: "rare-non-inherited",
2007 default_value: "nullptr",
2008 wrapper_pointer_name: "Persistent",
2009 include_paths: ["core/style/ShapeValue.h"],
1896 }, 2010 },
1897 { 2011 {
1898 name: "shape-rendering", 2012 name: "shape-rendering",
1899 inherited: true, 2013 inherited: true,
1900 svg: true, 2014 svg: true,
1901 }, 2015 },
1902 { 2016 {
1903 name: "size", 2017 name: "size",
1904 api_class: true, 2018 api_class: true,
1905 api_methods: ["parseSingleValue"], 2019 api_methods: ["parseSingleValue"],
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
2062 longhands: "text-decoration-line;text-decoration-style;text-decoration-col or", 2176 longhands: "text-decoration-line;text-decoration-style;text-decoration-col or",
2063 use_handlers_for: "CSSPropertyTextDecorationLine", 2177 use_handlers_for: "CSSPropertyTextDecorationLine",
2064 }, 2178 },
2065 { 2179 {
2066 name: "text-decoration-color", 2180 name: "text-decoration-color",
2067 api_class: true, 2181 api_class: true,
2068 api_methods: ["parseSingleValue"], 2182 api_methods: ["parseSingleValue"],
2069 custom_all: true, 2183 custom_all: true,
2070 interpolable: true, 2184 interpolable: true,
2071 runtime_flag: "CSS3TextDecorations", 2185 runtime_flag: "CSS3TextDecorations",
2186 field_template: "storage_only",
2187 type_name: "StyleColor",
2188 field_group: "rare-non-inherited",
2189 default_value: "StyleColor::CurrentColor()",
2072 }, 2190 },
2073 { 2191 {
2074 name: "text-decoration-line", 2192 name: "text-decoration-line",
2075 api_class: "CSSPropertyAPITextDecorationLine", 2193 api_class: "CSSPropertyAPITextDecorationLine",
2076 converter: "ConvertFlags<TextDecoration>", 2194 converter: "ConvertFlags<TextDecoration>",
2077 name_for_methods: "TextDecoration", 2195 name_for_methods: "TextDecoration",
2078 runtime_flag: "CSS3TextDecorations", 2196 runtime_flag: "CSS3TextDecorations",
2079 type_name: "TextDecoration", 2197 type_name: "TextDecoration",
2080 }, 2198 },
2081 { 2199 {
2082 name: "text-decoration-skip", 2200 name: "text-decoration-skip",
2083 api_class: true, 2201 api_class: true,
2084 api_methods: ["parseSingleValue"], 2202 api_methods: ["parseSingleValue"],
2085 converter: "ConvertFlags<TextDecorationSkip>", 2203 converter: "ConvertFlags<TextDecorationSkip>",
2086 inherited: true, 2204 inherited: true,
2087 runtime_flag: "CSS3TextDecorations", 2205 runtime_flag: "CSS3TextDecorations",
2088 field_template: "storage_only", 2206 field_template: "storage_only",
2089 type_name: "TextDecorationSkip", 2207 type_name: "TextDecorationSkip",
2090 default_value: "TextDecorationSkip::kObjects", 2208 default_value: "TextDecorationSkip::kObjects",
2091 field_size: 3, 2209 field_size: 3,
2092 field_group: "rare-inherited", 2210 field_group: "rare-inherited",
2093 }, 2211 },
2094 { 2212 {
2095 name: "text-decoration-style", 2213 name: "text-decoration-style",
2096 runtime_flag: "CSS3TextDecorations", 2214 runtime_flag: "CSS3TextDecorations",
2097 type_name: "TextDecorationStyle", 2215 type_name: "TextDecorationStyle",
2216 field_template: "storage_only",
2217 field_group: "rare-non-inherited",
2218 default_value: "kTextDecorationStyleSolid",
2219 field_size: 3,
2098 }, 2220 },
2099 { 2221 {
2100 name: "text-indent", 2222 name: "text-indent",
2101 api_class: true, 2223 api_class: true,
2102 api_methods: ["parseSingleValue"], 2224 api_methods: ["parseSingleValue"],
2103 custom_all: true, 2225 custom_all: true,
2104 inherited: true, 2226 inherited: true,
2105 interpolable: true, 2227 interpolable: true,
2106 field_template: "external", 2228 field_template: "external",
2107 type_name: "Length", 2229 type_name: "Length",
(...skipping 10 matching lines...) Expand all
2118 type_name: "TextJustify", 2240 type_name: "TextJustify",
2119 include_paths: ["platform/text/TextJustify.h"], 2241 include_paths: ["platform/text/TextJustify.h"],
2120 type_name: "TextJustify", 2242 type_name: "TextJustify",
2121 default_value: "kTextJustifyAuto", 2243 default_value: "kTextJustifyAuto",
2122 field_size: 2, 2244 field_size: 2,
2123 field_group: "rare-inherited", 2245 field_group: "rare-inherited",
2124 }, 2246 },
2125 { 2247 {
2126 name: "text-overflow", 2248 name: "text-overflow",
2127 type_name: "TextOverflow", 2249 type_name: "TextOverflow",
2250 field_template: "storage_only",
2251 field_group: "rare-non-inherited",
2252 default_value: "kTextOverflowClip",
2253 field_size: 1,
2128 }, 2254 },
2129 { 2255 {
2130 name: "text-shadow", 2256 name: "text-shadow",
2131 converter: "ConvertShadowList", 2257 converter: "ConvertShadowList",
2132 inherited: true, 2258 inherited: true,
2133 interpolable: true, 2259 interpolable: true,
2134 field_template: "storage_only", 2260 field_template: "storage_only",
2135 type_name: "ShadowList", 2261 type_name: "ShadowList",
2136 include_paths: ["core/style/ShadowList.h"], 2262 include_paths: ["core/style/ShadowList.h"],
2137 wrapper_pointer_name: "RefPtr", 2263 wrapper_pointer_name: "RefPtr",
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
2185 type_name: "Length", 2311 type_name: "Length",
2186 field_group: "surround", 2312 field_group: "surround",
2187 default_value: "Length()", 2313 default_value: "Length()",
2188 }, 2314 },
2189 { 2315 {
2190 name: "touch-action", 2316 name: "touch-action",
2191 api_class: true, 2317 api_class: true,
2192 api_methods: ["parseSingleValue"], 2318 api_methods: ["parseSingleValue"],
2193 converter: "ConvertFlags<TouchAction>", 2319 converter: "ConvertFlags<TouchAction>",
2194 type_name: "TouchAction", 2320 type_name: "TouchAction",
2321 field_template: "storage_only",
2322 field_group: "rare-non-inherited",
2323 field_size: 6, // TODO(shend): Make this use "kTouchActionBits".
2324 default_value: "TouchAction::kTouchActionAuto",
2325 include_paths: ["platform/graphics/TouchAction.h"],
2195 }, 2326 },
2196 { 2327 {
2197 name: "transform", 2328 name: "transform",
2198 api_class: true, 2329 api_class: true,
2199 api_methods: ["parseSingleValue"], 2330 api_methods: ["parseSingleValue"],
2200 converter: "ConvertTransformOperations", 2331 converter: "ConvertTransformOperations",
2201 interpolable: true, 2332 interpolable: true,
2202 keywords: ["none"], 2333 keywords: ["none"],
2203 typedom_types: ["Transform"], 2334 typedom_types: ["Transform"],
2204 }, 2335 },
2205 { 2336 {
2206 name: "transform-box", 2337 name: "transform-box",
2207 field_template: "keyword", 2338 field_template: "keyword",
2208 keywords: ["border-box", "fill-box", "view-box"], 2339 keywords: ["border-box", "fill-box", "view-box"],
2209 default_value: "border-box", 2340 default_value: "border-box",
2210 runtime_flag: "CSSTransformBox", 2341 runtime_flag: "CSSTransformBox",
2211 }, 2342 },
2212 { 2343 {
2213 name: "transform-origin", 2344 name: "transform-origin",
2214 api_class: true, 2345 api_class: true,
2215 api_methods: ["parseSingleValue"], 2346 api_methods: ["parseSingleValue"],
2216 converter: "ConvertTransformOrigin", 2347 converter: "ConvertTransformOrigin",
2217 getter: "GetTransformOrigin", 2348 getter: "GetTransformOrigin",
2218 interpolable: true, 2349 interpolable: true,
2219 }, 2350 },
2220 { 2351 {
2221 name: "transform-style", 2352 name: "transform-style",
2222 name_for_methods: "TransformStyle3D", 2353 name_for_methods: "TransformStyle3D",
2354 field_template: "storage_only",
2355 field_group: "rare-non-inherited",
2356 default_value: "kTransformStyle3DFlat",
2357 field_size: 1,
2223 }, 2358 },
2224 { 2359 {
2225 name: "translate", 2360 name: "translate",
2226 api_class: true, 2361 api_class: true,
2227 api_methods: ["parseSingleValue"], 2362 api_methods: ["parseSingleValue"],
2228 converter: "ConvertTranslate", 2363 converter: "ConvertTranslate",
2229 interpolable: true, 2364 interpolable: true,
2230 runtime_flag: "CSSIndependentTransformProperties", 2365 runtime_flag: "CSSIndependentTransformProperties",
2231 }, 2366 },
2232 { 2367 {
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
2286 { 2421 {
2287 name: "y", 2422 name: "y",
2288 api_class: "CSSPropertyAPIStrokeOrLength", 2423 api_class: "CSSPropertyAPIStrokeOrLength",
2289 converter: "ConvertLength", 2424 converter: "ConvertLength",
2290 interpolable: true, 2425 interpolable: true,
2291 svg: true, 2426 svg: true,
2292 }, 2427 },
2293 { 2428 {
2294 name: "-webkit-appearance", 2429 name: "-webkit-appearance",
2295 type_name: "ControlPart", 2430 type_name: "ControlPart",
2431 field_template: "storage_only",
2432 field_group: "rare-non-inherited",
2433 default_value: "kNoControlPart",
2434 field_size: 6,
2296 }, 2435 },
2297 { 2436 {
2298 name: "-webkit-app-region", 2437 name: "-webkit-app-region",
2299 custom_all: true, 2438 custom_all: true,
2300 }, 2439 },
2301 { 2440 {
2302 name: "-webkit-background-clip", 2441 name: "-webkit-background-clip",
2303 use_handlers_for: "CSSPropertyBackgroundClip", 2442 use_handlers_for: "CSSPropertyBackgroundClip",
2304 }, 2443 },
2305 { 2444 {
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
2376 }, 2515 },
2377 { 2516 {
2378 name: "-webkit-box-orient", 2517 name: "-webkit-box-orient",
2379 }, 2518 },
2380 { 2519 {
2381 name: "-webkit-box-pack", 2520 name: "-webkit-box-pack",
2382 }, 2521 },
2383 { 2522 {
2384 name: "-webkit-box-reflect", 2523 name: "-webkit-box-reflect",
2385 converter: "ConvertBoxReflect", 2524 converter: "ConvertBoxReflect",
2525 field_template: "storage_only",
2526 type_name: "StyleReflection",
2527 field_group: "rare-non-inherited",
2528 default_value: "nullptr",
2529 wrapper_pointer_name: "RefPtr",
2530 include_paths: ["core/style/StyleReflection.h"],
2386 }, 2531 },
2387 { 2532 {
2388 name: "column-count", 2533 name: "column-count",
2389 api_class: true, 2534 api_class: true,
2390 api_methods: ["parseSingleValue"], 2535 api_methods: ["parseSingleValue"],
2391 custom_all: true, 2536 custom_all: true,
2392 interpolable: true, 2537 interpolable: true,
2393 type_name: "unsigned short", 2538 type_name: "unsigned short",
2394 }, 2539 },
2395 { 2540 {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
2458 }, 2603 },
2459 { 2604 {
2460 name: "-webkit-line-break", 2605 name: "-webkit-line-break",
2461 inherited: true, 2606 inherited: true,
2462 field_template: "keyword", 2607 field_template: "keyword",
2463 type_name: "LineBreak", 2608 type_name: "LineBreak",
2464 keywords: ["auto", "loose", "normal", "strict", "after-white-space"], 2609 keywords: ["auto", "loose", "normal", "strict", "after-white-space"],
2465 default_value: "auto", 2610 default_value: "auto",
2466 field_group: "rare-inherited", 2611 field_group: "rare-inherited",
2467 }, 2612 },
2613 // An Apple extension.
2468 { 2614 {
2469 name: "-webkit-line-clamp", 2615 name: "-webkit-line-clamp",
2470 api_class: true, 2616 api_class: true,
2471 api_methods: ["parseSingleValue"], 2617 api_methods: ["parseSingleValue"],
2472 type_name: "LineClampValue", 2618 type_name: "LineClampValue",
2619 field_template: "storage_only",
2620 field_group: "rare-non-inherited",
2621 default_value: "LineClampValue()",
2622 include_paths: ["core/style/LineClampValue.h"],
2473 }, 2623 },
2474 { 2624 {
2475 name: "-webkit-margin-after-collapse", 2625 name: "-webkit-margin-after-collapse",
2476 type_name: "EMarginCollapse", 2626 type_name: "EMarginCollapse",
2627 field_template: "storage_only",
2628 field_group: "rare-non-inherited",
2629 default_value: "kMarginCollapseCollapse",
2630 field_size: 2,
2477 }, 2631 },
2478 { 2632 {
2479 name: "-webkit-margin-before-collapse", 2633 name: "-webkit-margin-before-collapse",
2480 type_name: "EMarginCollapse", 2634 type_name: "EMarginCollapse",
2635 field_template: "storage_only",
2636 field_group: "rare-non-inherited",
2637 default_value: "kMarginCollapseCollapse",
2638 field_size: 2,
2481 }, 2639 },
2482 { 2640 {
2483 name: "-webkit-margin-bottom-collapse", 2641 name: "-webkit-margin-bottom-collapse",
2484 name_for_methods: "MarginAfterCollapse", 2642 name_for_methods: "MarginAfterCollapse",
2485 type_name: "EMarginCollapse", 2643 type_name: "EMarginCollapse",
2486 }, 2644 },
2487 { 2645 {
2488 name: "-webkit-margin-top-collapse", 2646 name: "-webkit-margin-top-collapse",
2489 name_for_methods: "MarginBeforeCollapse", 2647 name_for_methods: "MarginBeforeCollapse",
2490 type_name: "EMarginCollapse", 2648 type_name: "EMarginCollapse",
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
2704 }, 2862 },
2705 { 2863 {
2706 name: "-webkit-transform-origin-z", 2864 name: "-webkit-transform-origin-z",
2707 api_class: true, 2865 api_class: true,
2708 api_methods: ["parseSingleValue"], 2866 api_methods: ["parseSingleValue"],
2709 converter: "ConvertComputedLength<float>", 2867 converter: "ConvertComputedLength<float>",
2710 interpolable: true, 2868 interpolable: true,
2711 }, 2869 },
2712 { 2870 {
2713 name: "-webkit-user-drag", 2871 name: "-webkit-user-drag",
2872 field_template: "storage_only",
2873 type_name: "EUserDrag",
2874 field_group: "rare-non-inherited",
2875 default_value: "DRAG_AUTO",
2876 field_size: 2,
2714 }, 2877 },
2715 { 2878 {
2716 name: "-webkit-user-modify", 2879 name: "-webkit-user-modify",
2717 inherited: true, 2880 inherited: true,
2718 field_template: "keyword", 2881 field_template: "keyword",
2719 keywords: ["read-only", "read-write", "read-write-plaintext-only"], 2882 keywords: ["read-only", "read-write", "read-write-plaintext-only"],
2720 default_value: "read-only", 2883 default_value: "read-only",
2721 field_group: "rare-inherited", 2884 field_group: "rare-inherited",
2722 }, 2885 },
2723 { 2886 {
(...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after
3552 { 3715 {
3553 name: "-webkit-transition-timing-function", 3716 name: "-webkit-transition-timing-function",
3554 alias_for: "transition-timing-function", 3717 alias_for: "transition-timing-function",
3555 }, 3718 },
3556 { 3719 {
3557 name: "-webkit-user-select", 3720 name: "-webkit-user-select",
3558 alias_for: "user-select", 3721 alias_for: "user-select",
3559 }, 3722 },
3560 ], 3723 ],
3561 } 3724 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698