| OLD | NEW |
| 1 { | 1 { |
| 2 // This file specifies fields in ComputedStyle that we would like to | 2 // This file specifies fields in ComputedStyle that we would like to |
| 3 // generate, but are not CSS properties. | 3 // generate, but are not CSS properties. |
| 4 | 4 |
| 5 parameters: { | 5 parameters: { |
| 6 // If the field has_custom_compare_and_copy, then it does not appear in | 6 // If the field has_custom_compare_and_copy, then it does not appear in |
| 7 // ComputedStyle::operator== and ComputedStyle::CopyNonInheritedFromCached. | 7 // ComputedStyle::operator== and ComputedStyle::CopyNonInheritedFromCached. |
| 8 has_custom_compare_and_copy: { | 8 has_custom_compare_and_copy: { |
| 9 default: false, | 9 default: false, |
| 10 }, | 10 }, |
| 11 | 11 |
| 12 // The rest is the same as CSSProperties.json5, but the only relevant ones i
n | 12 // The rest is the same as CSSProperties.json5, but the only relevant ones i
n |
| 13 // this file are: | 13 // this file are: |
| 14 // name, field_template, field_type_path, default_value, type_name, keyword, | 14 // name, field_template, field_type_path, default_value, type_name, keyword, |
| 15 // inherited | 15 // inherited |
| 16 }, | 16 }, |
| 17 | 17 |
| 18 data: [ | 18 data: [ |
| 19 { | 19 { |
| 20 name: "IsLink", | 20 name: "IsLink", |
| 21 field_template: "monotonic_flag", | 21 field_template: "monotonic_flag", |
| 22 default_value: "false", | 22 default_value: "false", |
| 23 has_custom_compare_and_copy: true, | 23 has_custom_compare_and_copy: true, |
| 24 }, | 24 }, |
| 25 { | 25 { |
| 26 name: "BorderLeftColorIsCurrentColor", |
| 27 field_template: "primitive", |
| 28 default_value: "true", |
| 29 type_name: "bool", |
| 30 field_group: "surround", |
| 31 }, |
| 32 { |
| 33 name: "BorderRightColorIsCurrentColor", |
| 34 field_template: "primitive", |
| 35 default_value: "true", |
| 36 type_name: "bool", |
| 37 field_group: "surround", |
| 38 }, |
| 39 { |
| 40 name: "BorderTopColorIsCurrentColor", |
| 41 field_template: "primitive", |
| 42 default_value: "true", |
| 43 type_name: "bool", |
| 44 field_group: "surround", |
| 45 }, |
| 46 { |
| 47 name: "BorderBottomColorIsCurrentColor", |
| 48 field_template: "primitive", |
| 49 default_value: "true", |
| 50 type_name: "bool", |
| 51 field_group: "surround", |
| 52 }, |
| 53 { |
| 26 name: "OriginalDisplay", | 54 name: "OriginalDisplay", |
| 27 field_template: "keyword", | 55 field_template: "keyword", |
| 28 default_value: "inline", | 56 default_value: "inline", |
| 29 type_name: "EDisplay", | 57 type_name: "EDisplay", |
| 30 keywords: [ | 58 keywords: [ |
| 31 "inline", "block", "list-item", "inline-block", "table", "inline-table
", "table-row-group", "table-header-group", | 59 "inline", "block", "list-item", "inline-block", "table", "inline-table
", "table-row-group", "table-header-group", |
| 32 "table-footer-group", "table-row", "table-column-group", "table-column
", "table-cell", "table-caption", "-webkit-box", | 60 "table-footer-group", "table-row", "table-column-group", "table-column
", "table-cell", "table-caption", "-webkit-box", |
| 33 "-webkit-inline-box", "flex", "inline-flex", "grid", "inline-grid", "c
ontents", "flow-root", "none", | 61 "-webkit-inline-box", "flex", "inline-flex", "grid", "inline-grid", "c
ontents", "flow-root", "none", |
| 34 ], | 62 ], |
| 35 }, | 63 }, |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 }, | 198 }, |
| 171 { | 199 { |
| 172 name: "BackgroundColor", | 200 name: "BackgroundColor", |
| 173 field_template: "storage_only", | 201 field_template: "storage_only", |
| 174 field_type_path: "core/css/StyleColor", | 202 field_type_path: "core/css/StyleColor", |
| 175 default_value: "Color::kTransparent", | 203 default_value: "Color::kTransparent", |
| 176 field_group: "background", | 204 field_group: "background", |
| 177 }, | 205 }, |
| 178 ], | 206 ], |
| 179 } | 207 } |
| OLD | NEW |