mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +00:00
LibWeb: Mark input elements for style update in set_checked()
When the checkedness changes, :checked selectors may yield different results, so we have to update style.
This commit is contained in:
@@ -81,8 +81,7 @@ void HTMLInputElement::set_checked(bool checked, ChangeSource change_source, Sho
|
||||
m_dirty_checkedness = true;
|
||||
|
||||
m_checked = checked;
|
||||
if (layout_node())
|
||||
layout_node()->set_needs_display();
|
||||
set_needs_style_update(true);
|
||||
|
||||
if (should_run_activation_behavior == ShouldRunActivationBehavior::Yes)
|
||||
run_activation_behavior();
|
||||
|
||||
Reference in New Issue
Block a user