mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 07:36:50 +00:00
LibWeb: Merge Document::layout() and Document::update_layout()
There is now only Document::update_layout().
This commit is contained in:
@@ -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()));
|
||||
|
||||
Reference in New Issue
Block a user