diff options
author | Andreas Kling <kling@serenityos.org> | 2020-12-13 15:21:34 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-12-13 15:22:22 +0100 |
commit | 294ec3b6a5d79222fc0fd42e14117b2828aa5bd1 (patch) | |
tree | e8d90f9b6dea2f5e53a6319c0f5284c91f970e45 /Libraries/LibWeb/DOM/Element.cpp | |
parent | 6af55a234f434e96d91def302f8298c9cbc3e5a2 (diff) | |
download | serenity-294ec3b6a5d79222fc0fd42e14117b2828aa5bd1.zip |
LibWeb: Mark element style dirty when class attribute changes
Fixes #4403.
Diffstat (limited to 'Libraries/LibWeb/DOM/Element.cpp')
-rw-r--r-- | Libraries/LibWeb/DOM/Element.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Libraries/LibWeb/DOM/Element.cpp b/Libraries/LibWeb/DOM/Element.cpp index 816ec7e5a2..65496f9d1d 100644 --- a/Libraries/LibWeb/DOM/Element.cpp +++ b/Libraries/LibWeb/DOM/Element.cpp @@ -161,6 +161,7 @@ void Element::parse_attribute(const FlyString& name, const String& value) for (auto& new_class : new_classes) { m_classes.unchecked_append(new_class); } + set_needs_style_update(true); } else if (name == HTML::AttributeNames::style) { m_inline_style = parse_css_declaration(CSS::ParsingContext(document()), value); } |