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.
This commit is contained in:
Sam Atkins 2025-05-23 13:48:21 +01:00 committed by Tim Ledbetter
commit 8c78925dd3
Notes: github-actions[bot] 2025-05-23 18:40:44 +00:00

View file

@ -182,7 +182,7 @@ public:
dbgln("Dumping all tokens:");
for (size_t i = 0; i < m_tokens.size(); ++i) {
auto& token = m_tokens[i];
if (i == m_index - 1)
if (i == m_index)
dbgln("-> {}", token.to_debug_string());
else
dbgln(" {}", token.to_debug_string());