summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Dump.cpp
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@gmail.com>2021-07-01 15:31:44 +0100
committerAndreas Kling <kling@serenityos.org>2021-07-11 23:19:56 +0200
commit7fefe34797a49be9a198093a68b6a1f40d6be733 (patch)
treeb8a82447ece6cfcb77401dea90dbcc8bcad8b848 /Userland/Libraries/LibWeb/Dump.cpp
parent29d78bba4bd0fa2768a63f365f15f2ad4cfb05e6 (diff)
downloadserenity-7fefe34797a49be9a198093a68b6a1f40d6be733.zip
LibWeb: Add remaining CSS AttributeMatchTypes
This adds: - ContainsString [att*=val] - StartsWithSegment [att|=val] - StartsWithString [att^=val] - EndsWithString [att$=val] Renamed AttributeMatchType::Contains to ::ContainsWord for clarity.
Diffstat (limited to 'Userland/Libraries/LibWeb/Dump.cpp')
-rw-r--r--Userland/Libraries/LibWeb/Dump.cpp17
1 files changed, 13 insertions, 4 deletions
diff --git a/Userland/Libraries/LibWeb/Dump.cpp b/Userland/Libraries/LibWeb/Dump.cpp
index 0b4bb29d12..99b6217cb0 100644
--- a/Userland/Libraries/LibWeb/Dump.cpp
+++ b/Userland/Libraries/LibWeb/Dump.cpp
@@ -325,11 +325,20 @@ void dump_selector(StringBuilder& builder, const CSS::Selector& selector)
case CSS::Selector::SimpleSelector::AttributeMatchType::ExactValueMatch:
attribute_match_type_description = "ExactValueMatch";
break;
- case CSS::Selector::SimpleSelector::AttributeMatchType::Contains:
- attribute_match_type_description = "Contains";
+ case CSS::Selector::SimpleSelector::AttributeMatchType::ContainsWord:
+ attribute_match_type_description = "ContainsWord";
break;
- case CSS::Selector::SimpleSelector::AttributeMatchType::StartsWith:
- attribute_match_type_description = "StartsWith";
+ case CSS::Selector::SimpleSelector::AttributeMatchType::ContainsString:
+ attribute_match_type_description = "ContainsString";
+ break;
+ case CSS::Selector::SimpleSelector::AttributeMatchType::StartsWithSegment:
+ attribute_match_type_description = "StartsWithSegment";
+ break;
+ case CSS::Selector::SimpleSelector::AttributeMatchType::StartsWithString:
+ attribute_match_type_description = "StartsWithString";
+ break;
+ case CSS::Selector::SimpleSelector::AttributeMatchType::EndsWithString:
+ attribute_match_type_description = "EndsWithString";
break;
}