mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-24 02:09:28 +00:00
LibWeb: Update <object> style on resource load/failure
This commit is contained in:
@@ -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);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user