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

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

Issue 2887333003: Generate StyleRareInheritedData 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 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 e3c2108f10ba9088576c0b782b18a006561f45a5..027dac85fe9ba8c6183259aea79c1baf5abd29de 100644
--- a/third_party/WebKit/Source/core/css/ComputedStyleExtraFields.json5
+++ b/third_party/WebKit/Source/core/css/ComputedStyleExtraFields.json5
@@ -266,5 +266,279 @@
field_group: "inherited",
default_value: "1.0",
},
+ {
+ name: "VisitedLinkTextStrokeColor",
+ inherited: true,
+ field_template: "storage_only",
+ field_type_path: "platform/graphics/Color",
+ default_value: "Color()",
+ field_group: "rare-inherited",
+ },
+ {
+ name: "VisitedLinkTextFillColor",
+ inherited: true,
+ field_template: "storage_only",
+ field_type_path: "platform/graphics/Color",
+ default_value: "Color()",
+ field_group: "rare-inherited",
+ },
+ {
+ name: "VisitedLinkTextEmphasisColor",
+ inherited: true,
+ field_template: "storage_only",
+ field_type_path: "platform/graphics/Color",
+ default_value: "Color()",
+ field_group: "rare-inherited",
+ },
+ {
+ name: "VisitedLinkCaretColor",
+ inherited: true,
+ field_template: "storage_only",
+ field_type_path: "platform/graphics/Color",
+ default_value: "Color()",
+ field_group: "rare-inherited",
+ },
+ {
+ name: "CursorData",
+ inherited: true,
+ field_template: "storage_only",
+ field_type_path: "core/style/CursorList",
+ default_value: "nullptr",
+ wrapper_pointer_name: "Persistent",
+ field_group: "rare-inherited",
+ },
+ {
+ name: "EffectiveZoom",
+ inherited: true,
+ field_template: "storage_only",
+ type_name: "float",
+ default_value: "1.0f",
+ field_group: "rare-inherited",
+ },
+ {
+ name: "TextStrokeColorIsCurrentColor",
+ inherited: true,
+ field_template: "storage_only",
+ type_name: "bool",
+ default_value: "true",
+ field_size: 1,
+ field_group: "rare-inherited",
+ },
+ {
+ name: "TextFillColorIsCurrentColor",
+ inherited: true,
+ field_template: "storage_only",
+ type_name: "bool",
+ default_value: "true",
+ field_size: 1,
+ field_group: "rare-inherited",
+ },
+ {
+ name: "TextEmphasisColorIsCurrentColor",
+ inherited: true,
+ field_template: "storage_only",
+ type_name: "bool",
+ default_value: "true",
+ field_size: 1,
+ field_group: "rare-inherited",
+ },
+ {
+ name: "CaretColorIsCurrentColor",
+ inherited: true,
+ field_template: "storage_only",
+ type_name: "bool",
+ default_value: "false",
+ field_size: 1,
+ field_group: "rare-inherited",
+ },
+ {
+ name: "CaretColorIsAuto",
+ inherited: true,
+ field_template: "storage_only",
+ type_name: "bool",
+ default_value: "true",
+ field_size: 1,
+ field_group: "rare-inherited",
+ },
+ {
+ name: "VisitedLinkTextStrokeColorIsCurrentColor",
+ inherited: true,
+ field_template: "storage_only",
+ type_name: "bool",
+ default_value: "true",
+ field_size: 1,
+ field_group: "rare-inherited",
+ },
+ {
+ name: "VisitedLinkTextFillColorIsCurrentColor",
+ inherited: true,
+ field_template: "storage_only",
+ type_name: "bool",
+ default_value: "true",
+ field_size: 1,
+ field_group: "rare-inherited",
+ },
+ {
+ name: "VisitedLinkTextEmphasisColorIsCurrentColor",
+ inherited: true,
+ field_template: "storage_only",
+ type_name: "bool",
+ default_value: "true",
+ field_size: 1,
+ field_group: "rare-inherited",
+ },
+ {
+ name: "VisitedLinkCaretColorIsCurrentColor",
+ inherited: true,
+ field_template: "storage_only",
+ type_name: "bool",
+ default_value: "false",
+ field_size: 1,
+ field_group: "rare-inherited",
+ },
+ {
+ name: "VisitedLinkCaretColorIsAuto",
+ inherited: true,
+ field_template: "storage_only",
+ type_name: "bool",
+ default_value: "true",
+ field_size: 1,
+ field_group: "rare-inherited",
+ },
+ {
+ name: "TextEmphasisFill",
+ inherited: true,
+ field_template: "storage_only",
+ type_name: "TextEmphasisFill",
+ default_value: "kTextEmphasisFillFilled",
+ field_size: 1,
+ field_group: "rare-inherited",
+ },
+ {
+ name: "TextEmphasisMark",
+ inherited: true,
+ field_template: "storage_only",
+ type_name: "TextEmphasisMark",
+ default_value: "kTextEmphasisMarkNone",
+ field_size: 3,
+ field_group: "rare-inherited",
+ },
+ {
+ name: "TextEmphasisPosition",
+ inherited: true,
+ field_template: "storage_only",
+ type_name: "TextEmphasisPosition",
+ default_value: "kTextEmphasisPositionOver",
+ field_size: 1,
+ field_group: "rare-inherited",
+ },
+ {
+ name: "TextIndentLine",
+ inherited: true,
+ field_template: "storage_only",
+ type_name: "TextIndentLine",
+ default_value: "kTextIndentFirstLine",
+ field_size: 1,
+ field_group: "rare-inherited",
+ },
+ {
+ name: "TextIndentType",
+ inherited: true,
+ field_template: "storage_only",
+ type_name: "TextIndentType",
+ default_value: "kTextIndentNormal",
+ field_size: 1,
+ field_group: "rare-inherited",
+ },
+ // Though will-change is not itself an inherited property, the intent
+ // expressed by 'will-change: contents' includes descendants.
+ {
+ name: "SubtreeWillChangeContents",
+ inherited: true,
+ field_template: "storage_only",
+ type_name: "bool",
+ default_value: "false",
+ field_size: 1,
+ field_group: "rare-inherited",
+ },
+ {
+ name: "SelfOrAncestorHasDirAutoAttribute",
+ inherited: true,
+ field_template: "storage_only",
+ type_name: "bool",
+ default_value: "false",
+ field_size: 1,
+ field_group: "rare-inherited",
+ },
+ {
+ name: "RespectImageOrientation",
+ inherited: true,
+ field_template: "storage_only",
+ type_name: "bool",
+ default_value: "false",
+ field_size: 1,
+ field_group: "rare-inherited",
+ },
+ // Though position: sticky is not itself an inherited property, being a
+ // descendent of a sticky element changes some document lifecycle logic.
+ {
+ name: "SubtreeIsSticky",
+ inherited: true,
+ field_template: "storage_only",
+ type_name: "bool",
+ default_value: "false",
+ field_size: 1,
+ field_group: "rare-inherited",
+ },
+ {
+ name: "HyphenationLimitBefore",
+ inherited: true,
+ field_template: "storage_only",
+ type_name: "short",
+ default_value: "-1",
+ field_group: "rare-inherited",
+ },
+ {
+ name: "HyphenationLimitAfter",
+ inherited: true,
+ field_template: "storage_only",
+ type_name: "short",
+ default_value: "-1",
+ field_group: "rare-inherited",
+ },
+ {
+ name: "HyphenationLimitLines",
+ inherited: true,
+ field_template: "storage_only",
+ type_name: "short",
+ default_value: "-1",
+ field_group: "rare-inherited",
+ },
+ {
+ name: "TextEmphasisCustomMark",
+ inherited: true,
+ field_template: "storage_only",
+ field_type_path: "platform/wtf/text/AtomicString",
+ default_value: "AtomicString()",
+ field_group: "rare-inherited",
+ },
+ {
+ name: "AppliedTextDecorations",
+ inherited: true,
+ field_template: "storage_only",
+ field_type_path: "core/style/AppliedTextDecorationList",
+ default_value: "nullptr",
+ wrapper_pointer_name: "RefPtr",
+ field_group: "rare-inherited",
+ },
+ {
+ name: "Variables",
+ inherited: true,
+ field_template: "storage_only",
+ field_type_path: "core/style/StyleInheritedVariables",
+ default_value: "nullptr",
+ wrapper_pointer_name: "RefPtr",
+ field_group: "rare-inherited",
+ },
],
}
« 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