Skip to content

Commit

Permalink
LibWeb: Use invalidation sets for :checked style invalidation
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomekling authored and kalenikaliaksandr committed Feb 8, 2025
1 parent 8b2de41 commit 719a2e4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Libraries/LibWeb/HTML/HTMLInputElement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 719a2e4

Please sign in to comment.