mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 09:00:22 +00:00
LibWeb: Ensure inputs are repainted when their checkedness is toggled
Previously, input elements weren't always repainted when their checkedness was set programmatically.
This commit is contained in:
parent
424a0cda93
commit
c31d44ee18
Notes:
github-actions[bot]
2024-11-05 09:37:23 +00:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/c31d44ee189 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2170
1 changed files with 2 additions and 0 deletions
|
@ -166,6 +166,8 @@ void HTMLInputElement::set_checked(bool checked, ChangeSource change_source)
|
|||
m_checked = checked;
|
||||
|
||||
invalidate_style(DOM::StyleInvalidationReason::HTMLInputElementSetChecked);
|
||||
if (auto* paintable = this->paintable())
|
||||
paintable->set_needs_display();
|
||||
}
|
||||
|
||||
void HTMLInputElement::set_checked_binding(bool checked)
|
||||
|
|
Loading…
Reference in a new issue