mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 18:17:22 +02: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:
committed by
Andreas Kling
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
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user