diff options
author | Andreas Kling <kling@serenityos.org> | 2022-03-12 23:58:19 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-03-13 00:04:51 +0100 |
commit | 1223c88e6827c938ef780b90e9ecac61f660840b (patch) | |
tree | b9db925279d899f35f276bd1ac485e1e1049aa29 /Userland/Libraries | |
parent | 630f2e0ee95cf2e8be8d5bd04a295ed7a8e299a6 (diff) | |
download | serenity-1223c88e6827c938ef780b90e9ecac61f660840b.zip |
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.
Diffstat (limited to 'Userland/Libraries')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/HTMLInputElement.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLInputElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLInputElement.cpp index f71f8b1259..cf7bd2c407 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLInputElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLInputElement.cpp @@ -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(); |