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}} {
(property.is_descriptor and 'kDescriptor' or ''),
(property.compositable and 'kCompositableProperty' or ''),
(property.is_property and 'kProperty' or ''),
(property.valid_for_visited_link and 'kValidForVisitedLink' or ''),
(property.inherited and 'kInherited' or ''),
(property.visited and 'kVisited' or '')
] | reject('==', '') | join(' | ') %}
......
......@@ -395,15 +395,6 @@
visited_property_for: {
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
......@@ -597,7 +588,6 @@
priority: "High",
keywords: ["currentcolor"],
typedom_types: ["Keyword"],
valid_for_visited_link: true,
},
{
name: "direction",
......@@ -993,7 +983,6 @@
style_builder_template_args: {
initial_color: "ComputedStyleInitialValues::InitialBackgroundColor",
},
valid_for_visited_link: true,
},
{
name: "background-image",
......@@ -1086,7 +1075,6 @@
typedom_types: ["Keyword"],
converter: "ConvertStyleColor",
style_builder_template: "color",
valid_for_visited_link: true,
},
{
name: "border-bottom-left-radius",
......@@ -1212,7 +1200,6 @@
typedom_types: ["Keyword"],
converter: "ConvertStyleColor",
style_builder_template: "color",
valid_for_visited_link: true,
},
{
name: "border-left-style",
......@@ -1255,7 +1242,6 @@
typedom_types: ["Keyword"],
converter: "ConvertStyleColor",
style_builder_template: "color",
valid_for_visited_link: true,
},
{
name: "border-right-style",
......@@ -1298,7 +1284,6 @@
typedom_types: ["Keyword"],
converter: "ConvertStyleColor",
style_builder_template: "color",
valid_for_visited_link: true,
},
{
name: "border-top-left-radius",
......@@ -1453,7 +1438,6 @@
style_builder_custom_functions: ["initial", "inherit", "value"],
keywords: ["auto", "currentcolor"],
typedom_types: ["Keyword"],
valid_for_visited_link: true,
},
{
name: "clear",
......@@ -1676,7 +1660,6 @@
setter: "SetFillPaint",
getter: "FillPaint",
converter: "ConvertSVGPaint",
valid_for_visited_link: true,
},
{
name: "fill-opacity",
......@@ -2413,7 +2396,6 @@
typedom_types: ["Keyword"],
converter: "ConvertStyleColor",
style_builder_template: "color",
valid_for_visited_link: true,
},
{
name: "outline-offset",
......@@ -3007,7 +2989,6 @@
setter: "SetStrokePaint",
getter: "StrokePaint",
converter: "ConvertSVGPaint",
valid_for_visited_link: true,
},
{
name: "stroke-dasharray",
......@@ -3159,7 +3140,6 @@
typedom_types: ["Keyword"],
converter: "ConvertStyleColor",
style_builder_template: "color",
valid_for_visited_link: true,
},
{
name: "text-decoration-line",
......@@ -3623,7 +3603,6 @@
typedom_types: ["Keyword"],
converter: "ConvertStyleColor",
style_builder_template: "color",
valid_for_visited_link: true,
},
{
name: "column-rule-style",
......@@ -3942,7 +3921,6 @@
computed_style_custom_functions: ["getter", "setter"],
converter: "ConvertStyleColor",
style_builder_template: "color",
valid_for_visited_link: true,
},
{
name: "-webkit-text-emphasis-position",
......@@ -3973,7 +3951,6 @@
computed_style_custom_functions: ["getter", "setter"],
converter: "ConvertStyleColor",
style_builder_template: "color",
valid_for_visited_link: true,
},
{
name: "-webkit-text-security",
......@@ -3983,7 +3960,6 @@
field_template: "keyword",
keywords: ["none", "disc", "circle", "square"],
default_value: "none",
valid_for_visited_link: true,
},
{
name: "-webkit-text-stroke-color",
......@@ -3998,7 +3974,6 @@
computed_style_custom_functions: ["getter", "setter"],
converter: "ConvertStyleColor",
style_builder_template: "color",
valid_for_visited_link: true,
},
{
name: "-webkit-text-stroke-width",
......@@ -4289,7 +4264,6 @@
{
name: "border-inline-start-color",
property_methods: ["ParseSingleValue"],
valid_for_visited_link: true,
direction_aware_options: {
resolver: "inline-start",
physical_group: "border-color",
......@@ -4313,7 +4287,6 @@
{
name: "border-inline-end-color",
property_methods: ["ParseSingleValue"],
valid_for_visited_link: true,
direction_aware_options: {
resolver: "inline-end",
physical_group: "border-color",
......@@ -4337,7 +4310,6 @@
{
name: "border-block-start-color",
property_methods: ["ParseSingleValue"],
valid_for_visited_link: true,
direction_aware_options: {
resolver: "block-start",
physical_group: "border-color",
......@@ -4361,7 +4333,6 @@
{
name: "border-block-end-color",
property_methods: ["ParseSingleValue"],
valid_for_visited_link: true,
direction_aware_options: {
resolver: "block-end",
physical_group: "border-color",
......
......@@ -41,7 +41,6 @@ class CORE_EXPORT CSSProperty : public CSSUnresolvedProperty {
bool IsCompositableProperty() const { return flags_ & kCompositableProperty; }
bool IsDescriptor() const { return flags_ & kDescriptor; }
bool IsProperty() const { return flags_ & kProperty; }
bool IsValidForVisitedLink() const { return flags_ & kValidForVisitedLink; }
bool IsShorthand() const { return flags_ & kShorthand; }
bool IsLonghand() const { return flags_ & kLonghand; }
bool IsInherited() const { return flags_ & kInherited; }
......@@ -91,15 +90,14 @@ class CORE_EXPORT CSSProperty : public CSSUnresolvedProperty {
kCompositableProperty = 1 << 1,
kDescriptor = 1 << 2,
kProperty = 1 << 3,
kValidForVisitedLink = 1 << 4,
kShorthand = 1 << 5,
kLonghand = 1 << 6,
kInherited = 1 << 7,
kShorthand = 1 << 4,
kLonghand = 1 << 5,
kInherited = 1 << 6,
// Visited properties are internal counterparts to properties that
// 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
// seen by CSSOM, which is represented by the unvisited property).
kVisited = 1 << 8,
kVisited = 1 << 7,
};
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