summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/DOM
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM')
-rw-r--r--Userland/Libraries/LibWeb/DOM/Document.cpp4
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