mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-21 16:58:58 +00:00
LibWeb: Only invalidate styles if a @media
rule changes match status
This commit is contained in:
parent
144ef3eb9f
commit
fd24782d85
Notes:
sideshowbarker
2024-07-17 18:37:31 +09:00
Author: https://github.com/AtkinsSJ
Commit: fd24782d85
Pull-request: https://github.com/SerenityOS/serenity/pull/12601
5 changed files with 26 additions and 15 deletions
|
@ -52,7 +52,8 @@ public:
|
|||
DOM::ExceptionOr<unsigned> insert_a_css_rule(NonnullRefPtr<CSSRule>, u32 index);
|
||||
|
||||
void for_each_effective_style_rule(Function<void(CSSStyleRule const&)> const& callback) const;
|
||||
void evaluate_media_queries(DOM::Window const&);
|
||||
// Returns whether the match state of any media queries changed after evaluation.
|
||||
bool evaluate_media_queries(DOM::Window const&);
|
||||
|
||||
private:
|
||||
explicit CSSRuleList(NonnullRefPtrVector<CSSRule>&&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue