mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-02 01:08:48 +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
Notes:
sideshowbarker
2024-07-17 06:19:06 +09:00
Author: https://github.com/awesomekling
Commit: a0e6882d99
12 changed files with 7 additions and 34 deletions
|
@ -87,11 +87,7 @@ void HTMLImageElement::parse_attribute(FlyString const& name, String const& valu
|
|||
|
||||
RefPtr<Layout::Node> HTMLImageElement::create_layout_node(NonnullRefPtr<CSS::StyleProperties> style)
|
||||
{
|
||||
auto display = style->display();
|
||||
auto layout_node = adopt_ref(*new Layout::ImageBox(document(), *this, move(style), m_image_loader));
|
||||
if (display.is_block_outside())
|
||||
layout_node->set_inline(false);
|
||||
return layout_node;
|
||||
return adopt_ref(*new Layout::ImageBox(document(), *this, move(style), m_image_loader));
|
||||
}
|
||||
|
||||
Gfx::Bitmap const* HTMLImageElement::bitmap() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue