1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:37:35 +00:00

LibWeb: Add CSS Tokenizer::consume_as_much_whitespace_as_possible()

This is a step in the spec in 3 places, and we had it implemented
differently in each one. This unifies them and makes it clearer what
we're doing.
This commit is contained in:
Sam Atkins 2021-10-21 16:53:49 +01:00 committed by Andreas Kling
parent dfbdc20f87
commit 9a2eecaca4
2 changed files with 12 additions and 21 deletions

View file

@ -91,6 +91,7 @@ private:
[[nodiscard]] Token consume_a_url_token();
void consume_the_remnants_of_a_bad_url();
void consume_comments();
void consume_as_much_whitespace_as_possible();
void reconsume_current_input_code_point();
[[nodiscard]] static bool is_valid_escape_sequence(U32Twin);
[[nodiscard]] bool would_start_an_identifier();