LibWeb: Move input open style invalidation into the helper

HTMLInputElement still mapped its picker open-state change directly to a
style invalidation reason. Move that mapping into
CSS::Invalidation::ElementStateInvalidator alongside the matching select
open-state helper.

This keeps another element-state invalidation decision out of the HTML
implementation without changing the invalidation behavior.
This commit is contained in:
Andreas Kling
2026-04-29 12:25:15 +02:00
committed by Alexander Kalenik
parent c93dad7600
commit 83dfed14ad
Notes: github-actions[bot] 2026-04-29 13:48:53 +00:00
3 changed files with 8 additions and 1 deletions

View File

@@ -23,6 +23,7 @@
#include <LibWeb/CSS/CSSStyleProperties.h>
#include <LibWeb/CSS/CascadedProperties.h>
#include <LibWeb/CSS/ComputedProperties.h>
#include <LibWeb/CSS/Invalidation/ElementStateInvalidator.h>
#include <LibWeb/CSS/Invalidation/FormControlInvalidator.h>
#include <LibWeb/CSS/Parser/Parser.h>
#include <LibWeb/CSS/StyleValues/DisplayStyleValue.h>
@@ -3848,7 +3849,7 @@ void HTMLInputElement::set_is_open(bool is_open)
return;
m_is_open = is_open;
invalidate_style(DOM::StyleInvalidationReason::HTMLInputElementSetIsOpen);
CSS::Invalidation::invalidate_style_after_input_open_state_change(*this);
}
bool HTMLInputElement::is_mutable() const