LibWeb: Set dirty checkedness flag when setting checked IDL attribute

This matches the behavior of other browsers, which always set the dirty
checkedness flag when setting checkedness, except when setting the
`checked` content attribute.
This commit is contained in:
Tim Ledbetter 2025-01-05 20:50:09 +00:00 committed by Andreas Kling
parent c87bc78d5d
commit 5b6f2bb23a
Notes: github-actions[bot] 2025-01-11 10:25:26 +00:00
5 changed files with 180 additions and 28 deletions

View file

@ -88,11 +88,7 @@ public:
Optional<String> placeholder_value() const;
bool checked() const { return m_checked; }
enum class ChangeSource {
Programmatic,
User,
};
void set_checked(bool, ChangeSource = ChangeSource::Programmatic);
void set_checked(bool);
bool checked_binding() const { return checked(); }
void set_checked_binding(bool);