mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 09:09:43 +00: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);
|
VERIFY(m_surface);
|
||||||
|
|
||||||
size_t next_command_index = 0;
|
for (size_t command_index = 0; command_index < commands.size(); command_index++) {
|
||||||
while (next_command_index < commands.size()) {
|
auto scroll_frame_id = commands[command_index].scroll_frame_id;
|
||||||
auto scroll_frame_id = commands[next_command_index].scroll_frame_id;
|
auto command = commands[command_index].command;
|
||||||
auto command = commands[next_command_index++].command;
|
|
||||||
|
|
||||||
if (command.has<PaintScrollBar>()) {
|
if (command.has<PaintScrollBar>()) {
|
||||||
auto& paint_scroll_bar = command.get<PaintScrollBar>();
|
auto& paint_scroll_bar = command.get<PaintScrollBar>();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue