mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 20:05:07 +00:00
LibWeb: Make HTMLObjectElement invalidate the document layout
This is an oversized hammer for sure, but we have to make sure the layout tree gets rebuilt in case the object representation changes. Since "throw out the entire layout tree" is the finest tool we have right now, it'll have to do. This fixes an issue where the eyes on Acid2 would sometimes not show up until the next layout invalidation occurred.
This commit is contained in:
parent
11a89a9d6e
commit
064b7a6216
1 changed files with 2 additions and 2 deletions
|
@ -339,8 +339,8 @@ void HTMLObjectElement::update_layout_and_child_objects(Representation represent
|
|||
}
|
||||
|
||||
m_representation = representation;
|
||||
set_needs_style_update(true);
|
||||
document().set_needs_layout();
|
||||
invalidate_style();
|
||||
document().invalidate_layout();
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/interaction.html#dom-tabindex
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue