diff --git a/Libraries/LibWeb/DOM/Document.h b/Libraries/LibWeb/DOM/Document.h index 7bbe231cf76..1712f306d07 100644 --- a/Libraries/LibWeb/DOM/Document.h +++ b/Libraries/LibWeb/DOM/Document.h @@ -78,8 +78,7 @@ enum class SetNeedsLayoutReason { X(KeyframeEffect) \ X(MediaQueryChangedMatchState) \ X(SVGGraphicsElementTransformAttributeChange) \ - X(ShadowRootSetInnerHTML) \ - X(UpdateFileInputShadowTree) + X(ShadowRootSetInnerHTML) enum class InvalidateLayoutTreeReason { #define ENUMERATE_INVALIDATE_LAYOUT_TREE_REASON(e) e, diff --git a/Libraries/LibWeb/HTML/HTMLInputElement.cpp b/Libraries/LibWeb/HTML/HTMLInputElement.cpp index c9784955c22..734839a3dff 100644 --- a/Libraries/LibWeb/HTML/HTMLInputElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLInputElement.cpp @@ -1128,8 +1128,6 @@ void HTMLInputElement::update_file_input_shadow_tree() } else { m_file_label->set_text_content(MUST(String::formatted("No {} selected.", files_label))); } - - document().invalidate_layout_tree(DOM::InvalidateLayoutTreeReason::UpdateFileInputShadowTree); } void HTMLInputElement::create_range_input_shadow_tree()