OLD | NEW |
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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 // - field_type_path: "path/to/Type" | 102 // - field_type_path: "path/to/Type" |
103 // For properties that have generated field storage in ComputedStyle, | 103 // For properties that have generated field storage in ComputedStyle, |
104 // this optional argument will override the field's generated type with | 104 // this optional argument will override the field's generated type with |
105 // an external one specified at the given path. The type must be defined | 105 // an external one specified at the given path. The type must be defined |
106 // in a header file at that path, and have the same name as the file. | 106 // in a header file at that path, and have the same name as the file. |
107 // Currently, only enum types are supported, and the enum's only values | 107 // Currently, only enum types are supported, and the enum's only values |
108 // must be CamelCase values of the keywords of the property. | 108 // must be CamelCase values of the keywords of the property. |
109 field_type_path: { | 109 field_type_path: { |
110 }, | 110 }, |
111 | 111 |
| 112 // Name of the pointer type that wraps this field (e.g. RefPtr). |
| 113 // Can only be set if the field template is storage_only. |
| 114 wrapper_pointer_name: { |
| 115 valid_type: "str", |
| 116 valid_values: ["RefPtr", "Persistent"], |
| 117 }, |
| 118 |
112 // - keywords: ["keyword1", "keyword2"] | 119 // - keywords: ["keyword1", "keyword2"] |
113 // This specifies all valid keyword values for the property. | 120 // This specifies all valid keyword values for the property. |
114 // TODO(sashab): Once all properties are represented here, delete | 121 // TODO(sashab): Once all properties are represented here, delete |
115 // CSSValueKeywords.in and use this list instead. | 122 // CSSValueKeywords.in and use this list instead. |
116 keywords: { | 123 keywords: { |
117 default: [], | 124 default: [], |
118 }, | 125 }, |
119 | 126 |
120 // - default_value: "keyword-value" | 127 // - default_value: "keyword-value" |
121 // This specifies the default value for this field. | 128 // This specifies the default value for this field. |
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
506 custom_value: true, | 513 custom_value: true, |
507 font: true, | 514 font: true, |
508 inherited: true, | 515 inherited: true, |
509 priority: "High", | 516 priority: "High", |
510 }, | 517 }, |
511 { | 518 { |
512 name: "text-orientation", | 519 name: "text-orientation", |
513 custom_value: true, | 520 custom_value: true, |
514 inherited: true, | 521 inherited: true, |
515 priority: "High", | 522 priority: "High", |
| 523 field_template: "storage_only", |
516 type_name: "TextOrientation", | 524 type_name: "TextOrientation", |
| 525 default_value: "kTextOrientationMixed", |
| 526 field_size: 2, |
| 527 field_group: "rare-inherited", |
517 }, | 528 }, |
518 { | 529 { |
519 name: "-webkit-text-orientation", | 530 name: "-webkit-text-orientation", |
520 custom_value: true, | 531 custom_value: true, |
521 inherited: true, | 532 inherited: true, |
522 priority: "High", | 533 priority: "High", |
523 type_name: "TextOrientation", | 534 type_name: "TextOrientation", |
524 }, | 535 }, |
525 { | 536 { |
526 name: "writing-mode", | 537 name: "writing-mode", |
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
931 field_template: "keyword", | 942 field_template: "keyword", |
932 keywords: ["top", "bottom"], | 943 keywords: ["top", "bottom"], |
933 }, | 944 }, |
934 { | 945 { |
935 name: "caret-color", | 946 name: "caret-color", |
936 api_class: true, | 947 api_class: true, |
937 api_methods: ["parseSingleValue"], | 948 api_methods: ["parseSingleValue"], |
938 custom_all: true, | 949 custom_all: true, |
939 inherited: true, | 950 inherited: true, |
940 interpolable: true, | 951 interpolable: true, |
| 952 field_template: "storage_only", |
| 953 field_type_path: "platform/graphics/Color", |
| 954 default_value: "Color()", |
| 955 field_group: "rare-inherited", |
941 }, | 956 }, |
942 { | 957 { |
943 name: "clear", | 958 name: "clear", |
944 default_value: "none", | 959 default_value: "none", |
945 field_template: "keyword", | 960 field_template: "keyword", |
946 keywords: ["none", "left", "right", "both"], | 961 keywords: ["none", "left", "right", "both"], |
947 }, | 962 }, |
948 { | 963 { |
949 name: "clip", | 964 name: "clip", |
950 api_class: true, | 965 api_class: true, |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1238 typedom_types: ["Length"], | 1253 typedom_types: ["Length"], |
1239 field_template: "external", | 1254 field_template: "external", |
1240 field_type_path: "platform/Length", | 1255 field_type_path: "platform/Length", |
1241 field_group: "box", | 1256 field_group: "box", |
1242 default_value: "Length()", | 1257 default_value: "Length()", |
1243 }, | 1258 }, |
1244 { | 1259 { |
1245 name: "hyphens", | 1260 name: "hyphens", |
1246 inherited: true, | 1261 inherited: true, |
1247 runtime_flag: "CSSHyphens", | 1262 runtime_flag: "CSSHyphens", |
| 1263 field_template: "storage_only", |
1248 type_name: "Hyphens", | 1264 type_name: "Hyphens", |
| 1265 default_value: "Hyphens::kManual", |
| 1266 field_size: 2, |
| 1267 field_group: "rare-inherited", |
1249 }, | 1268 }, |
1250 { | 1269 { |
1251 name: "image-rendering", | 1270 name: "image-rendering", |
1252 inherited: true, | 1271 inherited: true, |
| 1272 field_template: "storage_only", |
| 1273 type_name: "EImageRendering", |
| 1274 default_value: "kImageRenderingAuto", |
| 1275 field_size: 3, |
| 1276 field_group: "rare-inherited", |
1253 }, | 1277 }, |
1254 { | 1278 { |
1255 name: "image-orientation", | 1279 name: "image-orientation", |
1256 api_class: true, | 1280 api_class: true, |
1257 api_methods: ["parseSingleValue"], | 1281 api_methods: ["parseSingleValue"], |
1258 converter: "ConvertImageOrientation", | 1282 converter: "ConvertImageOrientation", |
1259 inherited: true, | 1283 inherited: true, |
1260 name_for_methods: "RespectImageOrientation", | 1284 name_for_methods: "RespectImageOrientation", |
1261 runtime_flag: "ImageOrientation", | 1285 runtime_flag: "ImageOrientation", |
1262 }, | 1286 }, |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1328 default_value: "Length(-100.0, kPercent)", | 1352 default_value: "Length(-100.0, kPercent)", |
1329 field_group: "inherited", | 1353 field_group: "inherited", |
1330 }, | 1354 }, |
1331 { | 1355 { |
1332 name: "line-height-step", | 1356 name: "line-height-step", |
1333 api_class: true, | 1357 api_class: true, |
1334 api_methods: ["parseSingleValue"], | 1358 api_methods: ["parseSingleValue"], |
1335 converter: "ConvertComputedLength<uint8_t>", | 1359 converter: "ConvertComputedLength<uint8_t>", |
1336 inherited: true, | 1360 inherited: true, |
1337 runtime_flag: "CSSSnapSize", | 1361 runtime_flag: "CSSSnapSize", |
| 1362 field_template: "storage_only", |
| 1363 type_name: "uint8_t", |
| 1364 default_value: "0", |
| 1365 field_group: "rare-inherited", |
1338 }, | 1366 }, |
1339 { | 1367 { |
1340 name: "list-style-image", | 1368 name: "list-style-image", |
1341 api_class: "CSSPropertyAPIImage", | 1369 api_class: "CSSPropertyAPIImage", |
1342 api_methods: ["parseSingleValue"], | 1370 api_methods: ["parseSingleValue"], |
1343 custom_value: true, | 1371 custom_value: true, |
1344 inherited: true, | 1372 inherited: true, |
1345 interpolable: true, | 1373 interpolable: true, |
1346 typedom_types: ["Image"], | 1374 typedom_types: ["Image"], |
| 1375 field_template: "storage_only", |
| 1376 type_name: "StyleImage", |
| 1377 wrapper_pointer_name: "Persistent", |
| 1378 default_value: "nullptr", |
| 1379 field_group: "rare-inherited", |
1347 }, | 1380 }, |
1348 { | 1381 { |
1349 name: "list-style-position", | 1382 name: "list-style-position", |
1350 independent: true, | 1383 independent: true, |
1351 inherited: true, | 1384 inherited: true, |
1352 default_value: "outside", | 1385 default_value: "outside", |
1353 field_template: "keyword", | 1386 field_template: "keyword", |
1354 keywords: ["outside", "inside"], | 1387 keywords: ["outside", "inside"], |
1355 }, | 1388 }, |
1356 { | 1389 { |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1550 interpolable: true, | 1583 interpolable: true, |
1551 type_name: "int", | 1584 type_name: "int", |
1552 }, | 1585 }, |
1553 { | 1586 { |
1554 name: "orphans", | 1587 name: "orphans", |
1555 api_class: "CSSPropertyAPIFragmentation", | 1588 api_class: "CSSPropertyAPIFragmentation", |
1556 api_methods: ["parseSingleValue"], | 1589 api_methods: ["parseSingleValue"], |
1557 inherited: true, | 1590 inherited: true, |
1558 interpolable: true, | 1591 interpolable: true, |
1559 type_name: "short", | 1592 type_name: "short", |
| 1593 field_template: "storage_only", |
| 1594 default_value: "2", |
| 1595 field_group: "rare-inherited", |
1560 }, | 1596 }, |
1561 { | 1597 { |
1562 name: "outline-color", | 1598 name: "outline-color", |
1563 api_class: true, | 1599 api_class: true, |
1564 api_methods: ["parseSingleValue"], | 1600 api_methods: ["parseSingleValue"], |
1565 custom_all: true, | 1601 custom_all: true, |
1566 interpolable: true, | 1602 interpolable: true, |
1567 }, | 1603 }, |
1568 { | 1604 { |
1569 name: "outline-offset", | 1605 name: "outline-offset", |
(...skipping 19 matching lines...) Expand all Loading... |
1589 inherited: false, | 1625 inherited: false, |
1590 default_value: "auto", | 1626 default_value: "auto", |
1591 field_template: "keyword", | 1627 field_template: "keyword", |
1592 keywords: [ | 1628 keywords: [ |
1593 "visible", "none", "auto", | 1629 "visible", "none", "auto", |
1594 ], | 1630 ], |
1595 }, | 1631 }, |
1596 { | 1632 { |
1597 name: "overflow-wrap", | 1633 name: "overflow-wrap", |
1598 inherited: true, | 1634 inherited: true, |
| 1635 field_template: "storage_only", |
| 1636 type_name: "EOverflowWrap", |
| 1637 default_value: "EOverflowWrap::kNormal", |
| 1638 field_size: 1, |
| 1639 field_group: "rare-inherited", |
1599 }, | 1640 }, |
1600 { | 1641 { |
1601 name: "overflow-x", | 1642 name: "overflow-x", |
1602 default_value: "visible", | 1643 default_value: "visible", |
1603 field_template: "keyword", | 1644 field_template: "keyword", |
1604 keywords: [ | 1645 keywords: [ |
1605 "visible", "hidden", "scroll", "auto", "overlay", "-webkit-paged-x", "-w
ebkit-paged-y", | 1646 "visible", "hidden", "scroll", "auto", "overlay", "-webkit-paged-x", "-w
ebkit-paged-y", |
1606 ], | 1647 ], |
1607 type_name: "EOverflow", | 1648 type_name: "EOverflow", |
1608 }, | 1649 }, |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1697 keywords: [ | 1738 keywords: [ |
1698 "static", "relative", "absolute", "fixed", "sticky", | 1739 "static", "relative", "absolute", "fixed", "sticky", |
1699 ], | 1740 ], |
1700 }, | 1741 }, |
1701 { | 1742 { |
1702 name: "quotes", | 1743 name: "quotes", |
1703 api_class: true, | 1744 api_class: true, |
1704 api_methods: ["parseSingleValue"], | 1745 api_methods: ["parseSingleValue"], |
1705 converter: "ConvertQuotes", | 1746 converter: "ConvertQuotes", |
1706 inherited: true, | 1747 inherited: true, |
| 1748 field_template: "storage_only", |
| 1749 field_type_path: "core/style/QuotesData", |
| 1750 default_value: "nullptr", |
| 1751 wrapper_pointer_name: "RefPtr", |
| 1752 field_group: "rare-inherited", |
1707 }, | 1753 }, |
1708 { | 1754 { |
1709 name: "resize", | 1755 name: "resize", |
1710 custom_value: true, | 1756 custom_value: true, |
1711 }, | 1757 }, |
1712 { | 1758 { |
1713 name: "right", | 1759 name: "right", |
1714 api_class: "CSSPropertyAPIMargin", | 1760 api_class: "CSSPropertyAPIMargin", |
1715 api_methods: ["parseSingleValue"], | 1761 api_methods: ["parseSingleValue"], |
1716 converter: "ConvertLengthOrAuto", | 1762 converter: "ConvertLengthOrAuto", |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1807 }, | 1853 }, |
1808 { | 1854 { |
1809 name: "size", | 1855 name: "size", |
1810 api_class: true, | 1856 api_class: true, |
1811 api_methods: ["parseSingleValue"], | 1857 api_methods: ["parseSingleValue"], |
1812 custom_all: true, | 1858 custom_all: true, |
1813 }, | 1859 }, |
1814 { | 1860 { |
1815 name: "speak", | 1861 name: "speak", |
1816 inherited: true, | 1862 inherited: true, |
| 1863 field_template: "storage_only", |
| 1864 type_name: "ESpeak", |
| 1865 default_value: "ESpeak::kNormal", |
| 1866 field_size: 3, |
| 1867 field_group: "rare-inherited", |
1817 }, | 1868 }, |
1818 { | 1869 { |
1819 name: "stop-color", | 1870 name: "stop-color", |
1820 api_class: "CSSPropertyAPIColor", | 1871 api_class: "CSSPropertyAPIColor", |
1821 api_methods: ["parseSingleValue"], | 1872 api_methods: ["parseSingleValue"], |
1822 converter: "ConvertColor", | 1873 converter: "ConvertColor", |
1823 interpolable: true, | 1874 interpolable: true, |
1824 svg: true, | 1875 svg: true, |
1825 }, | 1876 }, |
1826 { | 1877 { |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1908 keywords: [ | 1959 keywords: [ |
1909 "auto", "fixed" | 1960 "auto", "fixed" |
1910 ] | 1961 ] |
1911 }, | 1962 }, |
1912 { | 1963 { |
1913 name: "tab-size", | 1964 name: "tab-size", |
1914 api_class: true, | 1965 api_class: true, |
1915 api_methods: ["parseSingleValue"], | 1966 api_methods: ["parseSingleValue"], |
1916 converter: "ConvertLengthOrTabSpaces", | 1967 converter: "ConvertLengthOrTabSpaces", |
1917 inherited: true, | 1968 inherited: true, |
1918 type_name: "TabSize", | 1969 getter: "GetTabSize", |
| 1970 field_type_path: "platform/text/TabSize", |
| 1971 field_template: "storage_only", |
| 1972 default_value: "TabSize(8)", |
| 1973 field_group: "rare-inherited", |
1919 }, | 1974 }, |
1920 { | 1975 { |
1921 name: "text-align", | 1976 name: "text-align", |
1922 custom_value: true, | 1977 custom_value: true, |
1923 independent: false, | 1978 independent: false, |
1924 inherited: true, | 1979 inherited: true, |
1925 default_value: "start", | 1980 default_value: "start", |
1926 field_template: "keyword", | 1981 field_template: "keyword", |
1927 getter: "GetTextAlign", | 1982 getter: "GetTextAlign", |
1928 keywords: [ | 1983 keywords: [ |
1929 "left", "right", "center", "justify", "webkitLeft", "webkitRight", "webk
itCenter", "start", "end", | 1984 "left", "right", "center", "justify", "webkitLeft", "webkitRight", "webk
itCenter", "start", "end", |
1930 ], | 1985 ], |
1931 }, | 1986 }, |
1932 { | 1987 { |
1933 name: "text-align-last", | 1988 name: "text-align-last", |
1934 inherited: true, | 1989 inherited: true, |
| 1990 field_template: "storage_only", |
1935 type_name: "TextAlignLast", | 1991 type_name: "TextAlignLast", |
| 1992 default_value: "kTextAlignLastAuto", |
| 1993 field_size: 3, |
| 1994 field_group: "rare-inherited", |
1936 }, | 1995 }, |
1937 { | 1996 { |
1938 name: "text-anchor", | 1997 name: "text-anchor", |
1939 inherited: true, | 1998 inherited: true, |
1940 svg: true, | 1999 svg: true, |
1941 }, | 2000 }, |
1942 { | 2001 { |
1943 name: "text-combine-upright", | 2002 name: "text-combine-upright", |
1944 inherited: true, | 2003 inherited: true, |
1945 name_for_methods: "TextCombine", | 2004 name_for_methods: "TextCombine", |
| 2005 field_template: "storage_only", |
1946 type_name: "TextCombine", | 2006 type_name: "TextCombine", |
| 2007 default_value: "kTextCombineNone", |
| 2008 field_size: 1, |
| 2009 field_group: "rare-inherited", |
1947 }, | 2010 }, |
1948 // FIXME: We shouldn't switch between shorthand/not shorthand based on a run
time flag | 2011 // FIXME: We shouldn't switch between shorthand/not shorthand based on a run
time flag |
1949 { | 2012 { |
1950 name: "text-decoration", | 2013 name: "text-decoration", |
1951 api_class: true, | 2014 api_class: true, |
1952 longhands: "text-decoration-line;text-decoration-style;text-decoration-col
or", | 2015 longhands: "text-decoration-line;text-decoration-style;text-decoration-col
or", |
1953 use_handlers_for: "CSSPropertyTextDecorationLine", | 2016 use_handlers_for: "CSSPropertyTextDecorationLine", |
1954 }, | 2017 }, |
1955 { | 2018 { |
1956 name: "text-decoration-color", | 2019 name: "text-decoration-color", |
(...skipping 11 matching lines...) Expand all Loading... |
1968 runtime_flag: "CSS3TextDecorations", | 2031 runtime_flag: "CSS3TextDecorations", |
1969 type_name: "TextDecoration", | 2032 type_name: "TextDecoration", |
1970 }, | 2033 }, |
1971 { | 2034 { |
1972 name: "text-decoration-skip", | 2035 name: "text-decoration-skip", |
1973 api_class: true, | 2036 api_class: true, |
1974 api_methods: ["parseSingleValue"], | 2037 api_methods: ["parseSingleValue"], |
1975 converter: "ConvertFlags<TextDecorationSkip>", | 2038 converter: "ConvertFlags<TextDecorationSkip>", |
1976 inherited: true, | 2039 inherited: true, |
1977 runtime_flag: "CSS3TextDecorations", | 2040 runtime_flag: "CSS3TextDecorations", |
| 2041 field_template: "storage_only", |
1978 type_name: "TextDecorationSkip", | 2042 type_name: "TextDecorationSkip", |
| 2043 default_value: "kTextDecorationSkipObjects", |
| 2044 field_size: 3, |
| 2045 field_group: "rare-inherited", |
1979 }, | 2046 }, |
1980 { | 2047 { |
1981 name: "text-decoration-style", | 2048 name: "text-decoration-style", |
1982 runtime_flag: "CSS3TextDecorations", | 2049 runtime_flag: "CSS3TextDecorations", |
1983 type_name: "TextDecorationStyle", | 2050 type_name: "TextDecorationStyle", |
1984 }, | 2051 }, |
1985 { | 2052 { |
1986 name: "text-indent", | 2053 name: "text-indent", |
1987 api_class: true, | 2054 api_class: true, |
1988 api_methods: ["parseSingleValue"], | 2055 api_methods: ["parseSingleValue"], |
1989 custom_all: true, | 2056 custom_all: true, |
1990 inherited: true, | 2057 inherited: true, |
1991 interpolable: true, | 2058 interpolable: true, |
| 2059 field_template: "storage_only", |
| 2060 field_type_path: "platform/Length", |
| 2061 default_value: "Length(kFixed)", |
| 2062 field_group: "rare-inherited", |
1992 }, | 2063 }, |
1993 { | 2064 { |
1994 name: "text-justify", | 2065 name: "text-justify", |
1995 inherited: true, | 2066 inherited: true, |
1996 runtime_flag: "CSS3Text", | 2067 runtime_flag: "CSS3Text", |
| 2068 getter: "GetTextJustify", |
| 2069 field_template: "storage_only", |
| 2070 field_type_path: "platform/text/TextJustify", |
1997 type_name: "TextJustify", | 2071 type_name: "TextJustify", |
| 2072 default_value: "kTextJustifyAuto", |
| 2073 field_size: 2, |
| 2074 field_group: "rare-inherited", |
1998 }, | 2075 }, |
1999 { | 2076 { |
2000 name: "text-overflow", | 2077 name: "text-overflow", |
2001 type_name: "TextOverflow", | 2078 type_name: "TextOverflow", |
2002 }, | 2079 }, |
2003 { | 2080 { |
2004 name: "text-shadow", | 2081 name: "text-shadow", |
2005 converter: "ConvertShadowList", | 2082 converter: "ConvertShadowList", |
2006 inherited: true, | 2083 inherited: true, |
2007 interpolable: true, | 2084 interpolable: true, |
| 2085 field_template: "storage_only", |
| 2086 field_type_path: "core/style/ShadowList", |
| 2087 wrapper_pointer_name: "RefPtr", |
| 2088 default_value: "nullptr", |
| 2089 field_group: "rare-inherited", |
2008 }, | 2090 }, |
2009 { | 2091 { |
2010 name: "text-size-adjust", | 2092 name: "text-size-adjust", |
2011 api_class: true, | 2093 api_class: true, |
2012 api_methods: ["parseSingleValue"], | 2094 api_methods: ["parseSingleValue"], |
2013 converter: "ConvertTextSizeAdjust", | 2095 converter: "ConvertTextSizeAdjust", |
2014 inherited: true, | 2096 inherited: true, |
2015 type_name: "TextSizeAdjust", | 2097 getter: "GetTextSizeAdjust", |
| 2098 field_template: "storage_only", |
| 2099 field_type_path: "core/style/TextSizeAdjust", |
| 2100 default_value: "TextSizeAdjust::AdjustAuto()", |
| 2101 field_group: "rare-inherited", |
2016 }, | 2102 }, |
2017 { | 2103 { |
2018 name: "text-transform", | 2104 name: "text-transform", |
2019 independent: true, | 2105 independent: true, |
2020 inherited: true, | 2106 inherited: true, |
2021 default_value: "none", | 2107 default_value: "none", |
2022 field_template: "keyword", | 2108 field_template: "keyword", |
2023 keywords: ["capitalize", "uppercase", "lowercase", "none"], | 2109 keywords: ["capitalize", "uppercase", "lowercase", "none"], |
2024 }, | 2110 }, |
2025 { | 2111 { |
2026 name: "text-underline-position", | 2112 name: "text-underline-position", |
2027 api_class: true, | 2113 api_class: true, |
2028 api_methods: ["parseSingleValue"], | 2114 api_methods: ["parseSingleValue"], |
2029 inherited: true, | 2115 inherited: true, |
2030 runtime_flag: "CSS3TextDecorations", | 2116 runtime_flag: "CSS3TextDecorations", |
| 2117 field_template: "storage_only", |
2031 type_name: "TextUnderlinePosition", | 2118 type_name: "TextUnderlinePosition", |
| 2119 default_value: "kTextUnderlinePositionAuto", |
| 2120 field_size: 1, |
| 2121 field_group: "rare-inherited", |
2032 }, | 2122 }, |
2033 { | 2123 { |
2034 name: "top", | 2124 name: "top", |
2035 api_class: "CSSPropertyAPIMargin", | 2125 api_class: "CSSPropertyAPIMargin", |
2036 api_methods: ["parseSingleValue"], | 2126 api_methods: ["parseSingleValue"], |
2037 converter: "ConvertLengthOrAuto", | 2127 converter: "ConvertLengthOrAuto", |
2038 interpolable: true, | 2128 interpolable: true, |
2039 keywords: ["auto"], | 2129 keywords: ["auto"], |
2040 supports_percentage: true, | 2130 supports_percentage: true, |
2041 typedom_types: ["Length"], | 2131 typedom_types: ["Length"], |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2286 converter: "ConvertComputedLength<float>", | 2376 converter: "ConvertComputedLength<float>", |
2287 custom_all: true, | 2377 custom_all: true, |
2288 interpolable: true, | 2378 interpolable: true, |
2289 }, | 2379 }, |
2290 { | 2380 { |
2291 name: "-webkit-highlight", | 2381 name: "-webkit-highlight", |
2292 api_class: true, | 2382 api_class: true, |
2293 api_methods: ["parseSingleValue"], | 2383 api_methods: ["parseSingleValue"], |
2294 converter: "ConvertString<CSSValueNone>", | 2384 converter: "ConvertString<CSSValueNone>", |
2295 inherited: true, | 2385 inherited: true, |
| 2386 field_template: "storage_only", |
| 2387 field_type_path: "platform/wtf/text/AtomicString", |
| 2388 default_value: "g_null_atom", |
| 2389 field_group: "rare-inherited", |
2296 }, | 2390 }, |
2297 { | 2391 { |
2298 name: "-webkit-hyphenate-character", | 2392 name: "-webkit-hyphenate-character", |
2299 converter: "ConvertString<CSSValueAuto>", | 2393 converter: "ConvertString<CSSValueAuto>", |
2300 inherited: true, | 2394 inherited: true, |
2301 name_for_methods: "HyphenationString", | 2395 name_for_methods: "HyphenationString", |
| 2396 field_template: "storage_only", |
| 2397 field_type_path: "platform/wtf/text/AtomicString", |
| 2398 default_value: "AtomicString()", |
| 2399 field_group: "rare-inherited", |
2302 }, | 2400 }, |
2303 { | 2401 { |
2304 name: "-webkit-line-break", | 2402 name: "-webkit-line-break", |
2305 inherited: true, | 2403 inherited: true, |
| 2404 field_template: "storage_only", |
2306 type_name: "LineBreak", | 2405 type_name: "LineBreak", |
| 2406 default_value: "LineBreak::kAuto", |
| 2407 field_size: 3, |
| 2408 field_group: "rare-inherited", |
2307 }, | 2409 }, |
2308 { | 2410 { |
2309 name: "-webkit-line-clamp", | 2411 name: "-webkit-line-clamp", |
2310 api_class: true, | 2412 api_class: true, |
2311 api_methods: ["parseSingleValue"], | 2413 api_methods: ["parseSingleValue"], |
2312 type_name: "LineClampValue", | 2414 type_name: "LineClampValue", |
2313 }, | 2415 }, |
2314 { | 2416 { |
2315 name: "-webkit-margin-after-collapse", | 2417 name: "-webkit-margin-after-collapse", |
2316 type_name: "EMarginCollapse", | 2418 type_name: "EMarginCollapse", |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2428 initial: "InitialRtlOrdering", | 2530 initial: "InitialRtlOrdering", |
2429 default_value: "logical", | 2531 default_value: "logical", |
2430 field_template: "keyword", | 2532 field_template: "keyword", |
2431 keywords: ["logical", "visual"], | 2533 keywords: ["logical", "visual"], |
2432 setter: "SetRtlOrdering", | 2534 setter: "SetRtlOrdering", |
2433 type_name: "EOrder", | 2535 type_name: "EOrder", |
2434 }, | 2536 }, |
2435 { | 2537 { |
2436 name: "-webkit-ruby-position", | 2538 name: "-webkit-ruby-position", |
2437 inherited: true, | 2539 inherited: true, |
| 2540 field_template: "storage_only", |
2438 type_name: "RubyPosition", | 2541 type_name: "RubyPosition", |
| 2542 default_value: "kRubyPositionBefore", |
| 2543 field_size: 1, |
| 2544 field_group: "rare-inherited", |
2439 }, | 2545 }, |
2440 { | 2546 { |
2441 name: "-webkit-tap-highlight-color", | 2547 name: "-webkit-tap-highlight-color", |
2442 api_class: "CSSPropertyAPIColor", | 2548 api_class: "CSSPropertyAPIColor", |
2443 api_methods: ["parseSingleValue"], | 2549 api_methods: ["parseSingleValue"], |
2444 converter: "ConvertColor", | 2550 converter: "ConvertColor", |
2445 inherited: true, | 2551 inherited: true, |
| 2552 field_template: "storage_only", |
| 2553 field_type_path: "platform/graphics/Color", |
| 2554 default_value: "LayoutTheme::TapHighlightColor()", |
| 2555 field_group: "rare-inherited", |
2446 }, | 2556 }, |
2447 { | 2557 { |
2448 name: "-webkit-text-combine", | 2558 name: "-webkit-text-combine", |
2449 inherited: true, | 2559 inherited: true, |
2450 name_for_methods: "TextCombine", | 2560 name_for_methods: "TextCombine", |
2451 type_name: "TextCombine", | 2561 type_name: "TextCombine", |
2452 }, | 2562 }, |
2453 { | 2563 { |
2454 name: "-webkit-text-emphasis-color", | 2564 name: "-webkit-text-emphasis-color", |
2455 api_class: "CSSPropertyAPIColor", | 2565 api_class: "CSSPropertyAPIColor", |
2456 api_methods: ["parseSingleValue"], | 2566 api_methods: ["parseSingleValue"], |
2457 custom_all: true, | 2567 custom_all: true, |
2458 inherited: true, | 2568 inherited: true, |
| 2569 field_template: "storage_only", |
| 2570 field_type_path: "platform/graphics/Color", |
| 2571 default_value: "Color()", |
| 2572 field_group: "rare-inherited", |
2459 }, | 2573 }, |
2460 { | 2574 { |
2461 name: "-webkit-text-emphasis-position", | 2575 name: "-webkit-text-emphasis-position", |
2462 inherited: true, | 2576 inherited: true, |
2463 type_name: "TextEmphasisPosition", | 2577 type_name: "TextEmphasisPosition", |
2464 }, | 2578 }, |
2465 { | 2579 { |
2466 name: "-webkit-text-emphasis-style", | 2580 name: "-webkit-text-emphasis-style", |
2467 api_class: true, | 2581 api_class: true, |
2468 api_methods: ["parseSingleValue"], | 2582 api_methods: ["parseSingleValue"], |
2469 custom_all: true, | 2583 custom_all: true, |
2470 inherited: true, | 2584 inherited: true, |
2471 }, | 2585 }, |
2472 { | 2586 { |
2473 name: "-webkit-text-fill-color", | 2587 name: "-webkit-text-fill-color", |
2474 api_class: "CSSPropertyAPIColor", | 2588 api_class: "CSSPropertyAPIColor", |
2475 api_methods: ["parseSingleValue"], | 2589 api_methods: ["parseSingleValue"], |
2476 custom_all: true, | 2590 custom_all: true, |
2477 inherited: true, | 2591 inherited: true, |
| 2592 field_template: "storage_only", |
| 2593 field_type_path: "platform/graphics/Color", |
| 2594 default_value: "Color()", |
| 2595 field_group: "rare-inherited", |
2478 }, | 2596 }, |
2479 { | 2597 { |
2480 name: "-webkit-text-security", | 2598 name: "-webkit-text-security", |
2481 inherited: true, | 2599 inherited: true, |
| 2600 field_template: "storage_only", |
| 2601 type_name: "ETextSecurity", |
| 2602 default_value: "ETextSecurity::kNone", |
| 2603 field_size: 2, |
| 2604 field_group: "rare-inherited", |
2482 }, | 2605 }, |
2483 { | 2606 { |
2484 name: "-webkit-text-stroke-color", | 2607 name: "-webkit-text-stroke-color", |
2485 api_class: "CSSPropertyAPIColor", | 2608 api_class: "CSSPropertyAPIColor", |
2486 api_methods: ["parseSingleValue"], | 2609 api_methods: ["parseSingleValue"], |
2487 custom_all: true, | 2610 custom_all: true, |
2488 inherited: true, | 2611 inherited: true, |
2489 interpolable: true, | 2612 interpolable: true, |
| 2613 field_template: "storage_only", |
| 2614 field_type_path: "platform/graphics/Color", |
| 2615 default_value: "Color()", |
| 2616 field_group: "rare-inherited", |
2490 }, | 2617 }, |
2491 { | 2618 { |
2492 name: "-webkit-text-stroke-width", | 2619 name: "-webkit-text-stroke-width", |
2493 api_class: true, | 2620 api_class: true, |
2494 api_methods: ["parseSingleValue"], | 2621 api_methods: ["parseSingleValue"], |
2495 converter: "ConvertTextStrokeWidth", | 2622 converter: "ConvertTextStrokeWidth", |
2496 inherited: true, | 2623 inherited: true, |
| 2624 field_template: "storage_only", |
| 2625 type_name: "float", |
| 2626 default_value: "0", |
| 2627 field_group: "rare-inherited", |
2497 }, | 2628 }, |
2498 { | 2629 { |
2499 name: "-webkit-transform-origin-x", | 2630 name: "-webkit-transform-origin-x", |
2500 api_class: "CSSPropertyAPIWebkitOriginX", | 2631 api_class: "CSSPropertyAPIWebkitOriginX", |
2501 converter: "ConvertLength", | 2632 converter: "ConvertLength", |
2502 interpolable: true, | 2633 interpolable: true, |
2503 }, | 2634 }, |
2504 { | 2635 { |
2505 name: "-webkit-transform-origin-y", | 2636 name: "-webkit-transform-origin-y", |
2506 api_class: "CSSPropertyAPIWebkitOriginY", | 2637 api_class: "CSSPropertyAPIWebkitOriginY", |
2507 converter: "ConvertLength", | 2638 converter: "ConvertLength", |
2508 interpolable: true, | 2639 interpolable: true, |
2509 }, | 2640 }, |
2510 { | 2641 { |
2511 name: "-webkit-transform-origin-z", | 2642 name: "-webkit-transform-origin-z", |
2512 api_class: true, | 2643 api_class: true, |
2513 api_methods: ["parseSingleValue"], | 2644 api_methods: ["parseSingleValue"], |
2514 converter: "ConvertComputedLength<float>", | 2645 converter: "ConvertComputedLength<float>", |
2515 interpolable: true, | 2646 interpolable: true, |
2516 }, | 2647 }, |
2517 "-webkit-user-drag", | 2648 "-webkit-user-drag", |
2518 { | 2649 { |
2519 name: "-webkit-user-modify", | 2650 name: "-webkit-user-modify", |
2520 inherited: true, | 2651 inherited: true, |
| 2652 field_template: "storage_only", |
| 2653 type_name: "EUserModify", |
| 2654 default_value: "EUserModify::kReadOnly", |
| 2655 field_size: 2, |
| 2656 field_group: "rare-inherited", |
2521 }, | 2657 }, |
2522 { | 2658 { |
2523 name: "user-select", | 2659 name: "user-select", |
2524 inherited: true, | 2660 inherited: true, |
| 2661 field_template: "storage_only", |
| 2662 type_name: "EUserSelect", |
| 2663 default_value: "EUserSelect::kText", |
| 2664 field_size: 2, |
| 2665 field_group: "rare-inherited", |
2525 }, | 2666 }, |
2526 { | 2667 { |
2527 name: "white-space", | 2668 name: "white-space", |
2528 independent: true, | 2669 independent: true, |
2529 inherited: true, | 2670 inherited: true, |
2530 default_value: "normal", | 2671 default_value: "normal", |
2531 field_template: "keyword", | 2672 field_template: "keyword", |
2532 keywords: ["normal", "pre", "pre-wrap", "pre-line", "nowrap", "-webkit-now
rap"], | 2673 keywords: ["normal", "pre", "pre-wrap", "pre-line", "nowrap", "-webkit-now
rap"], |
2533 }, | 2674 }, |
2534 { | 2675 { |
2535 name: "widows", | 2676 name: "widows", |
2536 api_class: "CSSPropertyAPIFragmentation", | 2677 api_class: "CSSPropertyAPIFragmentation", |
2537 api_methods: ["parseSingleValue"], | 2678 api_methods: ["parseSingleValue"], |
2538 inherited: true, | 2679 inherited: true, |
2539 interpolable: true, | 2680 interpolable: true, |
| 2681 field_template: "storage_only", |
2540 type_name: "short", | 2682 type_name: "short", |
| 2683 default_value: "2", |
| 2684 field_group: "rare-inherited", |
2541 }, | 2685 }, |
2542 { | 2686 { |
2543 name: "width", | 2687 name: "width", |
2544 api_class: "CSSPropertyAPIWidthOrHeight", | 2688 api_class: "CSSPropertyAPIWidthOrHeight", |
2545 converter: "ConvertLengthSizing", | 2689 converter: "ConvertLengthSizing", |
2546 is_descriptor: true, | 2690 is_descriptor: true, |
2547 interpolable: true, | 2691 interpolable: true, |
2548 keywords: ["auto", "fit-content", "min-content", "max-content"], | 2692 keywords: ["auto", "fit-content", "min-content", "max-content"], |
2549 supports_percentage: true, | 2693 supports_percentage: true, |
2550 typedom_types: ["Length"], | 2694 typedom_types: ["Length"], |
2551 field_template: "external", | 2695 field_template: "external", |
2552 field_type_path: "platform/Length", | 2696 field_type_path: "platform/Length", |
2553 field_group: "box", | 2697 field_group: "box", |
2554 default_value: "Length()" | 2698 default_value: "Length()" |
2555 }, | 2699 }, |
2556 { | 2700 { |
2557 name: "will-change", | 2701 name: "will-change", |
2558 api_class: true, | 2702 api_class: true, |
2559 api_methods: ["parseSingleValue"], | 2703 api_methods: ["parseSingleValue"], |
2560 custom_all: true, | 2704 custom_all: true, |
2561 }, | 2705 }, |
2562 { | 2706 { |
2563 name: "word-break", | 2707 name: "word-break", |
2564 inherited: true, | 2708 inherited: true, |
| 2709 field_template: "storage_only", |
| 2710 type_name: "EWordBreak", |
| 2711 default_value: "EWordBreak::kNormal", |
| 2712 field_size: 2, |
| 2713 field_group: "rare-inherited", |
2565 }, | 2714 }, |
2566 { | 2715 { |
2567 name: "word-spacing", | 2716 name: "word-spacing", |
2568 api_class: "CSSPropertyAPILetterAndWordSpacing", | 2717 api_class: "CSSPropertyAPILetterAndWordSpacing", |
2569 api_methods: ["parseSingleValue"], | 2718 api_methods: ["parseSingleValue"], |
2570 converter: "ConvertSpacing", | 2719 converter: "ConvertSpacing", |
2571 inherited: true, | 2720 inherited: true, |
2572 initial: "InitialLetterWordSpacing", | 2721 initial: "InitialLetterWordSpacing", |
2573 interpolable: true, | 2722 interpolable: true, |
2574 }, | 2723 }, |
(...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3339 { | 3488 { |
3340 name: "-webkit-transition-timing-function", | 3489 name: "-webkit-transition-timing-function", |
3341 alias_for: "transition-timing-function", | 3490 alias_for: "transition-timing-function", |
3342 }, | 3491 }, |
3343 { | 3492 { |
3344 name: "-webkit-user-select", | 3493 name: "-webkit-user-select", |
3345 alias_for: "user-select", | 3494 alias_for: "user-select", |
3346 }, | 3495 }, |
3347 ], | 3496 ], |
3348 } | 3497 } |
OLD | NEW |