From 476ec563bcb00b95b7efa8474584cce2e7cb516a Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Sat, 11 Feb 2023 16:47:52 +0000 Subject: 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. --- Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp') 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 Parser::parse_pseudo_simple_selec } // FIXME: Support multiple, comma-separated, language ranges. Vector 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 { -- cgit v1.2.3