mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 12:20:00 +01:00
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:
parent
fc54b9db46
commit
8c78925dd3
|
|
@ -182,7 +182,7 @@ public:
|
||||||
dbgln("Dumping all tokens:");
|
dbgln("Dumping all tokens:");
|
||||||
for (size_t i = 0; i < m_tokens.size(); ++i) {
|
for (size_t i = 0; i < m_tokens.size(); ++i) {
|
||||||
auto& token = m_tokens[i];
|
auto& token = m_tokens[i];
|
||||||
if (i == m_index - 1)
|
if (i == m_index)
|
||||||
dbgln("-> {}", token.to_debug_string());
|
dbgln("-> {}", token.to_debug_string());
|
||||||
else
|
else
|
||||||
dbgln(" {}", token.to_debug_string());
|
dbgln(" {}", token.to_debug_string());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user