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:
parent
1844e10cd3
commit
c7926b2212
Notes:
github-actions[bot]
2025-03-25 15:51:40 +00:00
Author: https://github.com/Psychpsyo
Commit: c7926b2212
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4061
1 changed files with 3 additions and 4 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue