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:
Tim Ledbetter 2024-11-05 04:14:31 +00:00 committed by Andreas Kling
parent 424a0cda93
commit c31d44ee18
Notes: github-actions[bot] 2024-11-05 09:37:23 +00:00

View file

@ -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)