mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02: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:
committed by
Andreas Kling
parent
3c15fec303
commit
3ca38505fa
Notes:
github-actions[bot]
2025-04-20 22:32:13 +00:00
Author: https://github.com/awesomekling Commit: https://github.com/LadybirdBrowser/ladybird/commit/3ca38505fa8 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4411
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user