mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-12 11:09:18 +00:00
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:
parent
8de7e49a56
commit
a2ccb00e1d
Notes:
sideshowbarker
2024-07-17 21:11:12 +09:00
Author: https://github.com/ADKaster
Commit: a2ccb00e1d
Pull-request: https://github.com/SerenityOS/serenity/pull/15349
Reviewed-by: https://github.com/linusg ✅
37 changed files with 159 additions and 146 deletions
|
@ -16,7 +16,7 @@ class CSSFontFaceRule final : public CSSRule {
|
|||
WEB_PLATFORM_OBJECT(CSSFontFaceRule, CSSRule);
|
||||
|
||||
public:
|
||||
static CSSFontFaceRule* create(HTML::Window&, FontFace&&);
|
||||
static CSSFontFaceRule* create(JS::Realm&, FontFace&&);
|
||||
|
||||
virtual ~CSSFontFaceRule() override = default;
|
||||
|
||||
|
@ -26,7 +26,7 @@ public:
|
|||
CSSStyleDeclaration* style();
|
||||
|
||||
private:
|
||||
explicit CSSFontFaceRule(HTML::Window&, FontFace&&);
|
||||
CSSFontFaceRule(JS::Realm&, FontFace&&);
|
||||
|
||||
virtual String serialized() const override;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue