mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
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:
parent
920170f60a
commit
cf143cf118
Notes:
github-actions[bot]
2025-04-02 21:23:46 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: cf143cf118
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4199
Reviewed-by: https://github.com/gmta ✅
1 changed files with 2 additions and 1 deletions
|
@ -150,7 +150,8 @@ void DisplayListPlayer::execute_impl(DisplayList& display_list, RefPtr<Gfx::Pain
|
|||
// clang-format on
|
||||
}
|
||||
|
||||
flush();
|
||||
if (surface)
|
||||
flush();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue