1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 05:07:34 +00:00

LibWeb: Coalesce nested repaint requests instead of swallowing them

Previously we would ignore repaint requests that came in via OOPWV while
the WebContent process was busy with a previous paint request.

This caused some easy-to-trigger bugs where the painted content would be
"one paint behind", especially noticeable when scrolling.
This commit is contained in:
Andreas Kling 2021-10-18 10:25:13 +02:00
parent f9e814826f
commit f72a37b9d4
2 changed files with 9 additions and 1 deletions

View file

@ -125,6 +125,7 @@ private:
SharedBitmap back_bitmap;
i32 next_bitmap_id { 0 };
bool has_usable_bitmap { false };
bool got_repaint_requests_while_painting { false };
} m_client_state;
RefPtr<Gfx::Bitmap> m_backup_bitmap;