1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-09 17:44:56 +09:00

LibWeb: Change while to for loop

This commit is contained in:
Psychpsyo (Cameron) 2025-03-24 10:47:14 +01:00 committed by Jelle Raaijmakers
parent 1844e10cd3
commit c7926b2212
Notes: github-actions[bot] 2025-03-25 15:51:40 +00:00

View file

@ -43,10 +43,9 @@ void DisplayListPlayer::execute(DisplayList& display_list)
VERIFY(m_surface);
size_t next_command_index = 0;
while (next_command_index < commands.size()) {
auto scroll_frame_id = commands[next_command_index].scroll_frame_id;
auto command = commands[next_command_index++].command;
for (size_t command_index = 0; command_index < commands.size(); command_index++) {
auto scroll_frame_id = commands[command_index].scroll_frame_id;
auto command = commands[command_index].command;
if (command.has<PaintScrollBar>()) {
auto& paint_scroll_bar = command.get<PaintScrollBar>();