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

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)",
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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
1313 name: "image-orientation", 1358 name: "image-orientation",
1314 api_class: true, 1359 api_class: true,
1315 api_methods: ["parseSingleValue"], 1360 api_methods: ["parseSingleValue"],
1316 converter: "ConvertImageOrientation", 1361 converter: "ConvertImageOrientation",
1317 inherited: true, 1362 inherited: true,
1318 name_for_methods: "RespectImageOrientation", 1363 name_for_methods: "RespectImageOrientation",
1319 runtime_flag: "ImageOrientation", 1364 runtime_flag: "ImageOrientation",
1320 }, 1365 },
1321 { 1366 {
1322 name: "isolation", 1367 name: "isolation",
1368 type_name: "EIsolation",
1369 field_template: "storage_only",
1370 field_group: "rare-non-inherited",
1371 field_size: 1,
1372 default_value: "kIsolationAuto",
1323 }, 1373 },
1324 { 1374 {
1325 name: "justify-content", 1375 name: "justify-content",
1326 api_class: "CSSPropertyAPIAlignOrJustifyContent", 1376 api_class: "CSSPropertyAPIAlignOrJustifyContent",
1327 api_methods: ["parseSingleValue"], 1377 api_methods: ["parseSingleValue"],
1328 converter: "ConvertContentAlignmentData", 1378 converter: "ConvertContentAlignmentData",
1329 initial: "InitialContentAlignment", 1379 initial: "InitialContentAlignment",
1380 field_template: "storage_only",
1381 type_name: "StyleContentAlignmentData",
1382 field_group: "rare-non-inherited",
1383 default_value: "StyleContentAlignmentData(kContentPositionNormal, kContent DistributionDefault, kOverflowAlignmentDefault)",
1384 include_paths: ["core/style/StyleContentAlignmentData.h"],
1330 }, 1385 },
1331 { 1386 {
1332 name: "justify-items", 1387 name: "justify-items",
1333 api_class: true, 1388 api_class: true,
1334 api_methods: ["parseSingleValue"], 1389 api_methods: ["parseSingleValue"],
1335 converter: "ConvertSelfOrDefaultAlignmentData", 1390 converter: "ConvertSelfOrDefaultAlignmentData",
1336 initial: "InitialSelfAlignment", 1391 initial: "InitialSelfAlignment",
1337 runtime_flag: "CSSGridLayout", 1392 runtime_flag: "CSSGridLayout",
1393 field_template: "storage_only",
1394 type_name: "StyleSelfAlignmentData",
1395 field_group: "rare-non-inherited",
1396 default_value: "StyleSelfAlignmentData(kItemPositionAuto, kOverflowAlignme ntDefault)",
1397 include_paths: ["core/style/StyleSelfAlignmentData.h"],
1338 }, 1398 },
1339 { 1399 {
1340 name: "justify-self", 1400 name: "justify-self",
1341 api_class: "CSSPropertyAPIAlignOrJustifySelf", 1401 api_class: "CSSPropertyAPIAlignOrJustifySelf",
1342 api_methods: ["parseSingleValue"], 1402 api_methods: ["parseSingleValue"],
1343 converter: "ConvertSelfOrDefaultAlignmentData", 1403 converter: "ConvertSelfOrDefaultAlignmentData",
1344 initial: "InitialSelfAlignment", 1404 initial: "InitialSelfAlignment",
1345 runtime_flag: "CSSGridLayout", 1405 runtime_flag: "CSSGridLayout",
1406 field_template: "storage_only",
1407 type_name: "StyleSelfAlignmentData",
1408 field_group: "rare-non-inherited",
1409 default_value: "StyleSelfAlignmentData(kItemPositionAuto, kOverflowAlignme ntDefault)",
1410 include_paths: ["core/style/StyleSelfAlignmentData.h"],
1346 }, 1411 },
1347 { 1412 {
1348 name: "left", 1413 name: "left",
1349 api_class: "CSSPropertyAPIMargin", 1414 api_class: "CSSPropertyAPIMargin",
1350 api_methods: ["parseSingleValue"], 1415 api_methods: ["parseSingleValue"],
1351 converter: "ConvertLengthOrAuto", 1416 converter: "ConvertLengthOrAuto",
1352 interpolable: true, 1417 interpolable: true,
1353 typedom_types: ["Length", "Percent"], 1418 typedom_types: ["Length", "Percent"],
1354 keywords: ["auto"], 1419 keywords: ["auto"],
1355 field_template: "external", 1420 field_template: "external",
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
1567 default_value: "Length()", 1632 default_value: "Length()",
1568 }, 1633 },
1569 { 1634 {
1570 name: "mix-blend-mode", 1635 name: "mix-blend-mode",
1571 name_for_methods: "BlendMode", 1636 name_for_methods: "BlendMode",
1572 type_name: "blink::WebBlendMode", 1637 type_name: "blink::WebBlendMode",
1573 }, 1638 },
1574 { 1639 {
1575 name: "object-fit", 1640 name: "object-fit",
1576 type_name: "ObjectFit", 1641 type_name: "ObjectFit",
1642 field_template: "storage_only",
1643 field_group: "rare-non-inherited",
1644 field_size: 3,
1645 default_value: "kObjectFitFill",
1577 }, 1646 },
1578 { 1647 {
1579 name: "object-position", 1648 name: "object-position",
1580 converter: "ConvertPosition", 1649 converter: "ConvertPosition",
1581 interpolable: true, 1650 interpolable: true,
1651 field_template: "storage_only",
1652 type_name: "LengthPoint",
1653 field_group: "rare-non-inherited",
1654 default_value: "LengthPoint(Length(50.0, kPercent), Length(50.0, kPercent) )",
1582 }, 1655 },
1583 { 1656 {
1584 name: "offset-anchor", 1657 name: "offset-anchor",
1585 api_class: true, 1658 api_class: true,
1586 api_methods: ["parseSingleValue"], 1659 api_methods: ["parseSingleValue"],
1587 converter: "ConvertPositionOrAuto", 1660 converter: "ConvertPositionOrAuto",
1588 interpolable: true, 1661 interpolable: true,
1589 runtime_flag: "CSSOffsetPositionAnchor", 1662 runtime_flag: "CSSOffsetPositionAnchor",
1590 }, 1663 },
1591 { 1664 {
(...skipping 15 matching lines...) Expand all
1607 converter: "ConvertPositionOrAuto", 1680 converter: "ConvertPositionOrAuto",
1608 interpolable: true, 1681 interpolable: true,
1609 runtime_flag: "CSSOffsetPositionAnchor", 1682 runtime_flag: "CSSOffsetPositionAnchor",
1610 }, 1683 },
1611 { 1684 {
1612 name: "offset-rotate", 1685 name: "offset-rotate",
1613 api_class: "CSSPropertyAPIOffsetRotate", 1686 api_class: "CSSPropertyAPIOffsetRotate",
1614 converter: "ConvertOffsetRotate", 1687 converter: "ConvertOffsetRotate",
1615 interpolable: true, 1688 interpolable: true,
1616 }, 1689 },
1690 // Whether or not we're transparent.
1617 { 1691 {
1618 name: "opacity", 1692 name: "opacity",
1619 api_class: "CSSPropertyAPIOpacity", 1693 api_class: "CSSPropertyAPIOpacity",
1620 api_methods: ["parseSingleValue"], 1694 api_methods: ["parseSingleValue"],
1621 interpolable: true, 1695 interpolable: true,
1696 field_template: "storage_only",
1622 type_name: "float", 1697 type_name: "float",
1698 field_group: "rare-non-inherited",
1699 default_value: "1.0",
1623 }, 1700 },
1624 { 1701 {
1625 name: "order", 1702 name: "order",
1626 api_class: true, 1703 api_class: true,
1627 api_methods: ["parseSingleValue"], 1704 api_methods: ["parseSingleValue"],
1628 interpolable: true, 1705 interpolable: true,
1706 field_template: "storage_only",
1629 type_name: "int", 1707 type_name: "int",
1708 field_group: "rare-non-inherited",
1709 default_value: "0",
1630 }, 1710 },
1631 { 1711 {
1632 name: "orphans", 1712 name: "orphans",
1633 api_class: "CSSPropertyAPIFragmentation", 1713 api_class: "CSSPropertyAPIFragmentation",
1634 api_methods: ["parseSingleValue"], 1714 api_methods: ["parseSingleValue"],
1635 inherited: true, 1715 inherited: true,
1636 interpolable: true, 1716 interpolable: true,
1637 type_name: "short", 1717 type_name: "short",
1638 field_template: "primitive", 1718 field_template: "primitive",
1639 default_value: "2", 1719 default_value: "2",
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
1755 api_methods: ["parseSingleValue"], 1835 api_methods: ["parseSingleValue"],
1756 converter: "ConvertPaintOrder", 1836 converter: "ConvertPaintOrder",
1757 inherited: true, 1837 inherited: true,
1758 svg: true, 1838 svg: true,
1759 }, 1839 },
1760 { 1840 {
1761 name: "perspective", 1841 name: "perspective",
1762 api_class: "CSSPropertyAPIPerspective", 1842 api_class: "CSSPropertyAPIPerspective",
1763 converter: "ConvertPerspective", 1843 converter: "ConvertPerspective",
1764 interpolable: true, 1844 interpolable: true,
1845 field_template: "storage_only",
1846 type_name: "float",
1847 field_group: "rare-non-inherited",
1848 default_value: "0.0",
1765 }, 1849 },
1766 { 1850 {
1767 name: "perspective-origin", 1851 name: "perspective-origin",
1768 converter: "ConvertPosition", 1852 converter: "ConvertPosition",
1769 interpolable: true, 1853 interpolable: true,
1854 field_template: "storage_only",
1855 type_name: "LengthPoint",
1856 field_group: "rare-non-inherited",
1857 default_value: "LengthPoint(Length(50.0, kPercent), Length(50.0, kPercent) )",
1770 }, 1858 },
1771 { 1859 {
1772 name: "pointer-events", 1860 name: "pointer-events",
1773 independent: true, 1861 independent: true,
1774 inherited: true, 1862 inherited: true,
1775 default_value: "auto", 1863 default_value: "auto",
1776 field_template: "keyword", 1864 field_template: "keyword",
1777 keywords: [ 1865 keywords: [
1778 "none", "auto", "stroke", "fill", "painted", "visible", "visibleStroke", "visibleFill", "visiblePainted", "bounding-box", "all", 1866 "none", "auto", "stroke", "fill", "painted", "visible", "visibleStroke", "visibleFill", "visiblePainted", "bounding-box", "all",
1779 ], 1867 ],
(...skipping 17 matching lines...) Expand all
1797 field_template: "storage_only", 1885 field_template: "storage_only",
1798 type_name: "QuotesData", 1886 type_name: "QuotesData",
1799 include_paths: ["core/style/QuotesData.h"], 1887 include_paths: ["core/style/QuotesData.h"],
1800 default_value: "nullptr", 1888 default_value: "nullptr",
1801 wrapper_pointer_name: "RefPtr", 1889 wrapper_pointer_name: "RefPtr",
1802 field_group: "rare-inherited", 1890 field_group: "rare-inherited",
1803 }, 1891 },
1804 { 1892 {
1805 name: "resize", 1893 name: "resize",
1806 custom_value: true, 1894 custom_value: true,
1895 type_name: "EResize",
1896 field_template: "storage_only",
1897 field_group: "rare-non-inherited",
1898 field_size: 2,
1899 default_value: "RESIZE_NONE",
1807 }, 1900 },
1808 { 1901 {
1809 name: "right", 1902 name: "right",
1810 api_class: "CSSPropertyAPIMargin", 1903 api_class: "CSSPropertyAPIMargin",
1811 api_methods: ["parseSingleValue"], 1904 api_methods: ["parseSingleValue"],
1812 converter: "ConvertLengthOrAuto", 1905 converter: "ConvertLengthOrAuto",
1813 interpolable: true, 1906 interpolable: true,
1814 typedom_types: ["Length", "Percent"], 1907 typedom_types: ["Length", "Percent"],
1815 keywords: ["auto"], 1908 keywords: ["auto"],
1816 field_template: "external", 1909 field_template: "external",
(...skipping 22 matching lines...) Expand all
1839 api_class: "CSSPropertyAPIRadius", 1932 api_class: "CSSPropertyAPIRadius",
1840 api_methods: ["parseSingleValue"], 1933 api_methods: ["parseSingleValue"],
1841 converter: "ConvertLengthOrAuto", 1934 converter: "ConvertLengthOrAuto",
1842 interpolable: true, 1935 interpolable: true,
1843 svg: true, 1936 svg: true,
1844 }, 1937 },
1845 { 1938 {
1846 name: "scroll-behavior", 1939 name: "scroll-behavior",
1847 runtime_flag: "CSSOMSmoothScroll", 1940 runtime_flag: "CSSOMSmoothScroll",
1848 type_name: "ScrollBehavior", 1941 type_name: "ScrollBehavior",
1942 field_template: "storage_only",
1943 field_group: "rare-non-inherited",
1944 field_size: 2,
1945 default_value: "kScrollBehaviorAuto",
1849 }, 1946 },
1850 { 1947 {
1851 name: "scroll-snap-type", 1948 name: "scroll-snap-type",
1852 runtime_flag: "CSSScrollSnapPoints", 1949 runtime_flag: "CSSScrollSnapPoints",
1853 type_name: "ScrollSnapType", 1950 type_name: "ScrollSnapType",
1951 field_template: "storage_only",
1952 field_group: "rare-non-inherited",
1953 field_size: 2,
1954 default_value: "kScrollSnapTypeNone",
1854 }, 1955 },
1855 { 1956 {
1856 name: "scroll-snap-points-x", 1957 name: "scroll-snap-points-x",
1857 converter: "ConvertSnapPoints", 1958 converter: "ConvertSnapPoints",
1858 runtime_flag: "CSSScrollSnapPoints", 1959 runtime_flag: "CSSScrollSnapPoints",
1859 }, 1960 },
1860 { 1961 {
1861 name: "scroll-snap-points-y", 1962 name: "scroll-snap-points-y",
1862 converter: "ConvertSnapPoints", 1963 converter: "ConvertSnapPoints",
1863 runtime_flag: "CSSScrollSnapPoints", 1964 runtime_flag: "CSSScrollSnapPoints",
1864 }, 1965 },
1865 { 1966 {
1866 name: "scroll-snap-destination", 1967 name: "scroll-snap-destination",
1867 converter: "ConvertPosition", 1968 converter: "ConvertPosition",
1868 runtime_flag: "CSSScrollSnapPoints", 1969 runtime_flag: "CSSScrollSnapPoints",
1869 }, 1970 },
1870 { 1971 {
1871 name: "scroll-snap-coordinate", 1972 name: "scroll-snap-coordinate",
1872 api_class: true, 1973 api_class: true,
1873 api_methods: ["parseSingleValue"], 1974 api_methods: ["parseSingleValue"],
1874 converter: "ConvertSnapCoordinates", 1975 converter: "ConvertSnapCoordinates",
1875 runtime_flag: "CSSScrollSnapPoints", 1976 runtime_flag: "CSSScrollSnapPoints",
1876 }, 1977 },
1877 { 1978 {
1878 name: "shape-image-threshold", 1979 name: "shape-image-threshold",
1879 api_class: true, 1980 api_class: true,
1880 api_methods: ["parseSingleValue"], 1981 api_methods: ["parseSingleValue"],
1881 interpolable: true, 1982 interpolable: true,
1983 field_template: "storage_only",
1882 type_name: "float", 1984 type_name: "float",
1985 field_group: "rare-non-inherited",
1986 default_value: "0.0",
1883 }, 1987 },
1884 { 1988 {
1885 name: "shape-margin", 1989 name: "shape-margin",
1886 api_class: true, 1990 api_class: true,
1887 api_methods: ["parseSingleValue"], 1991 api_methods: ["parseSingleValue"],
1888 converter: "ConvertLength", 1992 converter: "ConvertLength",
1889 interpolable: true, 1993 interpolable: true,
1994 field_template: "storage_only",
1995 type_name: "Length",
1996 field_group: "rare-non-inherited",
1997 default_value: "Length(0, kFixed)",
1890 }, 1998 },
1891 { 1999 {
1892 name: "shape-outside", 2000 name: "shape-outside",
1893 api_class: true, 2001 api_class: true,
1894 api_methods: ["parseSingleValue"], 2002 api_methods: ["parseSingleValue"],
1895 converter: "ConvertShapeValue", 2003 converter: "ConvertShapeValue",
1896 interpolable: true, 2004 interpolable: true,
1897 typedom_types: ["Image"], 2005 typedom_types: ["Image"],
2006 field_template: "storage_only",
2007 type_name: "ShapeValue",
2008 field_group: "rare-non-inherited",
2009 default_value: "nullptr",
2010 wrapper_pointer_name: "Persistent",
2011 include_paths: ["core/style/ShapeValue.h"],
1898 }, 2012 },
1899 { 2013 {
1900 name: "shape-rendering", 2014 name: "shape-rendering",
1901 inherited: true, 2015 inherited: true,
1902 svg: true, 2016 svg: true,
1903 }, 2017 },
1904 { 2018 {
1905 name: "size", 2019 name: "size",
1906 api_class: true, 2020 api_class: true,
1907 api_methods: ["parseSingleValue"], 2021 api_methods: ["parseSingleValue"],
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
2064 longhands: "text-decoration-line;text-decoration-style;text-decoration-col or", 2178 longhands: "text-decoration-line;text-decoration-style;text-decoration-col or",
2065 use_handlers_for: "CSSPropertyTextDecorationLine", 2179 use_handlers_for: "CSSPropertyTextDecorationLine",
2066 }, 2180 },
2067 { 2181 {
2068 name: "text-decoration-color", 2182 name: "text-decoration-color",
2069 api_class: true, 2183 api_class: true,
2070 api_methods: ["parseSingleValue"], 2184 api_methods: ["parseSingleValue"],
2071 custom_all: true, 2185 custom_all: true,
2072 interpolable: true, 2186 interpolable: true,
2073 runtime_flag: "CSS3TextDecorations", 2187 runtime_flag: "CSS3TextDecorations",
2188 field_template: "storage_only",
2189 type_name: "StyleColor",
2190 field_group: "rare-non-inherited",
2191 default_value: "StyleColor::CurrentColor()",
2074 }, 2192 },
2075 { 2193 {
2076 name: "text-decoration-line", 2194 name: "text-decoration-line",
2077 api_class: "CSSPropertyAPITextDecorationLine", 2195 api_class: "CSSPropertyAPITextDecorationLine",
2078 converter: "ConvertFlags<TextDecoration>", 2196 converter: "ConvertFlags<TextDecoration>",
2079 name_for_methods: "TextDecoration", 2197 name_for_methods: "TextDecoration",
2080 runtime_flag: "CSS3TextDecorations", 2198 runtime_flag: "CSS3TextDecorations",
2081 type_name: "TextDecoration", 2199 type_name: "TextDecoration",
2082 }, 2200 },
2083 { 2201 {
2084 name: "text-decoration-skip", 2202 name: "text-decoration-skip",
2085 api_class: true, 2203 api_class: true,
2086 api_methods: ["parseSingleValue"], 2204 api_methods: ["parseSingleValue"],
2087 converter: "ConvertFlags<TextDecorationSkip>", 2205 converter: "ConvertFlags<TextDecorationSkip>",
2088 inherited: true, 2206 inherited: true,
2089 runtime_flag: "CSS3TextDecorations", 2207 runtime_flag: "CSS3TextDecorations",
2090 field_template: "storage_only", 2208 field_template: "storage_only",
2091 type_name: "TextDecorationSkip", 2209 type_name: "TextDecorationSkip",
2092 default_value: "TextDecorationSkip::kObjects", 2210 default_value: "TextDecorationSkip::kObjects",
2093 field_size: 3, 2211 field_size: 3,
2094 field_group: "rare-inherited", 2212 field_group: "rare-inherited",
2095 }, 2213 },
2096 { 2214 {
2097 name: "text-decoration-style", 2215 name: "text-decoration-style",
2098 runtime_flag: "CSS3TextDecorations", 2216 runtime_flag: "CSS3TextDecorations",
2099 type_name: "TextDecorationStyle", 2217 type_name: "TextDecorationStyle",
2218 field_template: "storage_only",
2219 field_group: "rare-non-inherited",
2220 default_value: "kTextDecorationStyleSolid",
2221 field_size: 3,
2100 }, 2222 },
2101 { 2223 {
2102 name: "text-indent", 2224 name: "text-indent",
2103 api_class: true, 2225 api_class: true,
2104 api_methods: ["parseSingleValue"], 2226 api_methods: ["parseSingleValue"],
2105 custom_all: true, 2227 custom_all: true,
2106 inherited: true, 2228 inherited: true,
2107 interpolable: true, 2229 interpolable: true,
2108 field_template: "external", 2230 field_template: "external",
2109 type_name: "Length", 2231 type_name: "Length",
2110 include_paths: ["platform/Length.h"], 2232 include_paths: ["platform/Length.h"],
2111 default_value: "Length(kFixed)", 2233 default_value: "Length(kFixed)",
2112 field_group: "rare-inherited", 2234 field_group: "rare-inherited",
2113 }, 2235 },
2114 { 2236 {
2115 name: "text-justify", 2237 name: "text-justify",
2116 inherited: true, 2238 inherited: true,
2117 runtime_flag: "CSS3Text", 2239 runtime_flag: "CSS3Text",
2118 getter: "GetTextJustify", 2240 getter: "GetTextJustify",
2119 field_template: "keyword", 2241 field_template: "keyword",
2120 type_name: "TextJustify", 2242 type_name: "TextJustify",
2121 include_paths: ["platform/text/TextJustify.h"], 2243 include_paths: ["platform/text/TextJustify.h"],
2122 default_value: "auto", 2244 default_value: "auto",
2123 keywords: ["auto", "none", "inter-word", "distribute"], 2245 keywords: ["auto", "none", "inter-word", "distribute"],
2124 field_group: "rare-inherited", 2246 field_group: "rare-inherited",
2125 }, 2247 },
2126 { 2248 {
2127 name: "text-overflow", 2249 name: "text-overflow",
2128 type_name: "TextOverflow", 2250 type_name: "TextOverflow",
2251 field_template: "storage_only",
2252 field_group: "rare-non-inherited",
2253 default_value: "kTextOverflowClip",
2254 field_size: 1,
2129 }, 2255 },
2130 { 2256 {
2131 name: "text-shadow", 2257 name: "text-shadow",
2132 converter: "ConvertShadowList", 2258 converter: "ConvertShadowList",
2133 inherited: true, 2259 inherited: true,
2134 interpolable: true, 2260 interpolable: true,
2135 field_template: "storage_only", 2261 field_template: "storage_only",
2136 type_name: "ShadowList", 2262 type_name: "ShadowList",
2137 include_paths: ["core/style/ShadowList.h"], 2263 include_paths: ["core/style/ShadowList.h"],
2138 wrapper_pointer_name: "RefPtr", 2264 wrapper_pointer_name: "RefPtr",
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
2186 type_name: "Length", 2312 type_name: "Length",
2187 field_group: "surround", 2313 field_group: "surround",
2188 default_value: "Length()", 2314 default_value: "Length()",
2189 }, 2315 },
2190 { 2316 {
2191 name: "touch-action", 2317 name: "touch-action",
2192 api_class: true, 2318 api_class: true,
2193 api_methods: ["parseSingleValue"], 2319 api_methods: ["parseSingleValue"],
2194 converter: "ConvertFlags<TouchAction>", 2320 converter: "ConvertFlags<TouchAction>",
2195 type_name: "TouchAction", 2321 type_name: "TouchAction",
2322 field_template: "storage_only",
2323 field_group: "rare-non-inherited",
2324 field_size: 6, // TODO(shend): Make this use "kTouchActionBits".
2325 default_value: "TouchAction::kTouchActionAuto",
2326 include_paths: ["platform/graphics/TouchAction.h"],
2196 }, 2327 },
2197 { 2328 {
2198 name: "transform", 2329 name: "transform",
2199 api_class: true, 2330 api_class: true,
2200 api_methods: ["parseSingleValue"], 2331 api_methods: ["parseSingleValue"],
2201 converter: "ConvertTransformOperations", 2332 converter: "ConvertTransformOperations",
2202 interpolable: true, 2333 interpolable: true,
2203 keywords: ["none"], 2334 keywords: ["none"],
2204 typedom_types: ["Transform"], 2335 typedom_types: ["Transform"],
2205 }, 2336 },
2206 { 2337 {
2207 name: "transform-box", 2338 name: "transform-box",
2208 field_template: "keyword", 2339 field_template: "keyword",
2209 keywords: ["border-box", "fill-box", "view-box"], 2340 keywords: ["border-box", "fill-box", "view-box"],
2210 default_value: "border-box", 2341 default_value: "border-box",
2211 runtime_flag: "CSSTransformBox", 2342 runtime_flag: "CSSTransformBox",
2212 }, 2343 },
2213 { 2344 {
2214 name: "transform-origin", 2345 name: "transform-origin",
2215 api_class: true, 2346 api_class: true,
2216 api_methods: ["parseSingleValue"], 2347 api_methods: ["parseSingleValue"],
2217 converter: "ConvertTransformOrigin", 2348 converter: "ConvertTransformOrigin",
2218 getter: "GetTransformOrigin", 2349 getter: "GetTransformOrigin",
2219 interpolable: true, 2350 interpolable: true,
2220 }, 2351 },
2221 { 2352 {
2222 name: "transform-style", 2353 name: "transform-style",
2223 name_for_methods: "TransformStyle3D", 2354 name_for_methods: "TransformStyle3D",
2355 field_template: "storage_only",
2356 field_group: "rare-non-inherited",
2357 default_value: "kTransformStyle3DFlat",
2358 field_size: 1,
2224 }, 2359 },
2225 { 2360 {
2226 name: "translate", 2361 name: "translate",
2227 api_class: true, 2362 api_class: true,
2228 api_methods: ["parseSingleValue"], 2363 api_methods: ["parseSingleValue"],
2229 converter: "ConvertTranslate", 2364 converter: "ConvertTranslate",
2230 interpolable: true, 2365 interpolable: true,
2231 runtime_flag: "CSSIndependentTransformProperties", 2366 runtime_flag: "CSSIndependentTransformProperties",
2232 }, 2367 },
2233 { 2368 {
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
2287 { 2422 {
2288 name: "y", 2423 name: "y",
2289 api_class: "CSSPropertyAPIStrokeOrLength", 2424 api_class: "CSSPropertyAPIStrokeOrLength",
2290 converter: "ConvertLength", 2425 converter: "ConvertLength",
2291 interpolable: true, 2426 interpolable: true,
2292 svg: true, 2427 svg: true,
2293 }, 2428 },
2294 { 2429 {
2295 name: "-webkit-appearance", 2430 name: "-webkit-appearance",
2296 type_name: "ControlPart", 2431 type_name: "ControlPart",
2432 field_template: "storage_only",
2433 field_group: "rare-non-inherited",
2434 default_value: "kNoControlPart",
2435 field_size: 6,
2297 }, 2436 },
2298 { 2437 {
2299 name: "-webkit-app-region", 2438 name: "-webkit-app-region",
2300 custom_all: true, 2439 custom_all: true,
2301 }, 2440 },
2302 { 2441 {
2303 name: "-webkit-background-clip", 2442 name: "-webkit-background-clip",
2304 use_handlers_for: "CSSPropertyBackgroundClip", 2443 use_handlers_for: "CSSPropertyBackgroundClip",
2305 }, 2444 },
2306 { 2445 {
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
2377 }, 2516 },
2378 { 2517 {
2379 name: "-webkit-box-orient", 2518 name: "-webkit-box-orient",
2380 }, 2519 },
2381 { 2520 {
2382 name: "-webkit-box-pack", 2521 name: "-webkit-box-pack",
2383 }, 2522 },
2384 { 2523 {
2385 name: "-webkit-box-reflect", 2524 name: "-webkit-box-reflect",
2386 converter: "ConvertBoxReflect", 2525 converter: "ConvertBoxReflect",
2526 field_template: "storage_only",
2527 type_name: "StyleReflection",
2528 field_group: "rare-non-inherited",
2529 default_value: "nullptr",
2530 wrapper_pointer_name: "RefPtr",
2531 include_paths: ["core/style/StyleReflection.h"],
2387 }, 2532 },
2388 { 2533 {
2389 name: "column-count", 2534 name: "column-count",
2390 api_class: true, 2535 api_class: true,
2391 api_methods: ["parseSingleValue"], 2536 api_methods: ["parseSingleValue"],
2392 custom_all: true, 2537 custom_all: true,
2393 interpolable: true, 2538 interpolable: true,
2394 type_name: "unsigned short", 2539 type_name: "unsigned short",
2395 }, 2540 },
2396 { 2541 {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
2459 }, 2604 },
2460 { 2605 {
2461 name: "-webkit-line-break", 2606 name: "-webkit-line-break",
2462 inherited: true, 2607 inherited: true,
2463 field_template: "keyword", 2608 field_template: "keyword",
2464 type_name: "LineBreak", 2609 type_name: "LineBreak",
2465 keywords: ["auto", "loose", "normal", "strict", "after-white-space"], 2610 keywords: ["auto", "loose", "normal", "strict", "after-white-space"],
2466 default_value: "auto", 2611 default_value: "auto",
2467 field_group: "rare-inherited", 2612 field_group: "rare-inherited",
2468 }, 2613 },
2614 // An Apple extension.
2469 { 2615 {
2470 name: "-webkit-line-clamp", 2616 name: "-webkit-line-clamp",
2471 api_class: true, 2617 api_class: true,
2472 api_methods: ["parseSingleValue"], 2618 api_methods: ["parseSingleValue"],
2473 type_name: "LineClampValue", 2619 type_name: "LineClampValue",
2620 field_template: "storage_only",
2621 field_group: "rare-non-inherited",
2622 default_value: "LineClampValue()",
2623 include_paths: ["core/style/LineClampValue.h"],
2474 }, 2624 },
2475 { 2625 {
2476 name: "-webkit-margin-after-collapse", 2626 name: "-webkit-margin-after-collapse",
2477 type_name: "EMarginCollapse", 2627 type_name: "EMarginCollapse",
2628 field_template: "storage_only",
2629 field_group: "rare-non-inherited",
2630 default_value: "kMarginCollapseCollapse",
2631 field_size: 2,
2478 }, 2632 },
2479 { 2633 {
2480 name: "-webkit-margin-before-collapse", 2634 name: "-webkit-margin-before-collapse",
2481 type_name: "EMarginCollapse", 2635 type_name: "EMarginCollapse",
2636 field_template: "storage_only",
2637 field_group: "rare-non-inherited",
2638 default_value: "kMarginCollapseCollapse",
2639 field_size: 2,
2482 }, 2640 },
2483 { 2641 {
2484 name: "-webkit-margin-bottom-collapse", 2642 name: "-webkit-margin-bottom-collapse",
2485 name_for_methods: "MarginAfterCollapse", 2643 name_for_methods: "MarginAfterCollapse",
2486 type_name: "EMarginCollapse", 2644 type_name: "EMarginCollapse",
2487 }, 2645 },
2488 { 2646 {
2489 name: "-webkit-margin-top-collapse", 2647 name: "-webkit-margin-top-collapse",
2490 name_for_methods: "MarginBeforeCollapse", 2648 name_for_methods: "MarginBeforeCollapse",
2491 type_name: "EMarginCollapse", 2649 type_name: "EMarginCollapse",
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
2705 }, 2863 },
2706 { 2864 {
2707 name: "-webkit-transform-origin-z", 2865 name: "-webkit-transform-origin-z",
2708 api_class: true, 2866 api_class: true,
2709 api_methods: ["parseSingleValue"], 2867 api_methods: ["parseSingleValue"],
2710 converter: "ConvertComputedLength<float>", 2868 converter: "ConvertComputedLength<float>",
2711 interpolable: true, 2869 interpolable: true,
2712 }, 2870 },
2713 { 2871 {
2714 name: "-webkit-user-drag", 2872 name: "-webkit-user-drag",
2873 field_template: "storage_only",
2874 type_name: "EUserDrag",
2875 field_group: "rare-non-inherited",
2876 default_value: "DRAG_AUTO",
2877 field_size: 2,
2715 }, 2878 },
2716 { 2879 {
2717 name: "-webkit-user-modify", 2880 name: "-webkit-user-modify",
2718 inherited: true, 2881 inherited: true,
2719 field_template: "keyword", 2882 field_template: "keyword",
2720 keywords: ["read-only", "read-write", "read-write-plaintext-only"], 2883 keywords: ["read-only", "read-write", "read-write-plaintext-only"],
2721 default_value: "read-only", 2884 default_value: "read-only",
2722 field_group: "rare-inherited", 2885 field_group: "rare-inherited",
2723 }, 2886 },
2724 { 2887 {
(...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after
3553 { 3716 {
3554 name: "-webkit-transition-timing-function", 3717 name: "-webkit-transition-timing-function",
3555 alias_for: "transition-timing-function", 3718 alias_for: "transition-timing-function",
3556 }, 3719 },
3557 { 3720 {
3558 name: "-webkit-user-select", 3721 name: "-webkit-user-select",
3559 alias_for: "user-select", 3722 alias_for: "user-select",
3560 }, 3723 },
3561 ], 3724 ],
3562 } 3725 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698