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

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

Issue 2895153002: Generate getters/setters for orphans and widows. (Closed)
Patch Set: Rebase Created 3 years, 6 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/style/ComputedStyle.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1572 matching lines...) Expand 10 before | Expand all | Expand 10 after
1583 interpolable: true, 1583 interpolable: true,
1584 type_name: "int", 1584 type_name: "int",
1585 }, 1585 },
1586 { 1586 {
1587 name: "orphans", 1587 name: "orphans",
1588 api_class: "CSSPropertyAPIFragmentation", 1588 api_class: "CSSPropertyAPIFragmentation",
1589 api_methods: ["parseSingleValue"], 1589 api_methods: ["parseSingleValue"],
1590 inherited: true, 1590 inherited: true,
1591 interpolable: true, 1591 interpolable: true,
1592 type_name: "short", 1592 type_name: "short",
1593 field_template: "storage_only", 1593 field_template: "primitive",
1594 default_value: "2", 1594 default_value: "2",
1595 field_group: "rare-inherited", 1595 field_group: "rare-inherited",
1596 }, 1596 },
1597 { 1597 {
1598 name: "outline-color", 1598 name: "outline-color",
1599 api_class: true, 1599 api_class: true,
1600 api_methods: ["parseSingleValue"], 1600 api_methods: ["parseSingleValue"],
1601 custom_all: true, 1601 custom_all: true,
1602 interpolable: true, 1602 interpolable: true,
1603 }, 1603 },
(...skipping 1067 matching lines...) Expand 10 before | Expand all | Expand 10 after
2671 default_value: "normal", 2671 default_value: "normal",
2672 field_template: "keyword", 2672 field_template: "keyword",
2673 keywords: ["normal", "pre", "pre-wrap", "pre-line", "nowrap", "-webkit-now rap"], 2673 keywords: ["normal", "pre", "pre-wrap", "pre-line", "nowrap", "-webkit-now rap"],
2674 }, 2674 },
2675 { 2675 {
2676 name: "widows", 2676 name: "widows",
2677 api_class: "CSSPropertyAPIFragmentation", 2677 api_class: "CSSPropertyAPIFragmentation",
2678 api_methods: ["parseSingleValue"], 2678 api_methods: ["parseSingleValue"],
2679 inherited: true, 2679 inherited: true,
2680 interpolable: true, 2680 interpolable: true,
2681 field_template: "storage_only", 2681 field_template: "primitive",
2682 type_name: "short", 2682 type_name: "short",
2683 default_value: "2", 2683 default_value: "2",
2684 field_group: "rare-inherited", 2684 field_group: "rare-inherited",
2685 }, 2685 },
2686 { 2686 {
2687 name: "width", 2687 name: "width",
2688 api_class: "CSSPropertyAPIWidthOrHeight", 2688 api_class: "CSSPropertyAPIWidthOrHeight",
2689 converter: "ConvertLengthSizing", 2689 converter: "ConvertLengthSizing",
2690 is_descriptor: true, 2690 is_descriptor: true,
2691 interpolable: true, 2691 interpolable: true,
(...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after
3488 { 3488 {
3489 name: "-webkit-transition-timing-function", 3489 name: "-webkit-transition-timing-function",
3490 alias_for: "transition-timing-function", 3490 alias_for: "transition-timing-function",
3491 }, 3491 },
3492 { 3492 {
3493 name: "-webkit-user-select", 3493 name: "-webkit-user-select",
3494 alias_for: "user-select", 3494 alias_for: "user-select",
3495 }, 3495 },
3496 ], 3496 ],
3497 } 3497 }
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/style/ComputedStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698