mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:38:12 +00:00
LibWeb: Merge Document::layout() and Document::update_layout()
There is now only Document::update_layout().
This commit is contained in:
parent
dbfce38c90
commit
3c9dcec442
5 changed files with 6 additions and 15 deletions
|
@ -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()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue