LibWeb: Don't call flush() when no surface is passed in execute_impl()

`DisplayListPlayer::execute_impl()` can receive null surface if it was
invoked to rasterize nested display lists (we use them for iframes). In
this case we should not call `flush()` by the end of execution and wait
until outer display list execution will do that.
This commit is contained in:
Aliaksandr Kalenik 2025-04-02 22:48:15 +02:00 committed by Jelle Raaijmakers
commit cf143cf118
Notes: github-actions[bot] 2025-04-02 21:23:46 +00:00

View file

@ -150,7 +150,8 @@ void DisplayListPlayer::execute_impl(DisplayList& display_list, RefPtr<Gfx::Pain
// clang-format on
}
flush();
if (surface)
flush();
}
}