mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:57:44 +00:00
LibWeb: Invalidate style on media query evaluation change
This commit is contained in:
parent
a033dfc885
commit
cf49e93b04
1 changed files with 3 additions and 1 deletions
|
@ -1354,8 +1354,10 @@ void Document::evaluate_media_queries_and_report_changes()
|
||||||
any_media_queries_changed_match_state = true;
|
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();
|
style_computer().invalidate_rule_cache();
|
||||||
|
invalidate_style();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
NonnullRefPtr<DOMImplementation> Document::implementation() const
|
NonnullRefPtr<DOMImplementation> Document::implementation() const
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue