mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +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:
committed by
Andreas Kling
parent
424a0cda93
commit
c31d44ee18
@@ -166,6 +166,8 @@ void HTMLInputElement::set_checked(bool checked, ChangeSource change_source)
|
|||||||
m_checked = checked;
|
m_checked = checked;
|
||||||
|
|
||||||
invalidate_style(DOM::StyleInvalidationReason::HTMLInputElementSetChecked);
|
invalidate_style(DOM::StyleInvalidationReason::HTMLInputElementSetChecked);
|
||||||
|
if (auto* paintable = this->paintable())
|
||||||
|
paintable->set_needs_display();
|
||||||
}
|
}
|
||||||
|
|
||||||
void HTMLInputElement::set_checked_binding(bool checked)
|
void HTMLInputElement::set_checked_binding(bool checked)
|
||||||
|
|||||||
Reference in New Issue
Block a user