1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 19:54:57 +00:00

LibWeb: Update <object> style on resource load/failure

This commit is contained in:
Andreas Kling 2021-10-18 10:37:44 +02:00
parent 177320ee9c
commit 957f98805a

View file

@ -20,12 +20,12 @@ HTMLObjectElement::HTMLObjectElement(DOM::Document& document, QualifiedName qual
{
m_image_loader.on_load = [this] {
m_should_show_fallback_content = false;
this->document().force_layout();
set_needs_style_update(true);
};
m_image_loader.on_fail = [this] {
m_should_show_fallback_content = true;
this->document().force_layout();
set_needs_style_update(true);
};
}