From 8c78925dd3a72c135d96b8610d21ff799a55fc7c Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Fri, 23 May 2025 13:48:21 +0100 Subject: [PATCH] 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. --- Libraries/LibWeb/CSS/Parser/TokenStream.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/LibWeb/CSS/Parser/TokenStream.h b/Libraries/LibWeb/CSS/Parser/TokenStream.h index 8bce7eba33c..6c99421f5b4 100644 --- a/Libraries/LibWeb/CSS/Parser/TokenStream.h +++ b/Libraries/LibWeb/CSS/Parser/TokenStream.h @@ -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());