mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-21 09:41:53 +00:00
LibHTML: Simplify Node::create_layout_node()
There's no need to pass the StyleResolver to this function. Nodes that need it can just get it from the document.
This commit is contained in:
parent
f7cd5662ef
commit
f4f5ede10a
Notes:
sideshowbarker
2024-07-19 11:41:16 +09:00
Author: https://github.com/awesomekling
Commit: f4f5ede10a
13 changed files with 20 additions and 30 deletions
|
@ -10,7 +10,7 @@ Text::~Text()
|
|||
{
|
||||
}
|
||||
|
||||
RefPtr<LayoutNode> Text::create_layout_node(const StyleResolver&, const StyleProperties*) const
|
||||
RefPtr<LayoutNode> Text::create_layout_node(const StyleProperties*) const
|
||||
{
|
||||
return adopt(*new LayoutText(*this));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue