mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 07:07:23 +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
@@ -8,12 +8,11 @@
|
||||
|
||||
#include <LibWeb/CSS/CSSRule.h>
|
||||
#include <LibWeb/CSS/CSSStyleSheet.h>
|
||||
#include <LibWeb/HTML/Window.h>
|
||||
|
||||
namespace Web::CSS {
|
||||
|
||||
CSSRule::CSSRule(HTML::Window& window_object)
|
||||
: PlatformObject(window_object.cached_web_prototype("CSSRule"))
|
||||
CSSRule::CSSRule(JS::Realm& realm)
|
||||
: PlatformObject(realm)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user