mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibWeb: Rebuild parent element's layout tree on <object> update
These elements are quite special, so let's treat them like we do for substantial CSS display changes and rebuild the layout tree starting from the parent element instead of self.
This commit is contained in:
parent
3c15fec303
commit
3ca38505fa
|
|
@ -562,7 +562,9 @@ void HTMLObjectElement::update_layout_and_child_objects(Representation represent
|
|||
|
||||
m_representation = representation;
|
||||
invalidate_style(DOM::StyleInvalidationReason::HTMLObjectElementUpdateLayoutAndChildObjects);
|
||||
set_needs_layout_tree_update(true);
|
||||
|
||||
if (auto parent_element = this->parent_element())
|
||||
parent_element->set_needs_layout_tree_update(true);
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/interaction.html#dom-tabindex
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user