mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibWeb: Use invalidation sets for :checked style invalidation
This commit is contained in:
parent
8b2de413ae
commit
719a2e448f
|
|
@ -169,7 +169,11 @@ void HTMLInputElement::set_checked(bool checked)
|
|||
|
||||
m_checked = checked;
|
||||
|
||||
invalidate_style(DOM::StyleInvalidationReason::HTMLInputElementSetChecked);
|
||||
invalidate_style(
|
||||
DOM::StyleInvalidationReason::HTMLInputElementSetChecked,
|
||||
{ { .type = CSS::InvalidationSet::Property::Type::PseudoClass, .value = CSS::PseudoClass::Checked } },
|
||||
{});
|
||||
|
||||
if (auto* paintable = this->paintable())
|
||||
paintable->set_needs_display();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user