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 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 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 { | 547 { |
548 name: "InheritedVariables", | 548 name: "InheritedVariables", |
549 inherited: true, | 549 inherited: true, |
550 field_template: "storage_only", | 550 field_template: "storage_only", |
551 type_name: "StyleInheritedVariables", | 551 type_name: "StyleInheritedVariables", |
552 include_paths: ["core/style/StyleInheritedVariables.h"], | 552 include_paths: ["core/style/StyleInheritedVariables.h"], |
553 default_value: "nullptr", | 553 default_value: "nullptr", |
554 wrapper_pointer_name: "RefPtr", | 554 wrapper_pointer_name: "RefPtr", |
555 field_group: "rare-inherited", | 555 field_group: "rare-inherited", |
556 }, | 556 }, |
| 557 { |
| 558 name: "DraggableRegionMode", |
| 559 field_template: "storage_only", |
| 560 type_name: "DraggableRegionMode", |
| 561 field_group: "rare-non-inherited", |
| 562 default_value: "kDraggableRegionNone", |
| 563 field_size: 2, |
| 564 }, |
| 565 { |
| 566 name: "Mask", |
| 567 field_template: "storage_only", |
| 568 type_name: "FillLayer", |
| 569 field_group: "rare-non-inherited", |
| 570 default_value: "FillLayer(kMaskFillLayer, true)", |
| 571 }, |
| 572 { |
| 573 name: "Filter", |
| 574 field_template: "storage_only", |
| 575 type_name: "StyleFilterData", |
| 576 field_group: "rare-non-inherited", |
| 577 default_value: "", |
| 578 wrapper_pointer_name: "DataPersistent", |
| 579 include_paths: ["core/style/StyleFilterData.h"], |
| 580 }, |
| 581 { |
| 582 name: "BackdropFilter", |
| 583 field_template: "storage_only", |
| 584 type_name: "StyleFilterData", |
| 585 field_group: "rare-non-inherited", |
| 586 default_value: "", |
| 587 wrapper_pointer_name: "DataPersistent", |
| 588 include_paths: ["core/style/StyleFilterData.h"], |
| 589 }, |
| 590 { |
| 591 name: "CounterDirectives", |
| 592 field_template: "storage_only", |
| 593 type_name: "CounterDirectiveMap", |
| 594 field_group: "rare-non-inherited", |
| 595 default_value: "nullptr", |
| 596 wrapper_pointer_name: "std::unique_ptr", |
| 597 include_paths: ["core/style/CounterDirectives.h"], |
| 598 }, |
| 599 { |
| 600 name: "Animations", |
| 601 field_template: "storage_only", |
| 602 type_name: "CSSAnimationData", |
| 603 field_group: "rare-non-inherited", |
| 604 default_value: "nullptr", |
| 605 wrapper_pointer_name: "std::unique_ptr", |
| 606 include_paths: ["core/animation/css/CSSAnimationData.h"], |
| 607 }, |
| 608 { |
| 609 name: "Transitions", |
| 610 field_template: "storage_only", |
| 611 type_name: "CSSTransitionData", |
| 612 field_group: "rare-non-inherited", |
| 613 default_value: "nullptr", |
| 614 wrapper_pointer_name: "std::unique_ptr", |
| 615 include_paths: ["core/animation/css/CSSTransitionData.h"], |
| 616 }, |
| 617 { |
| 618 name: "MaskBoxImage", |
| 619 field_template: "storage_only", |
| 620 type_name: "NinePieceImage", |
| 621 field_group: "rare-non-inherited", |
| 622 default_value: "NinePieceImage::MaskDefaults()", |
| 623 include_paths: ["core/style/NinePieceImage.h"], |
| 624 }, |
| 625 { |
| 626 name: "PageSize", |
| 627 field_template: "storage_only", |
| 628 type_name: "FloatSize", |
| 629 field_group: "rare-non-inherited", |
| 630 default_value: "FloatSize()", |
| 631 include_paths: ["platform/geometry/FloatSize.h"], |
| 632 }, |
| 633 { |
| 634 name: "Outline", |
| 635 field_template: "storage_only", |
| 636 type_name: "OutlineValue", |
| 637 include_paths: ["core/style/OutlineValue.h"], |
| 638 field_group: "rare-non-inherited", |
| 639 default_value: "OutlineValue()", |
| 640 include_paths: ["core/style/OutlineValue.h"], |
| 641 }, |
| 642 { |
| 643 name: "VisitedLinkTextDecorationColor", |
| 644 field_template: "storage_only", |
| 645 type_name: "StyleColor", |
| 646 field_group: "rare-non-inherited", |
| 647 default_value: "StyleColor::CurrentColor()", |
| 648 }, |
| 649 { |
| 650 name: "VisitedLinkBackgroundColor", |
| 651 field_template: "storage_only", |
| 652 type_name: "StyleColor", |
| 653 field_group: "rare-non-inherited", |
| 654 default_value: "Color::kTransparent", |
| 655 }, |
| 656 { |
| 657 name: "VisitedLinkOutlineColor", |
| 658 field_template: "storage_only", |
| 659 type_name: "StyleColor", |
| 660 field_group: "rare-non-inherited", |
| 661 default_value: "StyleColor::CurrentColor()", |
| 662 }, |
| 663 { |
| 664 name: "VisitedLinkBorderLeftColor", |
| 665 field_template: "storage_only", |
| 666 type_name: "StyleColor", |
| 667 field_group: "rare-non-inherited", |
| 668 default_value: "StyleColor::CurrentColor()", |
| 669 }, |
| 670 { |
| 671 name: "VisitedLinkBorderRightColor", |
| 672 field_template: "storage_only", |
| 673 type_name: "StyleColor", |
| 674 field_group: "rare-non-inherited", |
| 675 default_value: "StyleColor::CurrentColor()", |
| 676 }, |
| 677 { |
| 678 name: "VisitedLinkBorderTopColor", |
| 679 field_template: "storage_only", |
| 680 type_name: "StyleColor", |
| 681 field_group: "rare-non-inherited", |
| 682 default_value: "StyleColor::CurrentColor()", |
| 683 }, |
| 684 { |
| 685 name: "VisitedLinkBorderBottomColor", |
| 686 field_template: "storage_only", |
| 687 type_name: "StyleColor", |
| 688 field_group: "rare-non-inherited", |
| 689 default_value: "StyleColor::CurrentColor()", |
| 690 }, |
| 691 { |
| 692 name: "CallbackSelectors", |
| 693 field_template: "storage_only", |
| 694 type_name: "Vector<String>", |
| 695 field_group: "rare-non-inherited", |
| 696 default_value: "Vector<String>()", |
| 697 include_paths: ["platform/wtf/Vector.h", "platform/wtf/text/WTFString.h"], |
| 698 }, |
| 699 { |
| 700 name: "PaintImages", |
| 701 field_template: "storage_only", |
| 702 type_name: "PaintImages", |
| 703 field_group: "rare-non-inherited", |
| 704 default_value: "nullptr", |
| 705 wrapper_pointer_name: "std::unique_ptr", |
| 706 custom_compare: true, |
| 707 include_paths: ["core/style/PaintImages.h"], |
| 708 }, |
| 709 { |
| 710 name: "NonInheritedVariables", |
| 711 field_template: "storage_only", |
| 712 type_name: "StyleNonInheritedVariables", |
| 713 field_group: "rare-non-inherited", |
| 714 default_value: "nullptr", |
| 715 wrapper_pointer_name: "std::unique_ptr", |
| 716 include_paths: ["core/style/StyleNonInheritedVariables.h"], |
| 717 }, |
| 718 { |
| 719 name: "PageSizeType", |
| 720 field_template: "storage_only", |
| 721 type_name: "PageSizeType", |
| 722 field_group: "rare-non-inherited", |
| 723 default_value: "PageSizeType::kAuto", |
| 724 field_size: 2, |
| 725 }, |
| 726 { |
| 727 name: "HasCurrentOpacityAnimation", |
| 728 field_template: "storage_only", |
| 729 type_name: "bool", |
| 730 field_group: "rare-non-inherited", |
| 731 field_size: 1, |
| 732 default_value: "false", |
| 733 }, |
| 734 { |
| 735 name: "HasCurrentTransformAnimation", |
| 736 field_template: "storage_only", |
| 737 type_name: "bool", |
| 738 field_group: "rare-non-inherited", |
| 739 field_size: 1, |
| 740 default_value: "false", |
| 741 }, |
| 742 { |
| 743 name: "HasCurrentFilterAnimation", |
| 744 field_template: "storage_only", |
| 745 type_name: "bool", |
| 746 field_group: "rare-non-inherited", |
| 747 field_size: 1, |
| 748 default_value: "false", |
| 749 }, |
| 750 { |
| 751 name: "HasCurrentBackdropFilterAnimation", |
| 752 field_template: "storage_only", |
| 753 type_name: "bool", |
| 754 field_group: "rare-non-inherited", |
| 755 field_size: 1, |
| 756 default_value: "false", |
| 757 }, |
| 758 { |
| 759 name: "RunningOpacityAnimationOnCompositor", |
| 760 field_template: "storage_only", |
| 761 type_name: "bool", |
| 762 field_group: "rare-non-inherited", |
| 763 field_size: 1, |
| 764 custom_compare: true, |
| 765 default_value: "false", |
| 766 }, |
| 767 { |
| 768 name: "RunningTransformAnimationOnCompositor", |
| 769 field_template: "storage_only", |
| 770 type_name: "bool", |
| 771 field_group: "rare-non-inherited", |
| 772 field_size: 1, |
| 773 custom_compare: true, |
| 774 default_value: "false", |
| 775 }, |
| 776 { |
| 777 name: "RunningFilterAnimationOnCompositor", |
| 778 field_template: "storage_only", |
| 779 type_name: "bool", |
| 780 field_group: "rare-non-inherited", |
| 781 field_size: 1, |
| 782 custom_compare: true, |
| 783 default_value: "false", |
| 784 }, |
| 785 { |
| 786 name: "RunningBackdropFilterAnimationOnCompositor", |
| 787 field_template: "storage_only", |
| 788 type_name: "bool", |
| 789 field_group: "rare-non-inherited", |
| 790 field_size: 1, |
| 791 custom_compare: true, |
| 792 default_value: "false", |
| 793 }, |
| 794 { |
| 795 name: "IsStackingContext", |
| 796 field_template: "storage_only", |
| 797 type_name: "bool", |
| 798 field_group: "rare-non-inherited", |
| 799 field_size: 1, |
| 800 default_value: "false", |
| 801 }, |
| 802 // TODO(shend): Is this the same as mix-blend-mode? |
| 803 { |
| 804 name: "EffectiveBlendMode", |
| 805 type_name: "WebBlendMode", |
| 806 field_template: "storage_only", |
| 807 field_group: "rare-non-inherited", |
| 808 field_size: 5, |
| 809 default_value: "false", |
| 810 include_paths: ["public/platform/WebBlendMode.h"], |
| 811 }, |
| 812 // Plugins require accelerated compositing for reasons external to blink. |
| 813 // In which case, we need to update the ComputedStyle on the |
| 814 // LayoutEmbeddedObject, so store this bit so that the style actually change
s |
| 815 // when the plugin becomes composited. |
| 816 { |
| 817 name: "RequiresAcceleratedCompositingForExternalReasons", |
| 818 field_template: "storage_only", |
| 819 type_name: "bool", |
| 820 field_group: "rare-non-inherited", |
| 821 field_size: 1, |
| 822 default_value: "false", |
| 823 }, |
| 824 { |
| 825 name: "HasInlineTransform", |
| 826 field_template: "storage_only", |
| 827 type_name: "bool", |
| 828 field_group: "rare-non-inherited", |
| 829 field_size: 1, |
| 830 default_value: "false", |
| 831 }, |
| 832 { |
| 833 name: "HasCompositorProxy", |
| 834 field_template: "storage_only", |
| 835 type_name: "bool", |
| 836 field_group: "rare-non-inherited", |
| 837 field_size: 1, |
| 838 default_value: "false", |
| 839 }, |
| 840 // Style adjustment for appearance is disabled when certain properties are s
et. |
| 841 { |
| 842 name: "HasAuthorBackground", |
| 843 field_template: "storage_only", |
| 844 type_name: "bool", |
| 845 field_group: "rare-non-inherited", |
| 846 field_size: 1, |
| 847 default_value: "false", |
| 848 }, |
| 849 { |
| 850 name: "HasAuthorBorder", |
| 851 field_template: "storage_only", |
| 852 type_name: "bool", |
| 853 field_group: "rare-non-inherited", |
| 854 field_size: 1, |
| 855 default_value: "false", |
| 856 }, |
| 857 // TODO(shend): These are subgroups and should be removed when we can |
| 858 // generate them propertly. |
| 859 { |
| 860 name: "DeprecatedFlexibleBoxData", |
| 861 field_template: "storage_only", |
| 862 type_name: "StyleDeprecatedFlexibleBoxData", |
| 863 field_group: "rare-non-inherited", |
| 864 default_value: "", |
| 865 wrapper_pointer_name: "DataRef", |
| 866 include_paths: ["core/style/StyleDeprecatedFlexibleBoxData.h"], |
| 867 }, |
| 868 { |
| 869 name: "FlexibleBoxData", |
| 870 field_template: "storage_only", |
| 871 type_name: "StyleFlexibleBoxData", |
| 872 field_group: "rare-non-inherited", |
| 873 default_value: "", |
| 874 wrapper_pointer_name: "DataRef", |
| 875 include_paths: ["core/style/StyleFlexibleBoxData.h"], |
| 876 }, |
| 877 { |
| 878 name: "MultiColData", |
| 879 field_template: "storage_only", |
| 880 type_name: "StyleMultiColData", |
| 881 field_group: "rare-non-inherited", |
| 882 default_value: "", |
| 883 wrapper_pointer_name: "DataRef", |
| 884 include_paths: ["core/style/StyleMultiColData.h"], |
| 885 }, |
| 886 { |
| 887 name: "TransformData", |
| 888 field_template: "storage_only", |
| 889 type_name: "StyleTransformData", |
| 890 field_group: "rare-non-inherited", |
| 891 default_value: "", |
| 892 wrapper_pointer_name: "DataRef", |
| 893 include_paths: ["core/style/StyleTransformData.h"], |
| 894 }, |
| 895 { |
| 896 name: "WillChangeData", |
| 897 field_template: "storage_only", |
| 898 type_name: "StyleWillChangeData", |
| 899 field_group: "rare-non-inherited", |
| 900 default_value: "", |
| 901 wrapper_pointer_name: "DataRef", |
| 902 include_paths: ["core/style/StyleWillChangeData.h"], |
| 903 }, |
| 904 { |
| 905 name: "GridData", |
| 906 field_template: "storage_only", |
| 907 type_name: "StyleGridData", |
| 908 field_group: "rare-non-inherited", |
| 909 default_value: "", |
| 910 wrapper_pointer_name: "DataRef", |
| 911 include_paths: ["core/style/StyleGridData.h"], |
| 912 }, |
| 913 { |
| 914 name: "GridItemData", |
| 915 field_template: "storage_only", |
| 916 type_name: "StyleGridItemData", |
| 917 field_group: "rare-non-inherited", |
| 918 default_value: "", |
| 919 wrapper_pointer_name: "DataRef", |
| 920 include_paths: ["core/style/StyleGridItemData.h"], |
| 921 }, |
| 922 { |
| 923 name: "ScrollSnapData", |
| 924 field_template: "storage_only", |
| 925 type_name: "StyleScrollSnapData", |
| 926 field_group: "rare-non-inherited", |
| 927 default_value: "", |
| 928 wrapper_pointer_name: "DataRef", |
| 929 include_paths: ["core/style/StyleScrollSnapData.h"], |
| 930 }, |
557 ], | 931 ], |
558 } | 932 } |
OLD | NEW |