mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-30 05:08:56 +00:00
LibWeb: Propagate errors from CSS Tokenizer construction
Instead of constructing a Tokenizer and then calling parse() on it, we now call `Tokenizer::tokenize(...)` directly. (Renamed from `parse()` because this is a Tokenizer, not a Parser.)
This commit is contained in:
committed by
Andreas Kling
parent
98ee2fcd1b
commit
17618989a3
@@ -84,8 +84,7 @@ AK::URL ParsingContext::complete_url(StringView relative_url) const
|
||||
|
||||
Parser::Parser(ParsingContext const& context, StringView input, StringView encoding)
|
||||
: m_context(context)
|
||||
, m_tokenizer(input, encoding)
|
||||
, m_tokens(m_tokenizer.parse())
|
||||
, m_tokens(Tokenizer::tokenize(input, encoding).release_value_but_fixme_should_propagate_errors())
|
||||
, m_token_stream(TokenStream(m_tokens))
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user