LibWeb: Use ImageLoader::has_image() in HTMLObjectElement

This makes ACID2 load the eyes image again. :^)
This commit is contained in:
Andreas Kling 2020-06-23 13:42:38 +02:00
parent 4c00cae4b9
commit 9ef5d46277
Notes: sideshowbarker 2024-07-19 05:26:01 +09:00

View file

@ -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;
}