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

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

Issue 2861773004: Move border-*-width out of BorderValue and store on SurroundData in ComputedStyle instead (Closed)
Patch Set: 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 658 matching lines...) Expand 10 before | Expand all | Expand 10 after
669 name: "border-bottom-style", 669 name: "border-bottom-style",
670 initial: "InitialBorderStyle", 670 initial: "InitialBorderStyle",
671 type_name: "EBorderStyle", 671 type_name: "EBorderStyle",
672 keywords: ["none"], 672 keywords: ["none"],
673 typedom_types: ["Image"], 673 typedom_types: ["Image"],
674 }, 674 },
675 { 675 {
676 name: "border-bottom-width", 676 name: "border-bottom-width",
677 api_class: "CSSPropertyAPIBorderWidth", 677 api_class: "CSSPropertyAPIBorderWidth",
678 converter: "ConvertLineWidth<float>", 678 converter: "ConvertLineWidth<float>",
679 initial: "InitialBorderWidth",
680 interpolable: true, 679 interpolable: true,
681 keywords: ["thin", "medium", "thick"], 680 keywords: ["thin", "medium", "thick"],
682 typedom_types: ["Length"], 681 typedom_types: ["Length"],
682 field_template: "primitive",
683 type_name: "float",
684 default_value: "3",
685 field_group: "surround",
683 }, 686 },
684 { 687 {
685 name: "border-collapse", 688 name: "border-collapse",
686 independent: true, 689 independent: true,
687 inherited: true, 690 inherited: true,
688 default_value: "separate", 691 default_value: "separate",
689 field_template: "keyword", 692 field_template: "keyword",
690 keywords: ["separate", "collapse"], 693 keywords: ["separate", "collapse"],
691 }, 694 },
692 { 695 {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 name: "border-left-style", 733 name: "border-left-style",
731 initial: "InitialBorderStyle", 734 initial: "InitialBorderStyle",
732 type_name: "EBorderStyle", 735 type_name: "EBorderStyle",
733 keywords: ["none"], 736 keywords: ["none"],
734 typedom_types: ["Image"], 737 typedom_types: ["Image"],
735 }, 738 },
736 { 739 {
737 name: "border-left-width", 740 name: "border-left-width",
738 api_class: "CSSPropertyAPIBorderWidth", 741 api_class: "CSSPropertyAPIBorderWidth",
739 converter: "ConvertLineWidth<float>", 742 converter: "ConvertLineWidth<float>",
740 initial: "InitialBorderWidth",
741 interpolable: true, 743 interpolable: true,
742 keywords: ["thin", "medium", "thick"], 744 keywords: ["thin", "medium", "thick"],
743 typedom_types: ["Length"], 745 typedom_types: ["Length"],
746 field_template: "primitive",
747 type_name: "float",
748 default_value: "3",
749 field_group: "surround",
744 }, 750 },
745 { 751 {
746 name: "border-right-color", 752 name: "border-right-color",
747 custom_all: true, 753 custom_all: true,
748 interpolable: true, 754 interpolable: true,
749 }, 755 },
750 { 756 {
751 name: "border-right-style", 757 name: "border-right-style",
752 initial: "InitialBorderStyle", 758 initial: "InitialBorderStyle",
753 type_name: "EBorderStyle", 759 type_name: "EBorderStyle",
754 keywords: ["none"], 760 keywords: ["none"],
755 typedom_types: ["Image"], 761 typedom_types: ["Image"],
756 }, 762 },
757 { 763 {
758 name: "border-right-width", 764 name: "border-right-width",
759 api_class: "CSSPropertyAPIBorderWidth", 765 api_class: "CSSPropertyAPIBorderWidth",
760 converter: "ConvertLineWidth<float>", 766 converter: "ConvertLineWidth<float>",
761 initial: "InitialBorderWidth",
762 interpolable: true, 767 interpolable: true,
763 keywords: ["thin", "medium", "thick"], 768 keywords: ["thin", "medium", "thick"],
764 typedom_types: ["Length"], 769 typedom_types: ["Length"],
770 field_template: "primitive",
771 type_name: "float",
772 default_value: "3",
773 field_group: "surround",
765 }, 774 },
766 { 775 {
767 name: "border-top-color", 776 name: "border-top-color",
768 custom_all: true, 777 custom_all: true,
769 interpolable: true, 778 interpolable: true,
770 }, 779 },
771 { 780 {
772 name: "border-top-left-radius", 781 name: "border-top-left-radius",
773 api_class: "CSSPropertyAPIBorderRadius", 782 api_class: "CSSPropertyAPIBorderRadius",
774 api_methods: ["parseSingleValue"], 783 api_methods: ["parseSingleValue"],
(...skipping 19 matching lines...) Expand all
794 name: "border-top-style", 803 name: "border-top-style",
795 initial: "InitialBorderStyle", 804 initial: "InitialBorderStyle",
796 type_name: "EBorderStyle", 805 type_name: "EBorderStyle",
797 keywords: ["none"], 806 keywords: ["none"],
798 typedom_types: ["Image"], 807 typedom_types: ["Image"],
799 }, 808 },
800 { 809 {
801 name: "border-top-width", 810 name: "border-top-width",
802 api_class: "CSSPropertyAPIBorderWidth", 811 api_class: "CSSPropertyAPIBorderWidth",
803 converter: "ConvertLineWidth<float>", 812 converter: "ConvertLineWidth<float>",
804 initial: "InitialBorderWidth",
805 interpolable: true, 813 interpolable: true,
806 keywords: ["thin", "medium", "thick"], 814 keywords: ["thin", "medium", "thick"],
807 supports_percentage: true, 815 supports_percentage: true,
808 typedom_types: ["Length"], 816 typedom_types: ["Length"],
817 field_template: "primitive",
818 type_name: "float",
819 default_value: "3",
820 field_group: "surround",
809 }, 821 },
810 { 822 {
811 name: "bottom", 823 name: "bottom",
812 api_class: "CSSPropertyAPIMargin", 824 api_class: "CSSPropertyAPIMargin",
813 api_methods: ["parseSingleValue"], 825 api_methods: ["parseSingleValue"],
814 converter: "ConvertLengthOrAuto", 826 converter: "ConvertLengthOrAuto",
815 interpolable: true, 827 interpolable: true,
816 keywords: ["auto"], 828 keywords: ["auto"],
817 supports_percentage: true, 829 supports_percentage: true,
818 typedom_types: ["Length"], 830 typedom_types: ["Length"],
(...skipping 2404 matching lines...) Expand 10 before | Expand all | Expand 10 after
3223 { 3235 {
3224 name: "-webkit-transition-timing-function", 3236 name: "-webkit-transition-timing-function",
3225 alias_for: "transition-timing-function", 3237 alias_for: "transition-timing-function",
3226 }, 3238 },
3227 { 3239 {
3228 name: "-webkit-user-select", 3240 name: "-webkit-user-select",
3229 alias_for: "user-select", 3241 alias_for: "user-select",
3230 }, 3242 },
3231 ], 3243 ],
3232 } 3244 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698