1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 01:51:03 +09:00

LibWeb: Don't drop entire layout tree on input element src change

This commit is contained in:
Andreas Kling 2025-03-24 23:07:11 +00:00 committed by Jelle Raaijmakers
parent 305a5ad30b
commit a6836054cc
Notes: github-actions[bot] 2025-03-25 07:32:50 +00:00
2 changed files with 1 additions and 2 deletions

View file

@ -53,7 +53,6 @@ enum class QuirksMode {
#define ENUMERATE_INVALIDATE_LAYOUT_TREE_REASONS(X) \ #define ENUMERATE_INVALIDATE_LAYOUT_TREE_REASONS(X) \
X(DocumentAddAnElementToTheTopLayer) \ X(DocumentAddAnElementToTheTopLayer) \
X(DocumentRequestAnElementToBeRemovedFromTheTopLayer) \ X(DocumentRequestAnElementToBeRemovedFromTheTopLayer) \
X(HTMLInputElementSrcAttributeChange) \
X(HTMLObjectElement) \ X(HTMLObjectElement) \
X(ShadowRootSetInnerHTML) X(ShadowRootSetInnerHTML)

View file

@ -1481,7 +1481,7 @@ WebIDL::ExceptionOr<void> HTMLInputElement::handle_src_attribute(String const& v
}); });
m_load_event_delayer.clear(); m_load_event_delayer.clear();
document().invalidate_layout_tree(DOM::InvalidateLayoutTreeReason::HTMLInputElementSrcAttributeChange); set_needs_layout_tree_update(true);
}, },
[this, &realm]() { [this, &realm]() {
// 2. Otherwise, if the fetching process fails without a response from the remote server, or completes but the // 2. Otherwise, if the fetching process fails without a response from the remote server, or completes but the