mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-23 04:55:15 +00:00
LibWeb: Don't drop entire layout tree on input element src change
This commit is contained in:
parent
4ad20ec85b
commit
f8fa49a81c
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(HTMLInputElementSrcAttributeChange) \
|
||||
X(HTMLObjectElement) \
|
||||
X(ShadowRootSetInnerHTML)
|
||||
|
||||
|
|
|
@ -1481,7 +1481,7 @@ WebIDL::ExceptionOr<void> HTMLInputElement::handle_src_attribute(String const& v
|
|||
});
|
||||
|
||||
m_load_event_delayer.clear();
|
||||
document().invalidate_layout_tree(DOM::InvalidateLayoutTreeReason::HTMLInputElementSrcAttributeChange);
|
||||
set_needs_layout_tree_update(true);
|
||||
},
|
||||
[this, &realm]() {
|
||||
// 2. Otherwise, if the fetching process fails without a response from the remote server, or completes but the
|
||||
|
|
Loading…
Add table
Reference in a new issue