mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:28:12 +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
|
@ -82,7 +82,7 @@ AK::URL ParsingContext::complete_url(DeprecatedString const& addr) const
|
|||
return m_url.complete_url(addr);
|
||||
}
|
||||
|
||||
Parser::Parser(ParsingContext const& context, StringView input, DeprecatedString const& encoding)
|
||||
Parser::Parser(ParsingContext const& context, StringView input, StringView encoding)
|
||||
: m_context(context)
|
||||
, m_tokenizer(input, encoding)
|
||||
, m_tokens(m_tokenizer.parse())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue