mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 14:58:46 +00: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
Notes:
github-actions[bot]
2025-04-20 22:32:13 +00:00
Author: https://github.com/awesomekling
Commit: 3ca38505fa
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4411
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue