mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
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:
committed by
Alexander Kalenik
parent
c93dad7600
commit
83dfed14ad
Notes:
github-actions[bot]
2026-04-29 13:48:53 +00:00
Author: https://github.com/awesomekling Commit: https://github.com/LadybirdBrowser/ladybird/commit/83dfed14ad5 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/9160
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user