From 8dd09f969882f8163627fc278be36cdffa64a00c Mon Sep 17 00:00:00 2001 From: Aliaksandr Kalenik Date: Wed, 2 Apr 2025 22:48:15 +0200 Subject: [PATCH] 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. --- Libraries/LibWeb/Painting/DisplayList.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Libraries/LibWeb/Painting/DisplayList.cpp b/Libraries/LibWeb/Painting/DisplayList.cpp index 06c21688a77..0494a10fe7d 100644 --- a/Libraries/LibWeb/Painting/DisplayList.cpp +++ b/Libraries/LibWeb/Painting/DisplayList.cpp @@ -150,7 +150,8 @@ void DisplayListPlayer::execute_impl(DisplayList& display_list, RefPtr