LibWeb: Remove unecessary dependence on Window from CSS classes

These classes only needed Window to get at its realm. Pass a realm
directly to construct CSS classes.
This commit is contained in:
Andrew Kaster 2022-09-24 16:34:04 -06:00 committed by Linus Groh
commit a2ccb00e1d
Notes: sideshowbarker 2024-07-17 21:11:12 +09:00
37 changed files with 159 additions and 146 deletions

View file

@ -25,7 +25,7 @@ public:
virtual void for_each_effective_style_rule(Function<void(CSSStyleRule const&)> const& callback) const override;
protected:
explicit CSSConditionRule(HTML::Window&, CSSRuleList&);
CSSConditionRule(JS::Realm&, CSSRuleList&);
};
}