mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +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:
committed by
Linus Groh
parent
8de7e49a56
commit
a2ccb00e1d
@@ -16,7 +16,7 @@
|
||||
namespace Web::CSS {
|
||||
|
||||
class CSSRule : public Bindings::PlatformObject {
|
||||
WEB_PLATFORM_OBJECT(CSSRule, JS::Object);
|
||||
WEB_PLATFORM_OBJECT(CSSRule, Bindings::PlatformObject);
|
||||
|
||||
public:
|
||||
virtual ~CSSRule() = default;
|
||||
@@ -45,7 +45,7 @@ public:
|
||||
bool fast_is() const = delete;
|
||||
|
||||
protected:
|
||||
explicit CSSRule(HTML::Window&);
|
||||
explicit CSSRule(JS::Realm&);
|
||||
|
||||
virtual String serialized() const = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user