mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 11:44:58 +00:00
LibWeb: Remove Layout::Node::set_inline()
Now that this flag is no longer used, we can stop setting it.
This commit is contained in:
parent
8a3ca6416d
commit
a0e6882d99
12 changed files with 7 additions and 34 deletions
|
@ -25,14 +25,10 @@ HTMLProgressElement::~HTMLProgressElement() = default;
|
|||
|
||||
RefPtr<Layout::Node> HTMLProgressElement::create_layout_node(NonnullRefPtr<CSS::StyleProperties> style)
|
||||
{
|
||||
RefPtr<Layout::Node> layout_node;
|
||||
if (style->appearance().value_or(CSS::Appearance::Auto) == CSS::Appearance::None) {
|
||||
layout_node = adopt_ref(*new Layout::BlockContainer(document(), this, move(style)));
|
||||
layout_node->set_inline(true);
|
||||
} else {
|
||||
layout_node = adopt_ref(*new Layout::Progress(document(), *this, move(style)));
|
||||
return adopt_ref(*new Layout::BlockContainer(document(), this, move(style)));
|
||||
}
|
||||
return layout_node;
|
||||
return adopt_ref(*new Layout::Progress(document(), *this, move(style)));
|
||||
}
|
||||
|
||||
bool HTMLProgressElement::using_system_appearance() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue