Changeset 278611 in webkit
- Timestamp:
- Jun 8, 2021, 9:35:09 AM (5 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/css/CSSProperties.json (modified) (69 diffs)
-
Source/WebCore/css/CSSProperty.cpp (modified) (2 diffs)
-
Source/WebCore/css/makeprop.pl (modified) (4 diffs)
-
Tools/ChangeLog (modified) (1 diff)
-
Tools/Scripts/webkitpy/style/checkers/jsonchecker.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r278610 r278611 1 2021-06-08 Sam Weinig <weinig@apple.com> 2 3 Move some hand rolled CSSProperty predicates to be generated based on new CSSProperties.json properties 4 https://bugs.webkit.org/show_bug.cgi?id=226768 5 6 Reviewed by Antti Koivisto. 7 8 Replace hand rolled isDescriptorOnly, isDirectionAwareProperty and isColorProperty 9 functions with generated versions using new "color-property", "direction-aware-property" 10 and "descriptor-only" properties in CSSProperties.json. 11 12 * css/CSSProperties.json: 13 * css/CSSProperty.cpp: 14 (WebCore::CSSProperty::isDescriptorOnly): Deleted. 15 (WebCore::CSSProperty::isDirectionAwareProperty): Deleted. 16 (WebCore::CSSProperty::isColorProperty): Deleted. 17 * css/makeprop.pl: 18 (addProperty): 19 1 20 2021-06-08 Antoine Quint <graouts@webkit.org> 2 21 -
trunk/Source/WebCore/css/CSSProperties.json
r278185 r278611 88 88 "The regular setter on RenderStyle will only be called if", 89 89 "StyleResolver::applyPropertyToRegularStyle() returns true.", 90 "", 91 "* color-property:", 92 "Indicates that this CSS property is color-related (populates", 93 "CSSProperty::isColorProperty().", 94 "", 95 "* direction-aware-property:", 96 "Indicates that this CSS property is direction aware (populates.", 97 "CSSProperty::isDirectionAwareProperty().", 98 "", 99 "* descriptor-only:", 100 "Indicates that this CSS property is descriptor only (populates.", 101 "CSSProperty::isDescriptorOnly().", 102 "", 90 103 "", 91 104 "* font-property:", … … 186 199 ], 187 200 "properties": { 188 "caret-color" : {201 "caret-color": { 189 202 "inherited": true, 190 203 "codegen-properties": { 191 204 "visited-link-color-support": true, 205 "color-property": true, 192 206 "custom": "All" 193 207 }, … … 201 215 "codegen-properties": { 202 216 "visited-link-color-support": true, 217 "color-property": true, 203 218 "high-priority": true 204 219 }, … … 1074 1089 "background-color": { 1075 1090 "codegen-properties": { 1076 "visited-link-color-support": true 1091 "visited-link-color-support": true, 1092 "color-property": true 1077 1093 }, 1078 1094 "specification": { … … 1206 1222 "-webkit-logical-height" 1207 1223 ], 1208 "skip-builder": true 1224 "skip-builder": true, 1225 "direction-aware-property": true 1209 1226 }, 1210 1227 "specification": { … … 1272 1289 "border-block-end-style", 1273 1290 "border-block-end-color" 1274 ] 1291 ], 1292 "direction-aware-property": true 1275 1293 }, 1276 1294 "specification": { … … 1284 1302 "-webkit-border-after-color" 1285 1303 ], 1286 "skip-builder": true 1304 "skip-builder": true, 1305 "color-property": true, 1306 "direction-aware-property": true 1287 1307 }, 1288 1308 "specification": { … … 1308 1328 "-webkit-border-after-style" 1309 1329 ], 1310 "skip-builder": true 1330 "skip-builder": true, 1331 "direction-aware-property": true 1311 1332 }, 1312 1333 "specification": { … … 1320 1341 "-webkit-border-after-width" 1321 1342 ], 1322 "skip-builder": true 1343 "skip-builder": true, 1344 "direction-aware-property": true 1323 1345 }, 1324 1346 "specification": { … … 1336 1358 "border-block-start-style", 1337 1359 "border-block-start-color" 1338 ] 1360 ], 1361 "direction-aware-property": true 1339 1362 }, 1340 1363 "specification": { … … 1348 1371 "-webkit-border-before-color" 1349 1372 ], 1350 "skip-builder": true 1373 "skip-builder": true, 1374 "color-property": true, 1375 "direction-aware-property": true 1351 1376 }, 1352 1377 "specification": { … … 1372 1397 "-webkit-border-before-style" 1373 1398 ], 1374 "skip-builder": true 1399 "skip-builder": true, 1400 "direction-aware-property": true 1375 1401 }, 1376 1402 "specification": { … … 1384 1410 "-webkit-border-before-width" 1385 1411 ], 1386 "skip-builder": true 1412 "skip-builder": true, 1413 "direction-aware-property": true 1387 1414 }, 1388 1415 "specification": { … … 1431 1458 "codegen-properties": { 1432 1459 "initial": "currentColor", 1433 "visited-link-color-support": true 1460 "visited-link-color-support": true, 1461 "color-property": true 1434 1462 }, 1435 1463 "specification": { … … 1526 1554 "border-end-end-radius": { 1527 1555 "codegen-properties": { 1528 "skip-builder": true 1556 "skip-builder": true, 1557 "direction-aware-property": true 1529 1558 }, 1530 1559 "specification": { … … 1535 1564 "border-end-start-radius": { 1536 1565 "codegen-properties": { 1537 "skip-builder": true 1566 "skip-builder": true, 1567 "direction-aware-property": true 1538 1568 }, 1539 1569 "specification": { … … 1639 1669 "border-inline-end-style", 1640 1670 "border-inline-end-color" 1641 ] 1671 ], 1672 "direction-aware-property": true 1642 1673 }, 1643 1674 "specification": { … … 1651 1682 "-webkit-border-end-color" 1652 1683 ], 1653 "skip-builder": true 1684 "skip-builder": true, 1685 "color-property": true, 1686 "direction-aware-property": true 1654 1687 }, 1655 1688 "specification": { … … 1675 1708 "-webkit-border-end-style" 1676 1709 ], 1677 "skip-builder": true 1710 "skip-builder": true, 1711 "direction-aware-property": true 1678 1712 }, 1679 1713 "specification": { … … 1687 1721 "-webkit-border-end-width" 1688 1722 ], 1689 "skip-builder": true 1723 "skip-builder": true, 1724 "direction-aware-property": true 1690 1725 }, 1691 1726 "specification": { … … 1703 1738 "border-inline-start-style", 1704 1739 "border-inline-start-color" 1705 ] 1740 ], 1741 "direction-aware-property": true 1706 1742 }, 1707 1743 "specification": { … … 1715 1751 "-webkit-border-start-color" 1716 1752 ], 1717 "skip-builder": true 1753 "skip-builder": true, 1754 "color-property": true, 1755 "direction-aware-property": true 1718 1756 }, 1719 1757 "specification": { … … 1739 1777 "-webkit-border-start-style" 1740 1778 ], 1741 "skip-builder": true 1779 "skip-builder": true, 1780 "direction-aware-property": true 1742 1781 }, 1743 1782 "specification": { … … 1751 1790 "-webkit-border-start-width" 1752 1791 ], 1753 "skip-builder": true 1792 "skip-builder": true, 1793 "direction-aware-property": true 1754 1794 }, 1755 1795 "specification": { … … 1798 1838 "codegen-properties": { 1799 1839 "initial": "currentColor", 1800 "visited-link-color-support": true 1840 "visited-link-color-support": true, 1841 "color-property": true 1801 1842 }, 1802 1843 "specification": { … … 1866 1907 "codegen-properties": { 1867 1908 "initial": "currentColor", 1868 "visited-link-color-support": true 1909 "visited-link-color-support": true, 1910 "color-property": true 1869 1911 }, 1870 1912 "specification": { … … 1919 1961 "border-start-end-radius": { 1920 1962 "codegen-properties": { 1921 "skip-builder": true 1963 "skip-builder": true, 1964 "direction-aware-property": true 1922 1965 }, 1923 1966 "specification": { … … 1928 1971 "border-start-start-radius": { 1929 1972 "codegen-properties": { 1930 "skip-builder": true 1973 "skip-builder": true, 1974 "direction-aware-property": true 1931 1975 }, 1932 1976 "specification": { … … 1965 2009 "codegen-properties": { 1966 2010 "initial": "currentColor", 1967 "visited-link-color-support": true 2011 "visited-link-color-support": true, 2012 "color-property": true 1968 2013 }, 1969 2014 "specification": { … … 2461 2506 "codegen-properties": { 2462 2507 "custom": "All", 2463 "svg": true 2508 "svg": true, 2509 "color-property": true 2464 2510 }, 2465 2511 "specification": { … … 2510 2556 "codegen-properties": { 2511 2557 "converter": "SVGColor", 2512 "svg": true 2558 "svg": true, 2559 "color-property": true 2513 2560 }, 2514 2561 "specification": { … … 2628 2675 "-webkit-logical-width" 2629 2676 ], 2630 "skip-builder": true 2677 "skip-builder": true, 2678 "direction-aware-property": true 2631 2679 }, 2632 2680 "specification": { … … 2663 2711 "inset-block-end": { 2664 2712 "codegen-properties": { 2665 "skip-builder": true 2713 "skip-builder": true, 2714 "direction-aware-property": true 2666 2715 }, 2667 2716 "specification": { … … 2672 2721 "inset-block-start": { 2673 2722 "codegen-properties": { 2674 "skip-builder": true 2723 "skip-builder": true, 2724 "direction-aware-property": true 2675 2725 }, 2676 2726 "specification": { … … 2693 2743 "inset-inline-end": { 2694 2744 "codegen-properties": { 2695 "skip-builder": true 2745 "skip-builder": true, 2746 "direction-aware-property": true 2696 2747 }, 2697 2748 "specification": { … … 2702 2753 "inset-inline-start": { 2703 2754 "codegen-properties": { 2704 "skip-builder": true 2755 "skip-builder": true, 2756 "direction-aware-property": true 2705 2757 }, 2706 2758 "specification": { … … 2747 2799 "codegen-properties": { 2748 2800 "converter": "SVGColor", 2749 "svg": true 2801 "svg": true, 2802 "color-property": true 2750 2803 } 2751 2804 }, … … 2927 2980 "-webkit-margin-after" 2928 2981 ], 2929 "skip-builder": true 2982 "skip-builder": true, 2983 "direction-aware-property": true 2930 2984 }, 2931 2985 "specification": { … … 2939 2993 "-webkit-margin-before" 2940 2994 ], 2941 "skip-builder": true 2995 "skip-builder": true, 2996 "direction-aware-property": true 2942 2997 }, 2943 2998 "specification": { … … 2973 3028 "-webkit-margin-end" 2974 3029 ], 2975 "skip-builder": true 3030 "skip-builder": true, 3031 "direction-aware-property": true 2976 3032 }, 2977 3033 "specification": { … … 2985 3041 "-webkit-margin-start" 2986 3042 ], 2987 "skip-builder": true 3043 "skip-builder": true, 3044 "direction-aware-property": true 2988 3045 }, 2989 3046 "specification": { … … 3111 3168 "-webkit-max-logical-height" 3112 3169 ], 3113 "skip-builder": true 3170 "skip-builder": true, 3171 "direction-aware-property": true 3114 3172 }, 3115 3173 "specification": { … … 3133 3191 "-webkit-max-logical-width" 3134 3192 ], 3135 "skip-builder": true 3193 "skip-builder": true, 3194 "direction-aware-property": true 3136 3195 }, 3137 3196 "specification": { … … 3155 3214 "-webkit-min-logical-height" 3156 3215 ], 3157 "skip-builder": true 3216 "skip-builder": true, 3217 "direction-aware-property": true 3158 3218 }, 3159 3219 "specification": { … … 3177 3237 "-webkit-min-logical-width" 3178 3238 ], 3179 "skip-builder": true 3239 "skip-builder": true, 3240 "direction-aware-property": true 3180 3241 }, 3181 3242 "specification": { … … 3257 3318 "codegen-properties": { 3258 3319 "initial": "currentColor", 3259 "visited-link-color-support": true 3320 "visited-link-color-support": true, 3321 "color-property": true 3260 3322 }, 3261 3323 "specification": { … … 3439 3501 "-webkit-padding-after" 3440 3502 ], 3441 "skip-builder": true 3503 "skip-builder": true, 3504 "direction-aware-property": true 3442 3505 }, 3443 3506 "specification": { … … 3451 3514 "-webkit-padding-before" 3452 3515 ], 3453 "skip-builder": true 3516 "skip-builder": true, 3517 "direction-aware-property": true 3454 3518 }, 3455 3519 "specification": { … … 3485 3549 "-webkit-padding-end" 3486 3550 ], 3487 "skip-builder": true 3551 "skip-builder": true, 3552 "direction-aware-property": true 3488 3553 }, 3489 3554 "specification": { … … 3497 3562 "-webkit-padding-start" 3498 3563 ], 3499 "skip-builder": true 3564 "skip-builder": true, 3565 "direction-aware-property": true 3500 3566 }, 3501 3567 "specification": { … … 3721 3787 "src": { 3722 3788 "codegen-properties": { 3723 "skip-builder": true 3789 "skip-builder": true, 3790 "descriptor-only": true 3724 3791 }, 3725 3792 "specification": { … … 3731 3798 "codegen-properties": { 3732 3799 "converter": "SVGColor", 3733 "svg": true 3800 "svg": true, 3801 "color-property": true 3734 3802 }, 3735 3803 "specification": { … … 3752 3820 "codegen-properties": { 3753 3821 "custom": "All", 3754 "svg": true 3822 "svg": true, 3823 "color-property": true 3755 3824 }, 3756 3825 "specification": { … … 3848 3917 "codegen-properties": { 3849 3918 "custom": "Value", 3850 "visited-link-color-support": true 3919 "visited-link-color-support": true, 3920 "color-property": true 3851 3921 }, 3852 3922 "status": "supported", … … 4333 4403 "unicode-range": { 4334 4404 "codegen-properties": { 4335 "skip-builder": true 4405 "skip-builder": true, 4406 "descriptor-only": true 4336 4407 }, 4337 4408 "specification": { … … 4342 4413 "font-display": { 4343 4414 "codegen-properties": { 4344 "skip-builder": true 4415 "skip-builder": true, 4416 "descriptor-only": true 4345 4417 }, 4346 4418 "specification": { … … 4972 5044 ], 4973 5045 "initial": "currentColor", 4974 "visited-link-color-support": true 5046 "visited-link-color-support": true, 5047 "color-property": true 4975 5048 }, 4976 5049 "specification": { … … 6345 6418 "text-decoration-color": { 6346 6419 "codegen-properties": { 6420 "aliases": [ 6421 "-webkit-text-decoration-color" 6422 ], 6347 6423 "initial": "currentColor", 6348 6424 "visited-link-color-support": true, 6349 "aliases": [ 6350 "-webkit-text-decoration-color" 6351 ] 6425 "color-property": true 6352 6426 }, 6353 6427 "status": { … … 6459 6533 ], 6460 6534 "initial": "currentColor", 6461 "visited-link-color-support": true 6535 "visited-link-color-support": true, 6536 "color-property": true 6462 6537 }, 6463 6538 "status": { … … 6506 6581 "codegen-properties": { 6507 6582 "initial": "currentColor", 6508 "visited-link-color-support": true 6583 "visited-link-color-support": true, 6584 "color-property": true 6509 6585 }, 6510 6586 "status": { … … 6537 6613 "codegen-properties": { 6538 6614 "initial": "currentColor", 6539 "visited-link-color-support": true 6615 "visited-link-color-support": true, 6616 "color-property": true 6540 6617 }, 6541 6618 "status": { … … 6814 6891 "scroll-margin-inline-start": { 6815 6892 "codegen-properties": { 6816 "skip-builder": true 6893 "skip-builder": true, 6894 "direction-aware-property": true 6817 6895 }, 6818 6896 "specification": { … … 6823 6901 "scroll-margin-block-start": { 6824 6902 "codegen-properties": { 6825 "skip-builder": true 6903 "skip-builder": true, 6904 "direction-aware-property": true 6826 6905 }, 6827 6906 "specification": { … … 6832 6911 "scroll-margin-inline-end": { 6833 6912 "codegen-properties": { 6834 "skip-builder": true 6913 "skip-builder": true, 6914 "direction-aware-property": true 6835 6915 }, 6836 6916 "specification": { … … 6841 6921 "scroll-margin-block-end": { 6842 6922 "codegen-properties": { 6843 "skip-builder": true 6923 "skip-builder": true, 6924 "direction-aware-property": true 6844 6925 }, 6845 6926 "specification": { … … 6928 7009 "scroll-padding-inline-start": { 6929 7010 "codegen-properties": { 6930 "skip-builder": true 7011 "skip-builder": true, 7012 "direction-aware-property": true 6931 7013 }, 6932 7014 "specification": { … … 6937 7019 "scroll-padding-block-start": { 6938 7020 "codegen-properties": { 6939 "skip-builder": true 7021 "skip-builder": true, 7022 "direction-aware-property": true 6940 7023 }, 6941 7024 "specification": { … … 6946 7029 "scroll-padding-inline-end": { 6947 7030 "codegen-properties": { 6948 "skip-builder": true 7031 "skip-builder": true, 7032 "direction-aware-property": true 6949 7033 }, 6950 7034 "specification": { … … 6955 7039 "scroll-padding-block-end": { 6956 7040 "codegen-properties": { 6957 "skip-builder": true 7041 "skip-builder": true, 7042 "direction-aware-property": true 6958 7043 }, 6959 7044 "specification": { -
trunk/Source/WebCore/css/CSSProperty.cpp
r272035 r278611 1 1 /** 2 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 3 * Copyright (C) 2004 , 2005, 2006Apple Inc.3 * Copyright (C) 2004-2021 Apple Inc. 4 4 * 5 5 * This library is free software; you can redistribute it and/or … … 193 193 } 194 194 195 bool CSSProperty::isDescriptorOnly(CSSPropertyID propertyID)196 {197 switch (propertyID) {198 case CSSPropertySrc:199 case CSSPropertyUnicodeRange:200 case CSSPropertyFontDisplay:201 return true;202 default:203 return false;204 }205 }206 207 bool CSSProperty::isDirectionAwareProperty(CSSPropertyID propertyID)208 {209 switch (propertyID) {210 case CSSPropertyBorderBlockEnd:211 case CSSPropertyBorderBlockEndColor:212 case CSSPropertyBorderBlockEndStyle:213 case CSSPropertyBorderBlockEndWidth:214 case CSSPropertyBorderBlockStart:215 case CSSPropertyBorderBlockStartColor:216 case CSSPropertyBorderBlockStartStyle:217 case CSSPropertyBorderBlockStartWidth:218 case CSSPropertyBorderInlineEnd:219 case CSSPropertyBorderInlineEndColor:220 case CSSPropertyBorderInlineEndStyle:221 case CSSPropertyBorderInlineEndWidth:222 case CSSPropertyBorderInlineStart:223 case CSSPropertyBorderInlineStartColor:224 case CSSPropertyBorderInlineStartStyle:225 case CSSPropertyBorderInlineStartWidth:226 case CSSPropertyInsetInlineEnd:227 case CSSPropertyInsetInlineStart:228 case CSSPropertyInsetBlockStart:229 case CSSPropertyInsetBlockEnd:230 case CSSPropertyMarginInlineEnd:231 case CSSPropertyMarginInlineStart:232 case CSSPropertyMarginBlockStart:233 case CSSPropertyMarginBlockEnd:234 case CSSPropertyPaddingInlineEnd:235 case CSSPropertyPaddingInlineStart:236 case CSSPropertyPaddingBlockStart:237 case CSSPropertyPaddingBlockEnd:238 case CSSPropertyInlineSize:239 case CSSPropertyBlockSize:240 case CSSPropertyMinInlineSize:241 case CSSPropertyMinBlockSize:242 case CSSPropertyMaxInlineSize:243 case CSSPropertyMaxBlockSize:244 case CSSPropertyBorderStartStartRadius:245 case CSSPropertyBorderStartEndRadius:246 case CSSPropertyBorderEndStartRadius:247 case CSSPropertyBorderEndEndRadius:248 case CSSPropertyScrollMarginInlineStart:249 case CSSPropertyScrollMarginInlineEnd:250 case CSSPropertyScrollMarginBlockStart:251 case CSSPropertyScrollMarginBlockEnd:252 case CSSPropertyScrollPaddingInlineStart:253 case CSSPropertyScrollPaddingInlineEnd:254 case CSSPropertyScrollPaddingBlockStart:255 case CSSPropertyScrollPaddingBlockEnd:256 return true;257 default:258 return false;259 }260 }261 262 bool CSSProperty::isColorProperty(CSSPropertyID propertyId)263 {264 switch (propertyId) {265 case CSSPropertyColor:266 case CSSPropertyBackgroundColor:267 case CSSPropertyBorderBottomColor:268 case CSSPropertyBorderLeftColor:269 case CSSPropertyBorderRightColor:270 case CSSPropertyBorderTopColor:271 case CSSPropertyFill:272 case CSSPropertyFloodColor:273 case CSSPropertyLightingColor:274 case CSSPropertyOutlineColor:275 case CSSPropertyStopColor:276 case CSSPropertyStroke:277 case CSSPropertyStrokeColor:278 case CSSPropertyBorderBlockEndColor:279 case CSSPropertyBorderBlockStartColor:280 case CSSPropertyBorderInlineEndColor:281 case CSSPropertyBorderInlineStartColor:282 case CSSPropertyColumnRuleColor:283 case CSSPropertyWebkitTextEmphasisColor:284 case CSSPropertyWebkitTextFillColor:285 case CSSPropertyWebkitTextStrokeColor:286 case CSSPropertyTextDecorationColor:287 case CSSPropertyCaretColor:288 return true;289 default:290 return false;291 }292 }293 294 195 } // namespace WebCore -
trunk/Source/WebCore/css/makeprop.pl
r275808 r278611 66 66 my %settingsFlags; 67 67 my $numPredefinedProperties = 2; 68 my %nameIsColorProperty; 69 my %nameIsDescriptorOnly; 70 my %nameIsDirectionAwareProperty; 71 my %nameIsHighPriority; 68 72 my %nameIsInherited; 69 my %nameIsHighPriority;70 73 my %namePriorityShouldSink; 71 74 my %propertiesWithStyleBuilderOptions; … … 258 261 } elsif ($codegenOptionName eq "settings-flag") { 259 262 $settingsFlags{$name} = $codegenProperties->{"settings-flag"}; 263 } elsif ($codegenOptionName eq "color-property") { 264 $nameIsColorProperty{$name} = 1; 265 } elsif ($codegenOptionName eq "direction-aware-property") { 266 $nameIsDirectionAwareProperty{$name} = 1; 267 } elsif ($codegenOptionName eq "descriptor-only") { 268 $nameIsDescriptorOnly{$name} = 1; 260 269 } else { 261 270 die "Unrecognized codegen property \"$codegenOptionName\" for $name property."; … … 513 522 CSSPropertyID getRelatedPropertyId(CSSPropertyID id) 514 523 { 515 switch (id) {524 switch (id) { 516 525 EOF 517 526 for my $name (@names) { … … 545 554 default: 546 555 return { }; 556 } 557 } 558 559 bool CSSProperty::isColorProperty(CSSPropertyID id) 560 { 561 switch (id) { 562 EOF 563 for my $name (@names) { 564 if (!$nameIsColorProperty{$name}) { 565 next; 566 } 567 print GPERF " case CSSPropertyID::CSSProperty" . $nameToId{$name} . ":\n"; 568 } 569 570 print GPERF << "EOF"; 571 return true; 572 default: 573 return false; 574 } 575 } 576 577 bool CSSProperty::isDirectionAwareProperty(CSSPropertyID id) 578 { 579 switch (id) { 580 EOF 581 for my $name (@names) { 582 if (!$nameIsDirectionAwareProperty{$name}) { 583 next; 584 } 585 print GPERF " case CSSPropertyID::CSSProperty" . $nameToId{$name} . ":\n"; 586 } 587 588 print GPERF << "EOF"; 589 return true; 590 default: 591 return false; 592 } 593 } 594 595 bool CSSProperty::isDescriptorOnly(CSSPropertyID id) 596 { 597 switch (id) { 598 EOF 599 for my $name (@names) { 600 if (!$nameIsDescriptorOnly{$name}) { 601 next; 602 } 603 print GPERF " case CSSPropertyID::CSSProperty" . $nameToId{$name} . ":\n"; 604 } 605 606 print GPERF << "EOF"; 607 return true; 608 default: 609 return false; 547 610 } 548 611 } -
trunk/Tools/ChangeLog
r278606 r278611 1 2021-06-08 Sam Weinig <weinig@apple.com> 2 3 Move some hand rolled CSSProperty predicates to be generated based on new CSSProperties.json properties 4 https://bugs.webkit.org/show_bug.cgi?id=226768 5 6 Reviewed by Antti Koivisto. 7 8 * Scripts/webkitpy/style/checkers/jsonchecker.py: 9 (JSONCSSPropertiesChecker.check_codegen_properties): 10 Add new codegen properties to the checker. 11 1 12 2021-06-08 Philippe Normand <pnormand@igalia.com> 2 13 -
trunk/Tools/Scripts/webkitpy/style/checkers/jsonchecker.py
r276564 r278611 274 274 'aliases': self.validate_array, 275 275 'auto-functions': self.validate_boolean, 276 'color-property': self.validate_boolean, 276 277 'comment': self.validate_string, 277 278 'conditional-converter': self.validate_string, 278 279 'converter': self.validate_string, 279 280 'custom': self.validate_string, 281 'descriptor-only': self.validate_boolean, 282 'direction-aware-property': self.validate_boolean, 280 283 'enable-if': self.validate_string, 281 284 'fill-layer-property': self.validate_boolean, … … 283 286 'getter': self.validate_string, 284 287 'high-priority': self.validate_boolean, 285 'sink-priority': self.validate_boolean,286 288 'initial': self.validate_string, 287 289 'internal-only': self.validate_boolean, … … 293 295 'setter': self.validate_string, 294 296 'settings-flag': self.validate_string, 297 'sink-priority': self.validate_boolean, 295 298 'skip-builder': self.validate_boolean, 296 299 'skip-codegen': self.validate_boolean,
Note:
See TracChangeset
for help on using the changeset viewer.