mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 03:09:08 +00:00
LibWeb: Use invalidation sets for :checked style invalidation
This commit is contained in:
committed by
Alexander Kalenik
parent
8b2de413ae
commit
719a2e448f
@@ -169,7 +169,11 @@ void HTMLInputElement::set_checked(bool checked)
|
|||||||
|
|
||||||
m_checked = 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())
|
if (auto* paintable = this->paintable())
|
||||||
paintable->set_needs_display();
|
paintable->set_needs_display();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user