mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-11 17:37:33 +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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user