mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 12:20:00 +01:00
LibWeb: Change while to for loop
This commit is contained in:
parent
1844e10cd3
commit
c7926b2212
|
|
@ -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>();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user