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

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

Issue 2880573002: Store border-*-style on SurroundData in ComputedStyle (Closed)
Patch Set: Merge branch 'enumClass' into borderStyle Created 3 years, 7 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 667 matching lines...) Expand 10 before | Expand all | Expand 10 after
678 api_methods: ["parseSingleValue"], 678 api_methods: ["parseSingleValue"],
679 converter: "ConvertRadius", 679 converter: "ConvertRadius",
680 interpolable: true, 680 interpolable: true,
681 field_template: "external", 681 field_template: "external",
682 field_type_path: "platform/LengthSize", 682 field_type_path: "platform/LengthSize",
683 field_group: "surround", 683 field_group: "surround",
684 default_value: "LengthSize(Length(0, kFixed), Length(0, kFixed))", 684 default_value: "LengthSize(Length(0, kFixed), Length(0, kFixed))",
685 }, 685 },
686 { 686 {
687 name: "border-bottom-style", 687 name: "border-bottom-style",
688 initial: "InitialBorderStyle",
689 type_name: "EBorderStyle", 688 type_name: "EBorderStyle",
690 keywords: ["none"], 689 field_template: "keyword",
690 keywords: ["none", "hidden", "inset", "groove", "outset", "ridge", "dotted ", "dashed", "solid", "double"],
691 default_value: "none",
691 typedom_types: ["Image"], 692 typedom_types: ["Image"],
693 field_group: "surround",
692 }, 694 },
693 { 695 {
694 name: "border-bottom-width", 696 name: "border-bottom-width",
695 api_class: "CSSPropertyAPIBorderWidth", 697 api_class: "CSSPropertyAPIBorderWidth",
696 converter: "ConvertLineWidth<float>", 698 converter: "ConvertLineWidth<float>",
697 initial: "InitialBorderWidth", 699 initial: "InitialBorderWidth",
698 interpolable: true, 700 interpolable: true,
699 keywords: ["thin", "medium", "thick"], 701 keywords: ["thin", "medium", "thick"],
700 typedom_types: ["Length"], 702 typedom_types: ["Length"],
701 field_template: "storage_only", 703 field_template: "storage_only",
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 name: "border-left-color", 750 name: "border-left-color",
749 custom_all: true, 751 custom_all: true,
750 interpolable: true, 752 interpolable: true,
751 field_template: "storage_only", 753 field_template: "storage_only",
752 field_type_path: "platform/graphics/Color", 754 field_type_path: "platform/graphics/Color",
753 default_value: "0", 755 default_value: "0",
754 field_group: "surround", 756 field_group: "surround",
755 }, 757 },
756 { 758 {
757 name: "border-left-style", 759 name: "border-left-style",
758 initial: "InitialBorderStyle",
759 type_name: "EBorderStyle", 760 type_name: "EBorderStyle",
760 keywords: ["none"], 761 field_template: "keyword",
762 keywords: ["none", "hidden", "inset", "groove", "outset", "ridge", "dotted ", "dashed", "solid", "double"],
763 default_value: "none",
761 typedom_types: ["Image"], 764 typedom_types: ["Image"],
765 field_group: "surround",
762 }, 766 },
763 { 767 {
764 name: "border-left-width", 768 name: "border-left-width",
765 api_class: "CSSPropertyAPIBorderWidth", 769 api_class: "CSSPropertyAPIBorderWidth",
766 converter: "ConvertLineWidth<float>", 770 converter: "ConvertLineWidth<float>",
767 initial: "InitialBorderWidth", 771 initial: "InitialBorderWidth",
768 interpolable: true, 772 interpolable: true,
769 keywords: ["thin", "medium", "thick"], 773 keywords: ["thin", "medium", "thick"],
770 typedom_types: ["Length"], 774 typedom_types: ["Length"],
771 field_template: "storage_only", 775 field_template: "storage_only",
772 type_name: "unsigned", 776 type_name: "unsigned",
773 field_size : 26, 777 field_size : 26,
774 default_value: "WidthToFixedPoint(3)", 778 default_value: "WidthToFixedPoint(3)",
775 field_group: "surround", 779 field_group: "surround",
776 }, 780 },
777 { 781 {
778 name: "border-right-color", 782 name: "border-right-color",
779 custom_all: true, 783 custom_all: true,
780 interpolable: true, 784 interpolable: true,
781 field_template: "storage_only", 785 field_template: "storage_only",
782 field_type_path: "platform/graphics/Color", 786 field_type_path: "platform/graphics/Color",
783 default_value: "0", 787 default_value: "0",
784 field_group: "surround", 788 field_group: "surround",
785 }, 789 },
786 { 790 {
787 name: "border-right-style", 791 name: "border-right-style",
788 initial: "InitialBorderStyle",
789 type_name: "EBorderStyle", 792 type_name: "EBorderStyle",
790 keywords: ["none"],
791 typedom_types: ["Image"], 793 typedom_types: ["Image"],
794 field_template: "keyword",
795 default_value: "none",
796 keywords: ["none", "hidden", "inset", "groove", "outset", "ridge", "dotted ", "dashed", "solid", "double"],
797 field_group: "surround",
792 }, 798 },
793 { 799 {
794 name: "border-right-width", 800 name: "border-right-width",
795 api_class: "CSSPropertyAPIBorderWidth", 801 api_class: "CSSPropertyAPIBorderWidth",
796 converter: "ConvertLineWidth<float>", 802 converter: "ConvertLineWidth<float>",
797 initial: "InitialBorderWidth", 803 initial: "InitialBorderWidth",
798 interpolable: true, 804 interpolable: true,
799 keywords: ["thin", "medium", "thick"], 805 keywords: ["thin", "medium", "thick"],
800 typedom_types: ["Length"], 806 typedom_types: ["Length"],
801 field_template: "storage_only", 807 field_template: "storage_only",
(...skipping 28 matching lines...) Expand all
830 api_methods: ["parseSingleValue"], 836 api_methods: ["parseSingleValue"],
831 converter: "ConvertRadius", 837 converter: "ConvertRadius",
832 interpolable: true, 838 interpolable: true,
833 field_template: "external", 839 field_template: "external",
834 field_type_path: "platform/LengthSize", 840 field_type_path: "platform/LengthSize",
835 field_group: "surround", 841 field_group: "surround",
836 default_value: "LengthSize(Length(0, kFixed), Length(0, kFixed))", 842 default_value: "LengthSize(Length(0, kFixed), Length(0, kFixed))",
837 }, 843 },
838 { 844 {
839 name: "border-top-style", 845 name: "border-top-style",
840 initial: "InitialBorderStyle",
841 type_name: "EBorderStyle", 846 type_name: "EBorderStyle",
842 keywords: ["none"], 847 field_template: "keyword",
848 default_value: "none",
849 keywords: ["none", "hidden", "inset", "groove", "outset", "ridge", "dotted ", "dashed", "solid", "double"],
843 typedom_types: ["Image"], 850 typedom_types: ["Image"],
851 field_group: "surround",
844 }, 852 },
845 { 853 {
846 name: "border-top-width", 854 name: "border-top-width",
847 api_class: "CSSPropertyAPIBorderWidth", 855 api_class: "CSSPropertyAPIBorderWidth",
848 converter: "ConvertLineWidth<float>", 856 converter: "ConvertLineWidth<float>",
849 initial: "InitialBorderWidth", 857 initial: "InitialBorderWidth",
850 interpolable: true, 858 interpolable: true,
851 keywords: ["thin", "medium", "thick"], 859 keywords: ["thin", "medium", "thick"],
852 supports_percentage: true, 860 supports_percentage: true,
853 typedom_types: ["Length"], 861 typedom_types: ["Length"],
(...skipping 1398 matching lines...) Expand 10 before | Expand all | Expand 10 after
2252 }, 2260 },
2253 { 2261 {
2254 name: "column-rule-color", 2262 name: "column-rule-color",
2255 api_class: "CSSPropertyAPIColor", 2263 api_class: "CSSPropertyAPIColor",
2256 api_methods: ["parseSingleValue"], 2264 api_methods: ["parseSingleValue"],
2257 custom_all: true, 2265 custom_all: true,
2258 interpolable: true, 2266 interpolable: true,
2259 }, 2267 },
2260 { 2268 {
2261 name: "column-rule-style", 2269 name: "column-rule-style",
2262 initial: "InitialBorderStyle", 2270 initial: "InitialColumnRuleStyle",
2263 type_name: "EBorderStyle", 2271 type_name: "EBorderStyle",
2264 }, 2272 },
2265 { 2273 {
2266 name: "column-rule-width", 2274 name: "column-rule-width",
2267 api_class: true, 2275 api_class: true,
2268 api_methods: ["parseSingleValue"], 2276 api_methods: ["parseSingleValue"],
2269 converter: "ConvertLineWidth<unsigned short>", 2277 converter: "ConvertLineWidth<unsigned short>",
2270 interpolable: true, 2278 interpolable: true,
2271 }, 2279 },
2272 { 2280 {
(...skipping 1062 matching lines...) Expand 10 before | Expand all | Expand 10 after
3335 { 3343 {
3336 name: "-webkit-transition-timing-function", 3344 name: "-webkit-transition-timing-function",
3337 alias_for: "transition-timing-function", 3345 alias_for: "transition-timing-function",
3338 }, 3346 },
3339 { 3347 {
3340 name: "-webkit-user-select", 3348 name: "-webkit-user-select",
3341 alias_for: "user-select", 3349 alias_for: "user-select",
3342 }, 3350 },
3343 ], 3351 ],
3344 } 3352 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698