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

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

Issue 2904403002: Generate methods for TextEmphasis properties in ComputedStyleBase. (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
OLDNEW
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 true, we do not include this field in ComputedStyleBase::InheritFrom 6 // If true, we do not include this field in ComputedStyleBase::InheritFrom
7 // and ComputedStyleBase::CopyNonInheritedFromCached. 7 // and ComputedStyleBase::CopyNonInheritedFromCached.
8 custom_copy: { 8 custom_copy: {
9 default: false, 9 default: false,
10 }, 10 },
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 inherited: true, 422 inherited: true,
423 field_template: "storage_only", 423 field_template: "storage_only",
424 type_name: "bool", 424 type_name: "bool",
425 default_value: "true", 425 default_value: "true",
426 field_size: 1, 426 field_size: 1,
427 field_group: "rare-inherited", 427 field_group: "rare-inherited",
428 }, 428 },
429 { 429 {
430 name: "TextEmphasisFill", 430 name: "TextEmphasisFill",
431 inherited: true, 431 inherited: true,
432 field_template: "storage_only", 432 field_template: "keyword",
433 type_name: "TextEmphasisFill", 433 type_name: "TextEmphasisFill",
434 default_value: "TextEmphasisFill::kFilled", 434 default_value: "filled",
435 field_size: 1, 435 keywords: ["filled", "open"],
436 field_group: "rare-inherited", 436 field_group: "rare-inherited",
437 }, 437 },
438 { 438 {
439 name: "TextEmphasisMark", 439 name: "TextEmphasisMark",
440 inherited: true, 440 inherited: true,
441 field_template: "storage_only", 441 field_template: "storage_only",
442 type_name: "TextEmphasisMark", 442 type_name: "TextEmphasisMark",
443 default_value: "TextEmphasisMark::kNone", 443 default_value: "TextEmphasisMark::kNone",
444 field_size: 3, 444 field_size: 3,
445 field_group: "rare-inherited", 445 field_group: "rare-inherited",
446 }, 446 },
447 { 447 {
448 name: "TextEmphasisPosition",
449 inherited: true,
450 field_template: "storage_only",
451 type_name: "TextEmphasisPosition",
452 default_value: "TextEmphasisPosition::kOver",
453 field_size: 1,
454 field_group: "rare-inherited",
455 },
456 {
457 name: "TextIndentLine", 448 name: "TextIndentLine",
458 inherited: true, 449 inherited: true,
459 field_template: "keyword", 450 field_template: "keyword",
460 type_name: "TextIndentLine", 451 type_name: "TextIndentLine",
461 keywords: ["first-line", "each-line"], 452 keywords: ["first-line", "each-line"],
462 default_value: "first-line", 453 default_value: "first-line",
463 field_group: "rare-inherited", 454 field_group: "rare-inherited",
464 }, 455 },
465 { 456 {
466 name: "TextIndentType", 457 name: "TextIndentType",
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 name: "HyphenationLimitLines", 522 name: "HyphenationLimitLines",
532 inherited: true, 523 inherited: true,
533 field_template: "storage_only", 524 field_template: "storage_only",
534 type_name: "short", 525 type_name: "short",
535 default_value: "-1", 526 default_value: "-1",
536 field_group: "rare-inherited", 527 field_group: "rare-inherited",
537 }, 528 },
538 { 529 {
539 name: "TextEmphasisCustomMark", 530 name: "TextEmphasisCustomMark",
540 inherited: true, 531 inherited: true,
541 field_template: "storage_only", 532 field_template: "external",
542 type_name: "AtomicString", 533 type_name: "AtomicString",
543 include_paths: ["platform/wtf/text/AtomicString.h"], 534 include_paths: ["platform/wtf/text/AtomicString.h"],
544 default_value: "AtomicString()", 535 default_value: "AtomicString()",
545 field_group: "rare-inherited", 536 field_group: "rare-inherited",
546 }, 537 },
547 { 538 {
548 name: "AppliedTextDecorations", 539 name: "AppliedTextDecorations",
549 inherited: true, 540 inherited: true,
550 field_template: "storage_only", 541 field_template: "storage_only",
551 type_name: "AppliedTextDecorationList", 542 type_name: "AppliedTextDecorationList",
552 include_paths: ["core/style/AppliedTextDecorationList.h"], 543 include_paths: ["core/style/AppliedTextDecorationList.h"],
553 default_value: "nullptr", 544 default_value: "nullptr",
554 wrapper_pointer_name: "RefPtr", 545 wrapper_pointer_name: "RefPtr",
555 field_group: "rare-inherited", 546 field_group: "rare-inherited",
556 }, 547 },
557 { 548 {
558 name: "Variables", 549 name: "Variables",
559 inherited: true, 550 inherited: true,
560 field_template: "storage_only", 551 field_template: "storage_only",
561 type_name: "StyleInheritedVariables", 552 type_name: "StyleInheritedVariables",
562 include_paths: ["core/style/StyleInheritedVariables.h"], 553 include_paths: ["core/style/StyleInheritedVariables.h"],
563 default_value: "nullptr", 554 default_value: "nullptr",
564 wrapper_pointer_name: "RefPtr", 555 wrapper_pointer_name: "RefPtr",
565 field_group: "rare-inherited", 556 field_group: "rare-inherited",
566 }, 557 },
567 ], 558 ],
568 } 559 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSProperties.json5 ('k') | third_party/WebKit/Source/core/style/ComputedStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698