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

@@ -27,6 +27,11 @@ void invalidate_style_after_option_selected_state_change(DOM::Element& element)
element.invalidate_style(DOM::StyleInvalidationReason::HTMLOptionElementSelectedChange);
}
void invalidate_style_after_input_open_state_change(DOM::Element& element)
{
element.invalidate_style(DOM::StyleInvalidationReason::HTMLInputElementSetIsOpen);
}
void invalidate_style_after_select_open_state_change(DOM::Element& element)
{
element.invalidate_style(DOM::StyleInvalidationReason::HTMLSelectElementSetIsOpen);