mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:47:44 +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
|
@ -304,11 +304,8 @@ RefPtr<Layout::Node> Element::create_layout_node_for_display_type(DOM::Document&
|
|||
}
|
||||
|
||||
if (display.is_inline_outside()) {
|
||||
if (display.is_flow_root_inside()) {
|
||||
auto block = adopt_ref(*new Layout::BlockContainer(document, element, move(style)));
|
||||
block->set_inline(true);
|
||||
return block;
|
||||
}
|
||||
if (display.is_flow_root_inside())
|
||||
return adopt_ref(*new Layout::BlockContainer(document, element, move(style)));
|
||||
if (display.is_flow_inside())
|
||||
return adopt_ref(*new Layout::InlineNode(document, element, move(style)));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue