mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:57:45 +00:00
LibWeb: Only invalidate styles if a @media
rule changes match status
This commit is contained in:
parent
144ef3eb9f
commit
fd24782d85
5 changed files with 26 additions and 15 deletions
|
@ -62,9 +62,9 @@ void CSSStyleSheet::for_each_effective_style_rule(Function<void(CSSStyleRule con
|
|||
m_rules->for_each_effective_style_rule(callback);
|
||||
}
|
||||
|
||||
void CSSStyleSheet::evaluate_media_queries(DOM::Window const& window)
|
||||
bool CSSStyleSheet::evaluate_media_queries(DOM::Window const& window)
|
||||
{
|
||||
m_rules->evaluate_media_queries(window);
|
||||
return m_rules->evaluate_media_queries(window);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue