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

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

Issue 2844183002: Generate StyleBoxData in ComputedStyleBase. (Closed)
Patch Set: Rebase 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/ComputedStyleExtraFields.json5 » ('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 1204 matching lines...) Expand 10 before | Expand all | Expand 10 after
1215 }, 1215 },
1216 { 1216 {
1217 name: "height", 1217 name: "height",
1218 api_class: "CSSPropertyAPIWidthOrHeight", 1218 api_class: "CSSPropertyAPIWidthOrHeight",
1219 converter: "ConvertLengthSizing", 1219 converter: "ConvertLengthSizing",
1220 is_descriptor: true, 1220 is_descriptor: true,
1221 interpolable: true, 1221 interpolable: true,
1222 keywords: ["auto", "fit-content", "min-content", "max-content"], 1222 keywords: ["auto", "fit-content", "min-content", "max-content"],
1223 supports_percentage: true, 1223 supports_percentage: true,
1224 typedom_types: ["Length"], 1224 typedom_types: ["Length"],
1225 field_template: "storage_only",
1226 field_type_path: "platform/Length",
1227 field_group: "box",
1228 default_value: "Length()",
1225 }, 1229 },
1226 { 1230 {
1227 name: "hyphens", 1231 name: "hyphens",
1228 inherited: true, 1232 inherited: true,
1229 runtime_flag: "CSSHyphens", 1233 runtime_flag: "CSSHyphens",
1230 type_name: "Hyphens", 1234 type_name: "Hyphens",
1231 }, 1235 },
1232 { 1236 {
1233 name: "image-rendering", 1237 name: "image-rendering",
1234 inherited: true, 1238 inherited: true,
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
1422 }, 1426 },
1423 { 1427 {
1424 name: "mask-type", 1428 name: "mask-type",
1425 svg: true, 1429 svg: true,
1426 }, 1430 },
1427 { 1431 {
1428 name: "max-height", 1432 name: "max-height",
1429 converter: "ConvertLengthMaxSizing", 1433 converter: "ConvertLengthMaxSizing",
1430 is_descriptor: true, 1434 is_descriptor: true,
1431 interpolable: true, 1435 interpolable: true,
1436 field_template: "storage_only",
1437 field_type_path: "platform/Length",
1438 field_group: "box",
1439 default_value: "Length(kMaxSizeNone)",
1432 }, 1440 },
1433 { 1441 {
1434 name: "max-width", 1442 name: "max-width",
1435 converter: "ConvertLengthMaxSizing", 1443 converter: "ConvertLengthMaxSizing",
1436 is_descriptor: true, 1444 is_descriptor: true,
1437 interpolable: true, 1445 interpolable: true,
1446 field_template: "storage_only",
1447 field_type_path: "platform/Length",
1448 field_group: "box",
1449 default_value: "Length(kMaxSizeNone)",
1438 }, 1450 },
1439 { 1451 {
1440 name: "min-height", 1452 name: "min-height",
1441 api_class: "CSSPropertyAPIWidthOrHeight", 1453 api_class: "CSSPropertyAPIWidthOrHeight",
1442 converter: "ConvertLengthSizing", 1454 converter: "ConvertLengthSizing",
1443 is_descriptor: true, 1455 is_descriptor: true,
1444 interpolable: true, 1456 interpolable: true,
1457 field_template: "storage_only",
1458 field_type_path: "platform/Length",
1459 field_group: "box",
1460 default_value: "Length()",
1445 }, 1461 },
1446 { 1462 {
1447 name: "min-width", 1463 name: "min-width",
1448 api_class: "CSSPropertyAPIWidthOrHeight", 1464 api_class: "CSSPropertyAPIWidthOrHeight",
1449 converter: "ConvertLengthSizing", 1465 converter: "ConvertLengthSizing",
1450 is_descriptor: true, 1466 is_descriptor: true,
1451 interpolable: true, 1467 interpolable: true,
1468 field_template: "storage_only",
1469 field_type_path: "platform/Length",
1470 field_group: "box",
1471 default_value: "Length()",
1452 }, 1472 },
1453 { 1473 {
1454 name: "mix-blend-mode", 1474 name: "mix-blend-mode",
1455 name_for_methods: "BlendMode", 1475 name_for_methods: "BlendMode",
1456 type_name: "blink::WebBlendMode", 1476 type_name: "blink::WebBlendMode",
1457 }, 1477 },
1458 { 1478 {
1459 name: "object-fit", 1479 name: "object-fit",
1460 type_name: "ObjectFit", 1480 type_name: "ObjectFit",
1461 }, 1481 },
(...skipping 1027 matching lines...) Expand 10 before | Expand all | Expand 10 after
2489 }, 2509 },
2490 { 2510 {
2491 name: "width", 2511 name: "width",
2492 api_class: "CSSPropertyAPIWidthOrHeight", 2512 api_class: "CSSPropertyAPIWidthOrHeight",
2493 converter: "ConvertLengthSizing", 2513 converter: "ConvertLengthSizing",
2494 is_descriptor: true, 2514 is_descriptor: true,
2495 interpolable: true, 2515 interpolable: true,
2496 keywords: ["auto", "fit-content", "min-content", "max-content"], 2516 keywords: ["auto", "fit-content", "min-content", "max-content"],
2497 supports_percentage: true, 2517 supports_percentage: true,
2498 typedom_types: ["Length"], 2518 typedom_types: ["Length"],
2519 field_template: "storage_only",
2520 field_type_path: "platform/Length",
2521 field_group: "box",
2522 default_value: "Length()"
2499 }, 2523 },
2500 { 2524 {
2501 name: "will-change", 2525 name: "will-change",
2502 api_class: true, 2526 api_class: true,
2503 api_methods: ["parseSingleValue"], 2527 api_methods: ["parseSingleValue"],
2504 custom_all: true, 2528 custom_all: true,
2505 }, 2529 },
2506 { 2530 {
2507 name: "word-break", 2531 name: "word-break",
2508 inherited: true, 2532 inherited: true,
(...skipping 13 matching lines...) Expand all
2522 inherited: true, 2546 inherited: true,
2523 name_for_methods: "OverflowWrap", 2547 name_for_methods: "OverflowWrap",
2524 }, 2548 },
2525 { 2549 {
2526 name: "z-index", 2550 name: "z-index",
2527 api_class: true, 2551 api_class: true,
2528 api_methods: ["parseSingleValue"], 2552 api_methods: ["parseSingleValue"],
2529 custom_all: true, 2553 custom_all: true,
2530 interpolable: true, 2554 interpolable: true,
2531 type_name: "int", 2555 type_name: "int",
2556 field_template: "storage_only",
2557 field_group: "box",
2558 default_value: "0"
2532 }, 2559 },
2533 2560
2534 // CSS logical props 2561 // CSS logical props
2535 { 2562 {
2536 name: "inline-size", 2563 name: "inline-size",
2537 direction_aware: true, 2564 direction_aware: true,
2538 }, 2565 },
2539 { 2566 {
2540 name: "block-size", 2567 name: "block-size",
2541 direction_aware: true, 2568 direction_aware: true,
(...skipping 739 matching lines...) Expand 10 before | Expand all | Expand 10 after
3281 { 3308 {
3282 name: "-webkit-transition-timing-function", 3309 name: "-webkit-transition-timing-function",
3283 alias_for: "transition-timing-function", 3310 alias_for: "transition-timing-function",
3284 }, 3311 },
3285 { 3312 {
3286 name: "-webkit-user-select", 3313 name: "-webkit-user-select",
3287 alias_for: "user-select", 3314 alias_for: "user-select",
3288 }, 3315 },
3289 ], 3316 ],
3290 } 3317 }
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/ComputedStyleExtraFields.json5 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698