mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 04:25:13 +00:00
LibWeb: Use invalidation sets for :checked style invalidation
This commit is contained in:
parent
8b2de413ae
commit
719a2e448f
Notes:
github-actions[bot]
2025-02-08 17:12:27 +00:00
Author: https://github.com/awesomekling Commit: https://github.com/LadybirdBrowser/ladybird/commit/719a2e448f2 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3504
1 changed files with 5 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue