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

Unified Diff: third_party/WebKit/Source/core/css/ComputedStyleExtraFields.json5

Issue 2923333002: Generate StyleRareNonInheritedData 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/css/ComputedStyleExtraFields.json5
diff --git a/third_party/WebKit/Source/core/css/ComputedStyleExtraFields.json5 b/third_party/WebKit/Source/core/css/ComputedStyleExtraFields.json5
index 10258d5ab93299ae938e719e48c0b988132184f5..ca6619c62777ac44be9f8200969a6ea58e07d6f9 100644
--- a/third_party/WebKit/Source/core/css/ComputedStyleExtraFields.json5
+++ b/third_party/WebKit/Source/core/css/ComputedStyleExtraFields.json5
@@ -554,5 +554,379 @@
wrapper_pointer_name: "RefPtr",
field_group: "rare-inherited",
},
+ {
+ name: "DraggableRegionMode",
+ field_template: "storage_only",
+ type_name: "DraggableRegionMode",
+ field_group: "rare-non-inherited",
+ default_value: "kDraggableRegionNone",
+ field_size: 2,
+ },
+ {
+ name: "Mask",
+ field_template: "storage_only",
+ type_name: "FillLayer",
+ field_group: "rare-non-inherited",
+ default_value: "FillLayer(kMaskFillLayer, true)",
+ },
+ {
+ name: "Filter",
+ field_template: "storage_only",
+ type_name: "StyleFilterData",
+ field_group: "rare-non-inherited",
+ default_value: "",
+ wrapper_pointer_name: "DataPersistent",
+ include_paths: ["core/style/StyleFilterData.h"],
+ },
+ {
+ name: "BackdropFilter",
+ field_template: "storage_only",
+ type_name: "StyleFilterData",
+ field_group: "rare-non-inherited",
+ default_value: "",
+ wrapper_pointer_name: "DataPersistent",
+ include_paths: ["core/style/StyleFilterData.h"],
+ },
+ {
+ name: "CounterDirectives",
+ field_template: "storage_only",
+ type_name: "CounterDirectiveMap",
+ field_group: "rare-non-inherited",
+ default_value: "nullptr",
+ wrapper_pointer_name: "std::unique_ptr",
+ include_paths: ["core/style/CounterDirectives.h"],
+ },
+ {
+ name: "Animations",
+ field_template: "storage_only",
+ type_name: "CSSAnimationData",
+ field_group: "rare-non-inherited",
+ default_value: "nullptr",
+ wrapper_pointer_name: "std::unique_ptr",
+ include_paths: ["core/animation/css/CSSAnimationData.h"],
+ },
+ {
+ name: "Transitions",
+ field_template: "storage_only",
+ type_name: "CSSTransitionData",
+ field_group: "rare-non-inherited",
+ default_value: "nullptr",
+ wrapper_pointer_name: "std::unique_ptr",
+ include_paths: ["core/animation/css/CSSTransitionData.h"],
+ },
+ {
+ name: "MaskBoxImage",
+ field_template: "storage_only",
+ type_name: "NinePieceImage",
+ field_group: "rare-non-inherited",
+ default_value: "NinePieceImage::MaskDefaults()",
+ include_paths: ["core/style/NinePieceImage.h"],
+ },
+ {
+ name: "PageSize",
+ field_template: "storage_only",
+ type_name: "FloatSize",
+ field_group: "rare-non-inherited",
+ default_value: "FloatSize()",
+ include_paths: ["platform/geometry/FloatSize.h"],
+ },
+ {
+ name: "Outline",
+ field_template: "storage_only",
+ type_name: "OutlineValue",
+ include_paths: ["core/style/OutlineValue.h"],
+ field_group: "rare-non-inherited",
+ default_value: "OutlineValue()",
+ include_paths: ["core/style/OutlineValue.h"],
+ },
+ {
+ name: "VisitedLinkTextDecorationColor",
+ field_template: "storage_only",
+ type_name: "StyleColor",
+ field_group: "rare-non-inherited",
+ default_value: "StyleColor::CurrentColor()",
+ },
+ {
+ name: "VisitedLinkBackgroundColor",
+ field_template: "storage_only",
+ type_name: "StyleColor",
+ field_group: "rare-non-inherited",
+ default_value: "Color::kTransparent",
+ },
+ {
+ name: "VisitedLinkOutlineColor",
+ field_template: "storage_only",
+ type_name: "StyleColor",
+ field_group: "rare-non-inherited",
+ default_value: "StyleColor::CurrentColor()",
+ },
+ {
+ name: "VisitedLinkBorderLeftColor",
+ field_template: "storage_only",
+ type_name: "StyleColor",
+ field_group: "rare-non-inherited",
+ default_value: "StyleColor::CurrentColor()",
+ },
+ {
+ name: "VisitedLinkBorderRightColor",
+ field_template: "storage_only",
+ type_name: "StyleColor",
+ field_group: "rare-non-inherited",
+ default_value: "StyleColor::CurrentColor()",
+ },
+ {
+ name: "VisitedLinkBorderTopColor",
+ field_template: "storage_only",
+ type_name: "StyleColor",
+ field_group: "rare-non-inherited",
+ default_value: "StyleColor::CurrentColor()",
+ },
+ {
+ name: "VisitedLinkBorderBottomColor",
+ field_template: "storage_only",
+ type_name: "StyleColor",
+ field_group: "rare-non-inherited",
+ default_value: "StyleColor::CurrentColor()",
+ },
+ {
+ name: "CallbackSelectors",
+ field_template: "storage_only",
+ type_name: "Vector<String>",
+ field_group: "rare-non-inherited",
+ default_value: "Vector<String>()",
+ include_paths: ["platform/wtf/Vector.h", "platform/wtf/text/WTFString.h"],
+ },
+ {
+ name: "PaintImages",
+ field_template: "storage_only",
+ type_name: "PaintImages",
+ field_group: "rare-non-inherited",
+ default_value: "nullptr",
+ wrapper_pointer_name: "std::unique_ptr",
+ custom_compare: true,
+ include_paths: ["core/style/PaintImages.h"],
+ },
+ {
+ name: "NonInheritedVariables",
+ field_template: "storage_only",
+ type_name: "StyleNonInheritedVariables",
+ field_group: "rare-non-inherited",
+ default_value: "nullptr",
+ wrapper_pointer_name: "std::unique_ptr",
+ include_paths: ["core/style/StyleNonInheritedVariables.h"],
+ },
+ {
+ name: "PageSizeType",
+ field_template: "storage_only",
+ type_name: "PageSizeType",
+ field_group: "rare-non-inherited",
+ default_value: "PageSizeType::kAuto",
+ field_size: 2,
+ },
+ {
+ name: "HasCurrentOpacityAnimation",
+ field_template: "storage_only",
+ type_name: "bool",
+ field_group: "rare-non-inherited",
+ field_size: 1,
+ default_value: "false",
+ },
+ {
+ name: "HasCurrentTransformAnimation",
+ field_template: "storage_only",
+ type_name: "bool",
+ field_group: "rare-non-inherited",
+ field_size: 1,
+ default_value: "false",
+ },
+ {
+ name: "HasCurrentFilterAnimation",
+ field_template: "storage_only",
+ type_name: "bool",
+ field_group: "rare-non-inherited",
+ field_size: 1,
+ default_value: "false",
+ },
+ {
+ name: "HasCurrentBackdropFilterAnimation",
+ field_template: "storage_only",
+ type_name: "bool",
+ field_group: "rare-non-inherited",
+ field_size: 1,
+ default_value: "false",
+ },
+ {
+ name: "RunningOpacityAnimationOnCompositor",
+ field_template: "storage_only",
+ type_name: "bool",
+ field_group: "rare-non-inherited",
+ field_size: 1,
+ custom_compare: true,
+ default_value: "false",
+ },
+ {
+ name: "RunningTransformAnimationOnCompositor",
+ field_template: "storage_only",
+ type_name: "bool",
+ field_group: "rare-non-inherited",
+ field_size: 1,
+ custom_compare: true,
+ default_value: "false",
+ },
+ {
+ name: "RunningFilterAnimationOnCompositor",
+ field_template: "storage_only",
+ type_name: "bool",
+ field_group: "rare-non-inherited",
+ field_size: 1,
+ custom_compare: true,
+ default_value: "false",
+ },
+ {
+ name: "RunningBackdropFilterAnimationOnCompositor",
+ field_template: "storage_only",
+ type_name: "bool",
+ field_group: "rare-non-inherited",
+ field_size: 1,
+ custom_compare: true,
+ default_value: "false",
+ },
+ {
+ name: "IsStackingContext",
+ field_template: "storage_only",
+ type_name: "bool",
+ field_group: "rare-non-inherited",
+ field_size: 1,
+ default_value: "false",
+ },
+ // TODO(shend): Is this the same as mix-blend-mode?
+ {
+ name: "EffectiveBlendMode",
+ type_name: "WebBlendMode",
+ field_template: "storage_only",
+ field_group: "rare-non-inherited",
+ field_size: 5,
+ default_value: "false",
+ include_paths: ["public/platform/WebBlendMode.h"],
+ },
+ // Plugins require accelerated compositing for reasons external to blink.
+ // In which case, we need to update the ComputedStyle on the
+ // LayoutEmbeddedObject, so store this bit so that the style actually changes
+ // when the plugin becomes composited.
+ {
+ name: "RequiresAcceleratedCompositingForExternalReasons",
+ field_template: "storage_only",
+ type_name: "bool",
+ field_group: "rare-non-inherited",
+ field_size: 1,
+ default_value: "false",
+ },
+ {
+ name: "HasInlineTransform",
+ field_template: "storage_only",
+ type_name: "bool",
+ field_group: "rare-non-inherited",
+ field_size: 1,
+ default_value: "false",
+ },
+ {
+ name: "HasCompositorProxy",
+ field_template: "storage_only",
+ type_name: "bool",
+ field_group: "rare-non-inherited",
+ field_size: 1,
+ default_value: "false",
+ },
+ // Style adjustment for appearance is disabled when certain properties are set.
+ {
+ name: "HasAuthorBackground",
+ field_template: "storage_only",
+ type_name: "bool",
+ field_group: "rare-non-inherited",
+ field_size: 1,
+ default_value: "false",
+ },
+ {
+ name: "HasAuthorBorder",
+ field_template: "storage_only",
+ type_name: "bool",
+ field_group: "rare-non-inherited",
+ field_size: 1,
+ default_value: "false",
+ },
+ // TODO(shend): These are subgroups and should be removed when we can
+ // generate them propertly.
+ {
+ name: "DeprecatedFlexibleBoxData",
+ field_template: "storage_only",
+ type_name: "StyleDeprecatedFlexibleBoxData",
+ field_group: "rare-non-inherited",
+ default_value: "",
+ wrapper_pointer_name: "DataRef",
+ include_paths: ["core/style/StyleDeprecatedFlexibleBoxData.h"],
+ },
+ {
+ name: "FlexibleBoxData",
+ field_template: "storage_only",
+ type_name: "StyleFlexibleBoxData",
+ field_group: "rare-non-inherited",
+ default_value: "",
+ wrapper_pointer_name: "DataRef",
+ include_paths: ["core/style/StyleFlexibleBoxData.h"],
+ },
+ {
+ name: "MultiColData",
+ field_template: "storage_only",
+ type_name: "StyleMultiColData",
+ field_group: "rare-non-inherited",
+ default_value: "",
+ wrapper_pointer_name: "DataRef",
+ include_paths: ["core/style/StyleMultiColData.h"],
+ },
+ {
+ name: "TransformData",
+ field_template: "storage_only",
+ type_name: "StyleTransformData",
+ field_group: "rare-non-inherited",
+ default_value: "",
+ wrapper_pointer_name: "DataRef",
+ include_paths: ["core/style/StyleTransformData.h"],
+ },
+ {
+ name: "WillChangeData",
+ field_template: "storage_only",
+ type_name: "StyleWillChangeData",
+ field_group: "rare-non-inherited",
+ default_value: "",
+ wrapper_pointer_name: "DataRef",
+ include_paths: ["core/style/StyleWillChangeData.h"],
+ },
+ {
+ name: "GridData",
+ field_template: "storage_only",
+ type_name: "StyleGridData",
+ field_group: "rare-non-inherited",
+ default_value: "",
+ wrapper_pointer_name: "DataRef",
+ include_paths: ["core/style/StyleGridData.h"],
+ },
+ {
+ name: "GridItemData",
+ field_template: "storage_only",
+ type_name: "StyleGridItemData",
+ field_group: "rare-non-inherited",
+ default_value: "",
+ wrapper_pointer_name: "DataRef",
+ include_paths: ["core/style/StyleGridItemData.h"],
+ },
+ {
+ name: "ScrollSnapData",
+ field_template: "storage_only",
+ type_name: "StyleScrollSnapData",
+ field_group: "rare-non-inherited",
+ default_value: "",
+ wrapper_pointer_name: "DataRef",
+ include_paths: ["core/style/StyleScrollSnapData.h"],
+ },
],
}
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSProperties.json5 ('k') | third_party/WebKit/Source/core/style/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698