1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-15 09:34:59 +00:00

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

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