mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 15:16:14 +00:00
LibWeb: Use ImageLoader::has_image() in HTMLObjectElement
This makes ACID2 load the eyes image again. :^)
This commit is contained in:
@@ -70,7 +70,7 @@ RefPtr<LayoutNode> HTMLObjectElement::create_layout_node(const StyleProperties*
|
||||
auto display = style->string_or_fallback(CSS::PropertyID::Display, "inline");
|
||||
if (display == "none")
|
||||
return nullptr;
|
||||
if (m_image_loader.image_decoder())
|
||||
if (m_image_loader.has_image())
|
||||
return adopt(*new LayoutImage(*this, move(style), m_image_loader));
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user