mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-21 09:49:21 +00:00
LibWeb: Invalidate style on media query evaluation change
This commit is contained in:
parent
a033dfc885
commit
cf49e93b04
Notes:
sideshowbarker
2024-07-17 17:21:32 +09:00
Author: https://github.com/awesomekling
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;
|
||||
}
|
||||
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue