diff options
author | Andreas Kling <kling@serenityos.org> | 2022-03-14 20:44:15 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-03-15 19:48:19 +0100 |
commit | cf49e93b04a25ef8b62adfbb93f611510413d397 (patch) | |
tree | a9ee4a89fec9bf7194fd800d0cdffd1c267775b9 /Userland | |
parent | a033dfc885c8b78d4c6b51eda22ba3888118ae08 (diff) | |
download | serenity-cf49e93b04a25ef8b62adfbb93f611510413d397.zip |
LibWeb: Invalidate style on media query evaluation change
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibWeb/DOM/Document.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/Document.cpp b/Userland/Libraries/LibWeb/DOM/Document.cpp index 6a022a0181..0b8f1447e1 100644 --- a/Userland/Libraries/LibWeb/DOM/Document.cpp +++ b/Userland/Libraries/LibWeb/DOM/Document.cpp @@ -1354,8 +1354,10 @@ void Document::evaluate_media_queries_and_report_changes() any_media_queries_changed_match_state = true; } - if (any_media_queries_changed_match_state) + if (any_media_queries_changed_match_state) { style_computer().invalidate_rule_cache(); + invalidate_style(); + } } NonnullRefPtr<DOMImplementation> Document::implementation() const |