| 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, include_paths, 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 }, |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 name: "VerticalAlign", | 179 name: "VerticalAlign", |
| 180 field_template: "storage_only", | 180 field_template: "storage_only", |
| 181 field_size: 4, | 181 field_size: 4, |
| 182 default_value: "EVerticalAlign::kBaseline", | 182 default_value: "EVerticalAlign::kBaseline", |
| 183 type_name: "EVerticalAlign", | 183 type_name: "EVerticalAlign", |
| 184 }, | 184 }, |
| 185 { | 185 { |
| 186 name: "VerticalAlignLength", | 186 name: "VerticalAlignLength", |
| 187 field_template: "storage_only", | 187 field_template: "storage_only", |
| 188 default_value: "Length()", | 188 default_value: "Length()", |
| 189 field_type_path: "platform/Length", | 189 include_paths: ["platform/Length.h"], |
| 190 type_name: "Length", |
| 190 field_group: "box", | 191 field_group: "box", |
| 191 }, | 192 }, |
| 192 { | 193 { |
| 193 name: "border-image", | 194 name: "border-image", |
| 194 field_template: "external", | 195 field_template: "external", |
| 195 field_type_path: "core/style/NinePieceImage", | 196 include_paths: ["core/style/NinePieceImage.h"], |
| 197 type_name: "NinePieceImage", |
| 196 field_group: "surround", | 198 field_group: "surround", |
| 197 default_value: "NinePieceImage()", | 199 default_value: "NinePieceImage()", |
| 198 }, | 200 }, |
| 199 { | 201 { |
| 200 name: "Background", | 202 name: "Background", |
| 201 field_template: "storage_only", | 203 field_template: "storage_only", |
| 202 field_type_path: "core/style/FillLayer", | 204 include_paths: ["core/style/FillLayer.h"], |
| 205 type_name: "FillLayer", |
| 203 default_value: "FillLayer(kBackgroundFillLayer, true)", | 206 default_value: "FillLayer(kBackgroundFillLayer, true)", |
| 204 field_group: "background", | 207 field_group: "background", |
| 205 }, | 208 }, |
| 206 { | 209 { |
| 207 name: "BackgroundColor", | 210 name: "BackgroundColor", |
| 208 field_template: "storage_only", | 211 field_template: "storage_only", |
| 209 field_type_path: "core/css/StyleColor", | 212 include_paths: ["core/css/StyleColor.h"], |
| 213 type_name: "StyleColor", |
| 210 default_value: "Color::kTransparent", | 214 default_value: "Color::kTransparent", |
| 211 field_group: "background", | 215 field_group: "background", |
| 212 }, | 216 }, |
| 213 { | 217 { |
| 214 name: "TextDecoration", | 218 name: "TextDecoration", |
| 215 field_template: "storage_only", | 219 field_template: "storage_only", |
| 216 type_name: "TextDecoration", | 220 type_name: "TextDecoration", |
| 217 field_size: 4, | 221 field_size: 4, |
| 218 default_value: "TextDecoration::kNone", | 222 default_value: "TextDecoration::kNone", |
| 219 field_group: "visual", | 223 field_group: "visual", |
| (...skipping 10 matching lines...) Expand all Loading... |
| 230 name: "HasAutoZIndex", | 234 name: "HasAutoZIndex", |
| 231 field_template: "storage_only", | 235 field_template: "storage_only", |
| 232 type_name: "bool", | 236 type_name: "bool", |
| 233 field_size: 1, | 237 field_size: 1, |
| 234 field_group: "box", | 238 field_group: "box", |
| 235 default_value: "true", | 239 default_value: "true", |
| 236 }, | 240 }, |
| 237 { | 241 { |
| 238 name: "font", | 242 name: "font", |
| 239 field_template: "storage_only", | 243 field_template: "storage_only", |
| 240 field_type_path: "platform/fonts/Font", | 244 include_paths: ["platform/fonts/Font.h"], |
| 245 type_name: "Font", |
| 241 field_group: "inherited", | 246 field_group: "inherited", |
| 242 inherited: true, | 247 inherited: true, |
| 243 default_value: "Font()", | 248 default_value: "Font()", |
| 244 }, | 249 }, |
| 245 { | 250 { |
| 246 name: "color", | 251 name: "color", |
| 247 inherited: true, | 252 inherited: true, |
| 248 field_template: "storage_only", | 253 field_template: "storage_only", |
| 249 field_type_path: "platform/graphics/Color", | 254 include_paths: ["platform/graphics/Color.h"], |
| 255 type_name: "Color", |
| 250 field_group: "inherited", | 256 field_group: "inherited", |
| 251 default_value: "Color::kBlack", | 257 default_value: "Color::kBlack", |
| 252 }, | 258 }, |
| 253 { | 259 { |
| 254 name: "VisitedLinkColor", | 260 name: "VisitedLinkColor", |
| 255 inherited: true, | 261 inherited: true, |
| 256 field_template: "external", | 262 field_template: "external", |
| 257 field_type_path: "platform/graphics/Color", | 263 include_paths: ["platform/graphics/Color.h"], |
| 264 type_name: "Color", |
| 258 field_group: "inherited", | 265 field_group: "inherited", |
| 259 default_value: "Color::kBlack", | 266 default_value: "Color::kBlack", |
| 260 }, | 267 }, |
| 261 { | 268 { |
| 262 name: "TextAutosizingMultiplier", | 269 name: "TextAutosizingMultiplier", |
| 263 inherited: true, | 270 inherited: true, |
| 264 field_template: "storage_only", | 271 field_template: "storage_only", |
| 265 type_name: "float", | 272 type_name: "float", |
| 266 field_group: "inherited", | 273 field_group: "inherited", |
| 267 default_value: "1.0", | 274 default_value: "1.0", |
| 268 }, | 275 }, |
| 269 ], | 276 ], |
| 270 } | 277 } |
| OLD | NEW |