mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00: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
Notes:
github-actions[bot]
2025-05-23 18:40:44 +00:00
Author: https://github.com/AtkinsSJ
Commit: 8c78925dd3
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4858
Reviewed-by: https://github.com/tcl3 ✅
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue