diff options
author | Andreas Kling <kling@serenityos.org> | 2021-10-18 10:25:13 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-10-18 10:40:30 +0200 |
commit | f72a37b9d41b541efa2e2dcaab18e183557d2e68 (patch) | |
tree | d187baca5e6dfa6dc22a0274cf028a6d6ca31dd7 /Userland/Libraries/LibWeb/OutOfProcessWebView.h | |
parent | f9e814826f4a2bc696201336c72b364bbc731db0 (diff) | |
download | serenity-f72a37b9d41b541efa2e2dcaab18e183557d2e68.zip |
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.
Diffstat (limited to 'Userland/Libraries/LibWeb/OutOfProcessWebView.h')
-rw-r--r-- | Userland/Libraries/LibWeb/OutOfProcessWebView.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/OutOfProcessWebView.h b/Userland/Libraries/LibWeb/OutOfProcessWebView.h index 7d812a2ecf..818edb2bdf 100644 --- a/Userland/Libraries/LibWeb/OutOfProcessWebView.h +++ b/Userland/Libraries/LibWeb/OutOfProcessWebView.h @@ -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; |