mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-06 09:36:08 +00:00
LibWeb: Expose token counts from CSS TokenStream
This commit is contained in:
parent
8ce38fddd9
commit
ae64cffd3a
Notes:
sideshowbarker
2024-07-17 06:35:05 +09:00
Author: https://github.com/AtkinsSJ
Commit: ae64cffd3a
Pull-request: https://github.com/SerenityOS/serenity/pull/15378
1 changed files with 3 additions and 0 deletions
|
@ -107,6 +107,9 @@ public:
|
||||||
next_token();
|
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()
|
void dump_all_tokens()
|
||||||
{
|
{
|
||||||
dbgln("Dumping all tokens:");
|
dbgln("Dumping all tokens:");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue