mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-21 02:08:12 +03:00
LibWeb: Early return from update_layout() if document is not active
This commit is contained in:
parent
80a06fa672
commit
c3e2a40b76
Notes:
sideshowbarker
2024-07-17 23:02:37 +09:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/SerenityOS/serenity/commit/c3e2a40b76 Pull-request: https://github.com/SerenityOS/serenity/pull/18219
@ -948,6 +948,9 @@ static void propagate_overflow_to_viewport(Element& root_element, Layout::Viewpo
|
||||
|
||||
void Document::update_layout()
|
||||
{
|
||||
if (!is_active())
|
||||
return;
|
||||
|
||||
// NOTE: If our parent document needs a relayout, we must do that *first*.
|
||||
// This is necessary as the parent layout may cause our viewport to change.
|
||||
if (browsing_context() && browsing_context()->container())
|
||||
|
Loading…
Reference in New Issue
Block a user