mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:47:44 +00:00
LibWeb: Construct CSS Tokenizer and Parser with a StringView encoding
This doesn't need to be a full (Deprecated)String, so let's not force it to be.
This commit is contained in:
parent
d6075ef5b5
commit
8af65108e4
5 changed files with 6 additions and 6 deletions
|
@ -43,7 +43,7 @@ void SyntaxHighlighter::rehighlight(Palette const& palette)
|
|||
false);
|
||||
};
|
||||
|
||||
CSS::Parser::Tokenizer tokenizer { text, "utf-8" };
|
||||
CSS::Parser::Tokenizer tokenizer { text, "utf-8"sv };
|
||||
auto tokens = tokenizer.parse();
|
||||
for (auto const& token : tokens) {
|
||||
if (token.is(Parser::Token::Type::EndOfFile))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue