diff options
Diffstat (limited to 'Libraries/LibWeb/DOM/Document.cpp')
-rw-r--r-- | Libraries/LibWeb/DOM/Document.cpp | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/Libraries/LibWeb/DOM/Document.cpp b/Libraries/LibWeb/DOM/Document.cpp index 9e2f5afb28..100f78caba 100644 --- a/Libraries/LibWeb/DOM/Document.cpp +++ b/Libraries/LibWeb/DOM/Document.cpp @@ -287,7 +287,7 @@ void Document::attach_to_frame(Badge<Frame>, Frame& frame) node.document_did_attach_to_frame(frame); return IterationDecision::Continue; }); - layout(); + update_layout(); } void Document::detach_from_frame(Badge<Frame>, Frame& frame) @@ -376,10 +376,10 @@ void Document::invalidate_layout() void Document::force_layout() { invalidate_layout(); - layout(); + update_layout(); } -void Document::layout() +void Document::update_layout() { if (!frame()) return; @@ -410,14 +410,6 @@ void Document::update_style() update_layout(); } -void Document::update_layout() -{ - if (!frame()) - return; - - layout(); -} - RefPtr<Layout::Node> Document::create_layout_node(const CSS::StyleProperties*) { return adopt(*new Layout::InitialContainingBlockBox(*this, CSS::StyleProperties::create())); |