mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibWeb: Give CSS Token and StyleComponentValueRule matching is() funcs
The end goal here is to make the two classes mostly interchangeable, as the CSS spec requires that the various parser algorithms can take a stream of either class, and we want to have that functionality without needing to duplicate all of the code.
This commit is contained in:
committed by
Andreas Kling
parent
9c14504bbb
commit
6c03123b2d
Notes:
sideshowbarker
2024-07-18 09:14:08 +09:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/SerenityOS/serenity/commit/6c03123b2de Pull-request: https://github.com/SerenityOS/serenity/pull/8341
@@ -207,7 +207,7 @@ Vector<Token> Tokenizer::parse()
|
||||
auto token = consume_a_token();
|
||||
tokens.append(token);
|
||||
|
||||
if (token.is_eof()) {
|
||||
if (token.is(Token::Type::EndOfFile)) {
|
||||
return tokens;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user