mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:48:10 +00:00
LibWeb: Update <object> style on resource load/failure
This commit is contained in:
parent
177320ee9c
commit
957f98805a
1 changed files with 2 additions and 2 deletions
|
@ -20,12 +20,12 @@ HTMLObjectElement::HTMLObjectElement(DOM::Document& document, QualifiedName qual
|
||||||
{
|
{
|
||||||
m_image_loader.on_load = [this] {
|
m_image_loader.on_load = [this] {
|
||||||
m_should_show_fallback_content = false;
|
m_should_show_fallback_content = false;
|
||||||
this->document().force_layout();
|
set_needs_style_update(true);
|
||||||
};
|
};
|
||||||
|
|
||||||
m_image_loader.on_fail = [this] {
|
m_image_loader.on_fail = [this] {
|
||||||
m_should_show_fallback_content = true;
|
m_should_show_fallback_content = true;
|
||||||
this->document().force_layout();
|
set_needs_style_update(true);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue