mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-21 10:19:03 +03:00
LibWeb: Make HTMLObjectElement invalidate the document layout
This is an oversized hammer for sure, but we have to make sure the layout tree gets rebuilt in case the object representation changes. Since "throw out the entire layout tree" is the finest tool we have right now, it'll have to do. This fixes an issue where the eyes on Acid2 would sometimes not show up until the next layout invalidation occurred.
This commit is contained in:
parent
11a89a9d6e
commit
064b7a6216
Notes:
sideshowbarker
2024-07-18 22:57:59 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/064b7a6216
@ -339,8 +339,8 @@ void HTMLObjectElement::update_layout_and_child_objects(Representation represent
|
||||
}
|
||||
|
||||
m_representation = representation;
|
||||
set_needs_style_update(true);
|
||||
document().set_needs_layout();
|
||||
invalidate_style();
|
||||
document().invalidate_layout();
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/interaction.html#dom-tabindex
|
||||
|
Loading…
Reference in New Issue
Block a user