Sam Atkins
a8d0be4382
LibWeb/CSS: Expose consumed tokens from TokenStream
...
In some situations we want to examine a sequence of tokens that have
been already consumed from a TokenStream. These methods let us do so:
- current_index() provides the current internal token index
- tokens_since() provides a span from the given index to the current one
2025-12-02 09:49:23 +00:00
Sam Atkins
1ae4429f3b
LibWeb/CSS: Stop inserting whitespace in TokenStream::dump_string()
...
Another one I missed before!
2025-11-17 19:11:48 +01:00
Sam Atkins
2a2a1986cc
LibWeb/CSS: Add dump_string() method to TokenStream
...
This is to support error reporting. It's not the most elegant way of
getting the source CSS, but it works.
2025-08-04 10:50:09 +01:00
Sam Atkins
8c78925dd3
LibWeb/CSS: When dumping CSS tokens, point at the next one
...
The meaning of m_index changed a while back and this never got updated.
Pointing at the value that was last consumed is confusing.
2025-05-23 19:39:23 +01:00
Sam Atkins
4d0537ee80
LibWeb/CSS: Make CSS Parser non-copyable/movable
...
We never actually need to do this, and doing so was complicated because
of the token stream, so just disable it altogether.
2025-02-06 16:47:25 +00:00
Timothy Flynn
93712b24bf
Everywhere: Hoist the Libraries folder to the top-level
2024-11-10 12:50:45 +01:00