diff --git a/Libraries/LibWeb/DOM/Document.h b/Libraries/LibWeb/DOM/Document.h index 209ca0a43bd..08dbcf14d61 100644 --- a/Libraries/LibWeb/DOM/Document.h +++ b/Libraries/LibWeb/DOM/Document.h @@ -53,7 +53,6 @@ enum class QuirksMode { #define ENUMERATE_INVALIDATE_LAYOUT_TREE_REASONS(X) \ X(DocumentAddAnElementToTheTopLayer) \ X(DocumentRequestAnElementToBeRemovedFromTheTopLayer) \ - X(HTMLInputElementSrcAttributeChange) \ X(HTMLObjectElement) \ X(ShadowRootSetInnerHTML) diff --git a/Libraries/LibWeb/HTML/HTMLInputElement.cpp b/Libraries/LibWeb/HTML/HTMLInputElement.cpp index 87b0a660eee..2d7e159a214 100644 --- a/Libraries/LibWeb/HTML/HTMLInputElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLInputElement.cpp @@ -1481,7 +1481,7 @@ WebIDL::ExceptionOr 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