diff options
author | Andreas Kling <kling@serenityos.org> | 2022-09-14 21:23:39 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-09-14 21:23:39 +0200 |
commit | df49a6ae9b7b45473c8019b35ab10ffa5e064f2b (patch) | |
tree | b63541a1401925221d1bd4aaa715382542d7e480 /Userland | |
parent | 463355d1ebd428f81f44ca375eeb514d39a77a4a (diff) | |
download | serenity-df49a6ae9b7b45473c8019b35ab10ffa5e064f2b.zip |
LibWeb: Schedule a layout update in Document::invalidate_layout()
Otherwise, nothing will repaint until someone else decides to trigger
an update.
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibWeb/DOM/Document.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/Document.cpp b/Userland/Libraries/LibWeb/DOM/Document.cpp index 9efe823ab4..6d7970bc15 100644 --- a/Userland/Libraries/LibWeb/DOM/Document.cpp +++ b/Userland/Libraries/LibWeb/DOM/Document.cpp @@ -757,6 +757,7 @@ void Document::force_layout() void Document::invalidate_layout() { tear_down_layout_tree(); + schedule_layout_update(); } void Document::update_layout() |