mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-11 17:37:33 +02:00
LibWeb: Don't drop entire layout tree on object element update
It's sufficient to just rebuild the layout subtree rooted at the object element itself.
This commit is contained in:
committed by
Jelle Raaijmakers
parent
a6836054cc
commit
dc83f3375c
Notes:
github-actions[bot]
2025-03-25 07:32:42 +00:00
Author: https://github.com/awesomekling Commit: https://github.com/LadybirdBrowser/ladybird/commit/dc83f3375ca Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4079 Reviewed-by: https://github.com/gmta ✅
@@ -561,7 +561,7 @@ void HTMLObjectElement::update_layout_and_child_objects(Representation represent
|
||||
|
||||
m_representation = representation;
|
||||
invalidate_style(DOM::StyleInvalidationReason::HTMLObjectElementUpdateLayoutAndChildObjects);
|
||||
document().invalidate_layout_tree(DOM::InvalidateLayoutTreeReason::HTMLObjectElement);
|
||||
set_needs_layout_tree_update(true);
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/interaction.html#dom-tabindex
|
||||
|
||||
Reference in New Issue
Block a user