1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:07:34 +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:
Sam Atkins 2023-02-13 17:25:32 +00:00 committed by Tim Flynn
parent d6075ef5b5
commit 8af65108e4
5 changed files with 6 additions and 6 deletions

View file

@ -59,7 +59,7 @@ private:
class Parser {
public:
Parser(ParsingContext const&, StringView input, DeprecatedString const& encoding = "utf-8");
Parser(ParsingContext const&, StringView input, StringView encoding = "utf-8"sv);
~Parser() = default;
CSSStyleSheet* parse_as_css_stylesheet(Optional<AK::URL> location);