mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-26 14:28:49 +00:00
LibWeb: Update <object> style on resource load/failure
This commit is contained in:
parent
177320ee9c
commit
957f98805a
Notes:
sideshowbarker
2024-07-18 02:11:47 +09:00
Author: https://github.com/awesomekling
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_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);
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue