Commit 1c0baa86 authored by Anders Hartvoll Ruud's avatar Anders Hartvoll Ruud Committed by Commit Bot

Remove valid_for_visited_link.

This is now unused.

Change-Id: Ib1747c99a96f13634045de01fb5d1272933ec78b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1658471
Commit-Queue: Anders Hartvoll Ruud <andruud@chromium.org>
Reviewed-by: default avatarRune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#669637}
parent 70711794
...@@ -36,7 +36,6 @@ namespace {{namespace}} { ...@@ -36,7 +36,6 @@ namespace {{namespace}} {
(property.is_descriptor and 'kDescriptor' or ''), (property.is_descriptor and 'kDescriptor' or ''),
(property.compositable and 'kCompositableProperty' or ''), (property.compositable and 'kCompositableProperty' or ''),
(property.is_property and 'kProperty' or ''), (property.is_property and 'kProperty' or ''),
(property.valid_for_visited_link and 'kValidForVisitedLink' or ''),
(property.inherited and 'kInherited' or ''), (property.inherited and 'kInherited' or ''),
(property.visited and 'kVisited' or '') (property.visited and 'kVisited' or '')
] | reject('==', '') | join(' | ') %} ] | reject('==', '') | join(' | ') %}
......
...@@ -395,15 +395,6 @@ ...@@ -395,15 +395,6 @@
visited_property_for: { visited_property_for: {
valid_type: "str", valid_type: "str",
}, },
// - valid_for_visited_link
// Most CSS properties do not apply to :visited and :link for privacy
// reasons. Mark properties which apply to :visited and :link by setting
// this flag to true.
valid_for_visited_link: {
default: false,
valid_type: "bool",
},
}, },
// Members in the data objects should appear in the same order as in the // Members in the data objects should appear in the same order as in the
...@@ -597,7 +588,6 @@ ...@@ -597,7 +588,6 @@
priority: "High", priority: "High",
keywords: ["currentcolor"], keywords: ["currentcolor"],
typedom_types: ["Keyword"], typedom_types: ["Keyword"],
valid_for_visited_link: true,
}, },
{ {
name: "direction", name: "direction",
...@@ -993,7 +983,6 @@ ...@@ -993,7 +983,6 @@
style_builder_template_args: { style_builder_template_args: {
initial_color: "ComputedStyleInitialValues::InitialBackgroundColor", initial_color: "ComputedStyleInitialValues::InitialBackgroundColor",
}, },
valid_for_visited_link: true,
}, },
{ {
name: "background-image", name: "background-image",
...@@ -1086,7 +1075,6 @@ ...@@ -1086,7 +1075,6 @@
typedom_types: ["Keyword"], typedom_types: ["Keyword"],
converter: "ConvertStyleColor", converter: "ConvertStyleColor",
style_builder_template: "color", style_builder_template: "color",
valid_for_visited_link: true,
}, },
{ {
name: "border-bottom-left-radius", name: "border-bottom-left-radius",
...@@ -1212,7 +1200,6 @@ ...@@ -1212,7 +1200,6 @@
typedom_types: ["Keyword"], typedom_types: ["Keyword"],
converter: "ConvertStyleColor", converter: "ConvertStyleColor",
style_builder_template: "color", style_builder_template: "color",
valid_for_visited_link: true,
}, },
{ {
name: "border-left-style", name: "border-left-style",
...@@ -1255,7 +1242,6 @@ ...@@ -1255,7 +1242,6 @@
typedom_types: ["Keyword"], typedom_types: ["Keyword"],
converter: "ConvertStyleColor", converter: "ConvertStyleColor",
style_builder_template: "color", style_builder_template: "color",
valid_for_visited_link: true,
}, },
{ {
name: "border-right-style", name: "border-right-style",
...@@ -1298,7 +1284,6 @@ ...@@ -1298,7 +1284,6 @@
typedom_types: ["Keyword"], typedom_types: ["Keyword"],
converter: "ConvertStyleColor", converter: "ConvertStyleColor",
style_builder_template: "color", style_builder_template: "color",
valid_for_visited_link: true,
}, },
{ {
name: "border-top-left-radius", name: "border-top-left-radius",
...@@ -1453,7 +1438,6 @@ ...@@ -1453,7 +1438,6 @@
style_builder_custom_functions: ["initial", "inherit", "value"], style_builder_custom_functions: ["initial", "inherit", "value"],
keywords: ["auto", "currentcolor"], keywords: ["auto", "currentcolor"],
typedom_types: ["Keyword"], typedom_types: ["Keyword"],
valid_for_visited_link: true,
}, },
{ {
name: "clear", name: "clear",
...@@ -1676,7 +1660,6 @@ ...@@ -1676,7 +1660,6 @@
setter: "SetFillPaint", setter: "SetFillPaint",
getter: "FillPaint", getter: "FillPaint",
converter: "ConvertSVGPaint", converter: "ConvertSVGPaint",
valid_for_visited_link: true,
}, },
{ {
name: "fill-opacity", name: "fill-opacity",
...@@ -2413,7 +2396,6 @@ ...@@ -2413,7 +2396,6 @@
typedom_types: ["Keyword"], typedom_types: ["Keyword"],
converter: "ConvertStyleColor", converter: "ConvertStyleColor",
style_builder_template: "color", style_builder_template: "color",
valid_for_visited_link: true,
}, },
{ {
name: "outline-offset", name: "outline-offset",
...@@ -3007,7 +2989,6 @@ ...@@ -3007,7 +2989,6 @@
setter: "SetStrokePaint", setter: "SetStrokePaint",
getter: "StrokePaint", getter: "StrokePaint",
converter: "ConvertSVGPaint", converter: "ConvertSVGPaint",
valid_for_visited_link: true,
}, },
{ {
name: "stroke-dasharray", name: "stroke-dasharray",
...@@ -3159,7 +3140,6 @@ ...@@ -3159,7 +3140,6 @@
typedom_types: ["Keyword"], typedom_types: ["Keyword"],
converter: "ConvertStyleColor", converter: "ConvertStyleColor",
style_builder_template: "color", style_builder_template: "color",
valid_for_visited_link: true,
}, },
{ {
name: "text-decoration-line", name: "text-decoration-line",
...@@ -3623,7 +3603,6 @@ ...@@ -3623,7 +3603,6 @@
typedom_types: ["Keyword"], typedom_types: ["Keyword"],
converter: "ConvertStyleColor", converter: "ConvertStyleColor",
style_builder_template: "color", style_builder_template: "color",
valid_for_visited_link: true,
}, },
{ {
name: "column-rule-style", name: "column-rule-style",
...@@ -3942,7 +3921,6 @@ ...@@ -3942,7 +3921,6 @@
computed_style_custom_functions: ["getter", "setter"], computed_style_custom_functions: ["getter", "setter"],
converter: "ConvertStyleColor", converter: "ConvertStyleColor",
style_builder_template: "color", style_builder_template: "color",
valid_for_visited_link: true,
}, },
{ {
name: "-webkit-text-emphasis-position", name: "-webkit-text-emphasis-position",
...@@ -3973,7 +3951,6 @@ ...@@ -3973,7 +3951,6 @@
computed_style_custom_functions: ["getter", "setter"], computed_style_custom_functions: ["getter", "setter"],
converter: "ConvertStyleColor", converter: "ConvertStyleColor",
style_builder_template: "color", style_builder_template: "color",
valid_for_visited_link: true,
}, },
{ {
name: "-webkit-text-security", name: "-webkit-text-security",
...@@ -3983,7 +3960,6 @@ ...@@ -3983,7 +3960,6 @@
field_template: "keyword", field_template: "keyword",
keywords: ["none", "disc", "circle", "square"], keywords: ["none", "disc", "circle", "square"],
default_value: "none", default_value: "none",
valid_for_visited_link: true,
}, },
{ {
name: "-webkit-text-stroke-color", name: "-webkit-text-stroke-color",
...@@ -3998,7 +3974,6 @@ ...@@ -3998,7 +3974,6 @@
computed_style_custom_functions: ["getter", "setter"], computed_style_custom_functions: ["getter", "setter"],
converter: "ConvertStyleColor", converter: "ConvertStyleColor",
style_builder_template: "color", style_builder_template: "color",
valid_for_visited_link: true,
}, },
{ {
name: "-webkit-text-stroke-width", name: "-webkit-text-stroke-width",
...@@ -4289,7 +4264,6 @@ ...@@ -4289,7 +4264,6 @@
{ {
name: "border-inline-start-color", name: "border-inline-start-color",
property_methods: ["ParseSingleValue"], property_methods: ["ParseSingleValue"],
valid_for_visited_link: true,
direction_aware_options: { direction_aware_options: {
resolver: "inline-start", resolver: "inline-start",
physical_group: "border-color", physical_group: "border-color",
...@@ -4313,7 +4287,6 @@ ...@@ -4313,7 +4287,6 @@
{ {
name: "border-inline-end-color", name: "border-inline-end-color",
property_methods: ["ParseSingleValue"], property_methods: ["ParseSingleValue"],
valid_for_visited_link: true,
direction_aware_options: { direction_aware_options: {
resolver: "inline-end", resolver: "inline-end",
physical_group: "border-color", physical_group: "border-color",
...@@ -4337,7 +4310,6 @@ ...@@ -4337,7 +4310,6 @@
{ {
name: "border-block-start-color", name: "border-block-start-color",
property_methods: ["ParseSingleValue"], property_methods: ["ParseSingleValue"],
valid_for_visited_link: true,
direction_aware_options: { direction_aware_options: {
resolver: "block-start", resolver: "block-start",
physical_group: "border-color", physical_group: "border-color",
...@@ -4361,7 +4333,6 @@ ...@@ -4361,7 +4333,6 @@
{ {
name: "border-block-end-color", name: "border-block-end-color",
property_methods: ["ParseSingleValue"], property_methods: ["ParseSingleValue"],
valid_for_visited_link: true,
direction_aware_options: { direction_aware_options: {
resolver: "block-end", resolver: "block-end",
physical_group: "border-color", physical_group: "border-color",
......
...@@ -41,7 +41,6 @@ class CORE_EXPORT CSSProperty : public CSSUnresolvedProperty { ...@@ -41,7 +41,6 @@ class CORE_EXPORT CSSProperty : public CSSUnresolvedProperty {
bool IsCompositableProperty() const { return flags_ & kCompositableProperty; } bool IsCompositableProperty() const { return flags_ & kCompositableProperty; }
bool IsDescriptor() const { return flags_ & kDescriptor; } bool IsDescriptor() const { return flags_ & kDescriptor; }
bool IsProperty() const { return flags_ & kProperty; } bool IsProperty() const { return flags_ & kProperty; }
bool IsValidForVisitedLink() const { return flags_ & kValidForVisitedLink; }
bool IsShorthand() const { return flags_ & kShorthand; } bool IsShorthand() const { return flags_ & kShorthand; }
bool IsLonghand() const { return flags_ & kLonghand; } bool IsLonghand() const { return flags_ & kLonghand; }
bool IsInherited() const { return flags_ & kInherited; } bool IsInherited() const { return flags_ & kInherited; }
...@@ -91,15 +90,14 @@ class CORE_EXPORT CSSProperty : public CSSUnresolvedProperty { ...@@ -91,15 +90,14 @@ class CORE_EXPORT CSSProperty : public CSSUnresolvedProperty {
kCompositableProperty = 1 << 1, kCompositableProperty = 1 << 1,
kDescriptor = 1 << 2, kDescriptor = 1 << 2,
kProperty = 1 << 3, kProperty = 1 << 3,
kValidForVisitedLink = 1 << 4, kShorthand = 1 << 4,
kShorthand = 1 << 5, kLonghand = 1 << 5,
kLonghand = 1 << 6, kInherited = 1 << 6,
kInherited = 1 << 7,
// Visited properties are internal counterparts to properties that // Visited properties are internal counterparts to properties that
// are permitted in :visited styles. They are used to handle and store the // are permitted in :visited styles. They are used to handle and store the
// computed value as seen by painting (as opposed to the computed value // computed value as seen by painting (as opposed to the computed value
// seen by CSSOM, which is represented by the unvisited property). // seen by CSSOM, which is represented by the unvisited property).
kVisited = 1 << 8, kVisited = 1 << 7,
}; };
constexpr CSSProperty(CSSPropertyID property_id, constexpr CSSProperty(CSSPropertyID property_id,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment