| 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 679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 690 keywords: ["none"], | 690 keywords: ["none"], |
| 691 typedom_types: ["Image"], | 691 typedom_types: ["Image"], |
| 692 }, | 692 }, |
| 693 { | 693 { |
| 694 name: "border-bottom-width", | 694 name: "border-bottom-width", |
| 695 api_class: "CSSPropertyAPIBorderWidth", | 695 api_class: "CSSPropertyAPIBorderWidth", |
| 696 converter: "ConvertLineWidth<float>", | 696 converter: "ConvertLineWidth<float>", |
| 697 initial: "InitialBorderWidth", | 697 initial: "InitialBorderWidth", |
| 698 interpolable: true, | 698 interpolable: true, |
| 699 keywords: ["thin", "medium", "thick"], | 699 keywords: ["thin", "medium", "thick"], |
| 700 typedom_types: ["Length"], | |
| 701 field_template: "storage_only", | 700 field_template: "storage_only", |
| 702 type_name: "unsigned", | 701 type_name: "unsigned", |
| 703 field_size : 26, | 702 field_size : 26, |
| 704 default_value: "WidthToFixedPoint(3)", | 703 default_value: "WidthToFixedPoint(3)", |
| 705 field_group: "surround", | 704 field_group: "surround", |
| 706 }, | 705 }, |
| 707 { | 706 { |
| 708 name: "border-collapse", | 707 name: "border-collapse", |
| 709 independent: true, | 708 independent: true, |
| 710 inherited: true, | 709 inherited: true, |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 760 keywords: ["none"], | 759 keywords: ["none"], |
| 761 typedom_types: ["Image"], | 760 typedom_types: ["Image"], |
| 762 }, | 761 }, |
| 763 { | 762 { |
| 764 name: "border-left-width", | 763 name: "border-left-width", |
| 765 api_class: "CSSPropertyAPIBorderWidth", | 764 api_class: "CSSPropertyAPIBorderWidth", |
| 766 converter: "ConvertLineWidth<float>", | 765 converter: "ConvertLineWidth<float>", |
| 767 initial: "InitialBorderWidth", | 766 initial: "InitialBorderWidth", |
| 768 interpolable: true, | 767 interpolable: true, |
| 769 keywords: ["thin", "medium", "thick"], | 768 keywords: ["thin", "medium", "thick"], |
| 770 typedom_types: ["Length"], | |
| 771 field_template: "storage_only", | 769 field_template: "storage_only", |
| 772 type_name: "unsigned", | 770 type_name: "unsigned", |
| 773 field_size : 26, | 771 field_size : 26, |
| 774 default_value: "WidthToFixedPoint(3)", | 772 default_value: "WidthToFixedPoint(3)", |
| 775 field_group: "surround", | 773 field_group: "surround", |
| 776 }, | 774 }, |
| 777 { | 775 { |
| 778 name: "border-right-color", | 776 name: "border-right-color", |
| 779 custom_all: true, | 777 custom_all: true, |
| 780 interpolable: true, | 778 interpolable: true, |
| 781 field_template: "storage_only", | 779 field_template: "storage_only", |
| 782 field_type_path: "platform/graphics/Color", | 780 field_type_path: "platform/graphics/Color", |
| 783 default_value: "0", | 781 default_value: "0", |
| 784 field_group: "surround", | 782 field_group: "surround", |
| 785 }, | 783 }, |
| 786 { | 784 { |
| 787 name: "border-right-style", | 785 name: "border-right-style", |
| 788 initial: "InitialBorderStyle", | 786 initial: "InitialBorderStyle", |
| 789 type_name: "EBorderStyle", | 787 type_name: "EBorderStyle", |
| 790 keywords: ["none"], | 788 keywords: ["none"], |
| 791 typedom_types: ["Image"], | 789 typedom_types: ["Image"], |
| 792 }, | 790 }, |
| 793 { | 791 { |
| 794 name: "border-right-width", | 792 name: "border-right-width", |
| 795 api_class: "CSSPropertyAPIBorderWidth", | 793 api_class: "CSSPropertyAPIBorderWidth", |
| 796 converter: "ConvertLineWidth<float>", | 794 converter: "ConvertLineWidth<float>", |
| 797 initial: "InitialBorderWidth", | 795 initial: "InitialBorderWidth", |
| 798 interpolable: true, | 796 interpolable: true, |
| 799 keywords: ["thin", "medium", "thick"], | 797 keywords: ["thin", "medium", "thick"], |
| 800 typedom_types: ["Length"], | |
| 801 field_template: "storage_only", | 798 field_template: "storage_only", |
| 802 type_name: "unsigned", | 799 type_name: "unsigned", |
| 803 field_size : 26, | 800 field_size : 26, |
| 804 default_value: "WidthToFixedPoint(3)", | 801 default_value: "WidthToFixedPoint(3)", |
| 805 field_group: "surround", | 802 field_group: "surround", |
| 806 }, | 803 }, |
| 807 { | 804 { |
| 808 name: "border-top-color", | 805 name: "border-top-color", |
| 809 custom_all: true, | 806 custom_all: true, |
| 810 interpolable: true, | 807 interpolable: true, |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 843 typedom_types: ["Image"], | 840 typedom_types: ["Image"], |
| 844 }, | 841 }, |
| 845 { | 842 { |
| 846 name: "border-top-width", | 843 name: "border-top-width", |
| 847 api_class: "CSSPropertyAPIBorderWidth", | 844 api_class: "CSSPropertyAPIBorderWidth", |
| 848 converter: "ConvertLineWidth<float>", | 845 converter: "ConvertLineWidth<float>", |
| 849 initial: "InitialBorderWidth", | 846 initial: "InitialBorderWidth", |
| 850 interpolable: true, | 847 interpolable: true, |
| 851 keywords: ["thin", "medium", "thick"], | 848 keywords: ["thin", "medium", "thick"], |
| 852 supports_percentage: true, | 849 supports_percentage: true, |
| 853 typedom_types: ["Length"], | |
| 854 field_template: "storage_only", | 850 field_template: "storage_only", |
| 855 type_name: "unsigned", | 851 type_name: "unsigned", |
| 856 field_size : 26, | 852 field_size : 26, |
| 857 default_value: "WidthToFixedPoint(3)", | 853 default_value: "WidthToFixedPoint(3)", |
| 858 field_group: "surround", | 854 field_group: "surround", |
| 859 }, | 855 }, |
| 860 { | 856 { |
| 861 name: "bottom", | 857 name: "bottom", |
| 862 api_class: "CSSPropertyAPIMargin", | 858 api_class: "CSSPropertyAPIMargin", |
| 863 api_methods: ["parseSingleValue"], | 859 api_methods: ["parseSingleValue"], |
| 864 converter: "ConvertLengthOrAuto", | 860 converter: "ConvertLengthOrAuto", |
| 865 interpolable: true, | 861 interpolable: true, |
| 866 keywords: ["auto"], | 862 keywords: ["auto"], |
| 867 supports_percentage: true, | 863 supports_percentage: true, |
| 868 typedom_types: ["Length"], | |
| 869 field_template: "external", | 864 field_template: "external", |
| 870 field_type_path: "platform/Length", | 865 field_type_path: "platform/Length", |
| 871 field_group: "surround", | 866 field_group: "surround", |
| 872 default_value: "Length()", | 867 default_value: "Length()", |
| 873 }, | 868 }, |
| 874 { | 869 { |
| 875 name: "box-shadow", | 870 name: "box-shadow", |
| 876 converter: "ConvertShadowList", | 871 converter: "ConvertShadowList", |
| 877 interpolable: true, | 872 interpolable: true, |
| 878 }, | 873 }, |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1223 runtime_flag: "CSSGridLayout", | 1218 runtime_flag: "CSSGridLayout", |
| 1224 }, | 1219 }, |
| 1225 { | 1220 { |
| 1226 name: "height", | 1221 name: "height", |
| 1227 api_class: "CSSPropertyAPIWidthOrHeight", | 1222 api_class: "CSSPropertyAPIWidthOrHeight", |
| 1228 converter: "ConvertLengthSizing", | 1223 converter: "ConvertLengthSizing", |
| 1229 is_descriptor: true, | 1224 is_descriptor: true, |
| 1230 interpolable: true, | 1225 interpolable: true, |
| 1231 keywords: ["auto", "fit-content", "min-content", "max-content"], | 1226 keywords: ["auto", "fit-content", "min-content", "max-content"], |
| 1232 supports_percentage: true, | 1227 supports_percentage: true, |
| 1233 typedom_types: ["Length"], | |
| 1234 field_template: "external", | 1228 field_template: "external", |
| 1235 field_type_path: "platform/Length", | 1229 field_type_path: "platform/Length", |
| 1236 field_group: "box", | 1230 field_group: "box", |
| 1237 default_value: "Length()", | 1231 default_value: "Length()", |
| 1238 }, | 1232 }, |
| 1239 { | 1233 { |
| 1240 name: "hyphens", | 1234 name: "hyphens", |
| 1241 inherited: true, | 1235 inherited: true, |
| 1242 runtime_flag: "CSSHyphens", | 1236 runtime_flag: "CSSHyphens", |
| 1243 type_name: "Hyphens", | 1237 type_name: "Hyphens", |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1280 runtime_flag: "CSSGridLayout", | 1274 runtime_flag: "CSSGridLayout", |
| 1281 }, | 1275 }, |
| 1282 { | 1276 { |
| 1283 name: "left", | 1277 name: "left", |
| 1284 api_class: "CSSPropertyAPIMargin", | 1278 api_class: "CSSPropertyAPIMargin", |
| 1285 api_methods: ["parseSingleValue"], | 1279 api_methods: ["parseSingleValue"], |
| 1286 converter: "ConvertLengthOrAuto", | 1280 converter: "ConvertLengthOrAuto", |
| 1287 interpolable: true, | 1281 interpolable: true, |
| 1288 keywords: ["auto"], | 1282 keywords: ["auto"], |
| 1289 supports_percentage: true, | 1283 supports_percentage: true, |
| 1290 typedom_types: ["Length"], | |
| 1291 field_template: "external", | 1284 field_template: "external", |
| 1292 field_type_path: "platform/Length", | 1285 field_type_path: "platform/Length", |
| 1293 field_group: "surround", | 1286 field_group: "surround", |
| 1294 default_value: "Length()", | 1287 default_value: "Length()", |
| 1295 }, | 1288 }, |
| 1296 { | 1289 { |
| 1297 name: "letter-spacing", | 1290 name: "letter-spacing", |
| 1298 api_class: "CSSPropertyAPILetterAndWordSpacing", | 1291 api_class: "CSSPropertyAPILetterAndWordSpacing", |
| 1299 api_methods: ["parseSingleValue"], | 1292 api_methods: ["parseSingleValue"], |
| 1300 converter: "ConvertSpacing", | 1293 converter: "ConvertSpacing", |
| (...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1701 custom_value: true, | 1694 custom_value: true, |
| 1702 }, | 1695 }, |
| 1703 { | 1696 { |
| 1704 name: "right", | 1697 name: "right", |
| 1705 api_class: "CSSPropertyAPIMargin", | 1698 api_class: "CSSPropertyAPIMargin", |
| 1706 api_methods: ["parseSingleValue"], | 1699 api_methods: ["parseSingleValue"], |
| 1707 converter: "ConvertLengthOrAuto", | 1700 converter: "ConvertLengthOrAuto", |
| 1708 interpolable: true, | 1701 interpolable: true, |
| 1709 keywords: ["auto"], | 1702 keywords: ["auto"], |
| 1710 supports_percentage: true, | 1703 supports_percentage: true, |
| 1711 typedom_types: ["Length"], | |
| 1712 field_template: "external", | 1704 field_template: "external", |
| 1713 field_type_path: "platform/Length", | 1705 field_type_path: "platform/Length", |
| 1714 field_group: "surround", | 1706 field_group: "surround", |
| 1715 default_value: "Length()", | 1707 default_value: "Length()", |
| 1716 }, | 1708 }, |
| 1717 { | 1709 { |
| 1718 name: "r", | 1710 name: "r", |
| 1719 api_class: "CSSPropertyAPIStrokeOrLength", | 1711 api_class: "CSSPropertyAPIStrokeOrLength", |
| 1720 converter: "ConvertLength", | 1712 converter: "ConvertLength", |
| 1721 interpolable: true, | 1713 interpolable: true, |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2022 type_name: "TextUnderlinePosition", | 2014 type_name: "TextUnderlinePosition", |
| 2023 }, | 2015 }, |
| 2024 { | 2016 { |
| 2025 name: "top", | 2017 name: "top", |
| 2026 api_class: "CSSPropertyAPIMargin", | 2018 api_class: "CSSPropertyAPIMargin", |
| 2027 api_methods: ["parseSingleValue"], | 2019 api_methods: ["parseSingleValue"], |
| 2028 converter: "ConvertLengthOrAuto", | 2020 converter: "ConvertLengthOrAuto", |
| 2029 interpolable: true, | 2021 interpolable: true, |
| 2030 keywords: ["auto"], | 2022 keywords: ["auto"], |
| 2031 supports_percentage: true, | 2023 supports_percentage: true, |
| 2032 typedom_types: ["Length"], | |
| 2033 field_template: "external", | 2024 field_template: "external", |
| 2034 field_type_path: "platform/Length", | 2025 field_type_path: "platform/Length", |
| 2035 field_group: "surround", | 2026 field_group: "surround", |
| 2036 default_value: "Length()", | 2027 default_value: "Length()", |
| 2037 }, | 2028 }, |
| 2038 { | 2029 { |
| 2039 name: "touch-action", | 2030 name: "touch-action", |
| 2040 api_class: true, | 2031 api_class: true, |
| 2041 api_methods: ["parseSingleValue"], | 2032 api_methods: ["parseSingleValue"], |
| 2042 converter: "ConvertFlags<TouchAction>", | 2033 converter: "ConvertFlags<TouchAction>", |
| (...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2524 type_name: "short", | 2515 type_name: "short", |
| 2525 }, | 2516 }, |
| 2526 { | 2517 { |
| 2527 name: "width", | 2518 name: "width", |
| 2528 api_class: "CSSPropertyAPIWidthOrHeight", | 2519 api_class: "CSSPropertyAPIWidthOrHeight", |
| 2529 converter: "ConvertLengthSizing", | 2520 converter: "ConvertLengthSizing", |
| 2530 is_descriptor: true, | 2521 is_descriptor: true, |
| 2531 interpolable: true, | 2522 interpolable: true, |
| 2532 keywords: ["auto", "fit-content", "min-content", "max-content"], | 2523 keywords: ["auto", "fit-content", "min-content", "max-content"], |
| 2533 supports_percentage: true, | 2524 supports_percentage: true, |
| 2534 typedom_types: ["Length"], | |
| 2535 field_template: "external", | 2525 field_template: "external", |
| 2536 field_type_path: "platform/Length", | 2526 field_type_path: "platform/Length", |
| 2537 field_group: "box", | 2527 field_group: "box", |
| 2538 default_value: "Length()" | 2528 default_value: "Length()" |
| 2539 }, | 2529 }, |
| 2540 { | 2530 { |
| 2541 name: "will-change", | 2531 name: "will-change", |
| 2542 api_class: true, | 2532 api_class: true, |
| 2543 api_methods: ["parseSingleValue"], | 2533 api_methods: ["parseSingleValue"], |
| 2544 custom_all: true, | 2534 custom_all: true, |
| (...skipping 778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3323 { | 3313 { |
| 3324 name: "-webkit-transition-timing-function", | 3314 name: "-webkit-transition-timing-function", |
| 3325 alias_for: "transition-timing-function", | 3315 alias_for: "transition-timing-function", |
| 3326 }, | 3316 }, |
| 3327 { | 3317 { |
| 3328 name: "-webkit-user-select", | 3318 name: "-webkit-user-select", |
| 3329 alias_for: "user-select", | 3319 alias_for: "user-select", |
| 3330 }, | 3320 }, |
| 3331 ], | 3321 ], |
| 3332 } | 3322 } |
| OLD | NEW |