mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-28 23:39:02 +00:00
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:
parent
c87bc78d5d
commit
5b6f2bb23a
Notes:
github-actions[bot]
2025-01-11 10:25:26 +00:00
Author: https://github.com/tcl3
Commit: 5b6f2bb23a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3154
5 changed files with 180 additions and 28 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue