summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/CSS/CSSStyleSheet.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-08-07 13:51:40 +0200
committerAndreas Kling <kling@serenityos.org>2022-09-06 00:27:09 +0200
commit5d6cb9cbdbb1ac309d68c41929ab84f73f68753c (patch)
treefccbd3393f49b9d820b55bc00ebe63050ecf8d4d /Userland/Libraries/LibWeb/CSS/CSSStyleSheet.cpp
parent5366924f110128cf0846732bb7747ae816ebaab8 (diff)
downloadserenity-5d6cb9cbdbb1ac309d68c41929ab84f73f68753c.zip
LibWeb: Make CSSRuleList GC-allocated
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/CSSStyleSheet.cpp')
-rw-r--r--Userland/Libraries/LibWeb/CSS/CSSStyleSheet.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/CSSStyleSheet.cpp b/Userland/Libraries/LibWeb/CSS/CSSStyleSheet.cpp
index 3d12f3feba..dd0e33c731 100644
--- a/Userland/Libraries/LibWeb/CSS/CSSStyleSheet.cpp
+++ b/Userland/Libraries/LibWeb/CSS/CSSStyleSheet.cpp
@@ -20,7 +20,7 @@ CSSStyleSheet* CSSStyleSheet::create(Bindings::WindowObject& window_object, Nonn
CSSStyleSheet::CSSStyleSheet(Bindings::WindowObject& window_object, NonnullRefPtrVector<CSSRule> rules, Optional<AK::URL> location)
: StyleSheet(window_object)
- , m_rules(CSSRuleList::create(move(rules)))
+ , m_rules(CSSRuleList::create(window_object, move(rules)))
{
set_prototype(&window_object.ensure_web_prototype<Bindings::CSSStyleSheetPrototype>("CSSStyleSheet"));