mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:38:11 +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:
parent
630f2e0ee9
commit
1223c88e68
1 changed files with 1 additions and 2 deletions
|
@ -81,8 +81,7 @@ void HTMLInputElement::set_checked(bool checked, ChangeSource change_source, Sho
|
||||||
m_dirty_checkedness = true;
|
m_dirty_checkedness = true;
|
||||||
|
|
||||||
m_checked = checked;
|
m_checked = checked;
|
||||||
if (layout_node())
|
set_needs_style_update(true);
|
||||||
layout_node()->set_needs_display();
|
|
||||||
|
|
||||||
if (should_run_activation_behavior == ShouldRunActivationBehavior::Yes)
|
if (should_run_activation_behavior == ShouldRunActivationBehavior::Yes)
|
||||||
run_activation_behavior();
|
run_activation_behavior();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue