mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00: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:
parent
9c14504bbb
commit
6c03123b2d
Notes:
sideshowbarker
2024-07-18 09:14:08 +09:00
Author: https://github.com/AtkinsSJ
Commit: 6c03123b2d
Pull-request: https://github.com/SerenityOS/serenity/pull/8341
5 changed files with 72 additions and 102 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue