mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 12:35:14 +00: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:
parent
f8fa49a81c
commit
185a40ca20
2 changed files with 1 additions and 2 deletions
|
@ -53,7 +53,6 @@ enum class QuirksMode {
|
|||
#define ENUMERATE_INVALIDATE_LAYOUT_TREE_REASONS(X) \
|
||||
X(DocumentAddAnElementToTheTopLayer) \
|
||||
X(DocumentRequestAnElementToBeRemovedFromTheTopLayer) \
|
||||
X(HTMLObjectElement) \
|
||||
X(ShadowRootSetInnerHTML)
|
||||
|
||||
enum class InvalidateLayoutTreeReason {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue