summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2023-02-11 16:47:52 +0000
committerLinus Groh <mail@linusgroh.de>2023-02-13 14:35:40 +0000
commit476ec563bcb00b95b7efa8474584cce2e7cb516a (patch)
tree8fb546f814d3dc2e83406f85968e54530569e9f2 /Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp
parent2368e6c5f2c6c02f64bb32b16f228c8edb1da4f4 (diff)
downloadserenity-476ec563bcb00b95b7efa8474584cce2e7cb516a.zip
LibWeb: Convert CSS Token::to_debug_string() to ::to_string() :^)
Using from_utf8_short_string() for all cases that are <= 3 bytes long. Which is almost all of the static ones.
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp')
-rw-r--r--Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp b/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp
index d0e9b82dee..c10e6086c3 100644
--- a/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp
+++ b/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp
@@ -562,7 +562,7 @@ Parser::ParseErrorOr<Selector::SimpleSelector> Parser::parse_pseudo_simple_selec
}
// FIXME: Support multiple, comma-separated, language ranges.
Vector<DeprecatedFlyString> languages;
- languages.append(pseudo_function.values().first().token().to_deprecated_string());
+ languages.append(pseudo_function.values().first().token().to_string().release_value_but_fixme_should_propagate_errors().to_deprecated_string());
return Selector::SimpleSelector {
.type = Selector::SimpleSelector::Type::PseudoClass,
.value = Selector::SimpleSelector::PseudoClass {