LibWeb: Expose token counts from CSS TokenStream

This commit is contained in:
Sam Atkins 2022-09-27 16:43:33 +01:00 committed by Andreas Kling
commit ae64cffd3a
Notes: sideshowbarker 2024-07-17 06:35:05 +09:00

View file

@ -107,6 +107,9 @@ public:
next_token();
}
size_t token_count() const { return m_tokens.size(); }
size_t remaining_token_count() const { return token_count() - m_iterator_offset - 1; }
void dump_all_tokens()
{
dbgln("Dumping all tokens:");