diff options
author | Andreas Kling <kling@serenityos.org> | 2021-09-29 19:41:46 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-29 21:21:57 +0200 |
commit | 3a4565beec10f2898844884c19dc3aacf1922d37 (patch) | |
tree | 67034f7ca6ef7e7c9a04d2c665c78218f1be1e60 /Userland/Libraries/LibWeb/CSS/CSSStyleSheet.cpp | |
parent | 87f00590881f39ec77c4b03d3c413b567d0e48f1 (diff) | |
download | serenity-3a4565beec10f2898844884c19dc3aacf1922d37.zip |
LibWeb: Make CSSRule and CSSRuleList available to JavaScript :^)
This patch makes both of these classes inherit from RefCounted and
Bindings::Wrappable, plus some minimal rejigging to allow us to keep
using them internally while also exposing them to web content.
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/CSSStyleSheet.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/CSSStyleSheet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/CSSStyleSheet.cpp b/Userland/Libraries/LibWeb/CSS/CSSStyleSheet.cpp index ed06f7fc94..0321d2fcd9 100644 --- a/Userland/Libraries/LibWeb/CSS/CSSStyleSheet.cpp +++ b/Userland/Libraries/LibWeb/CSS/CSSStyleSheet.cpp @@ -9,7 +9,7 @@ namespace Web::CSS { CSSStyleSheet::CSSStyleSheet(NonnullRefPtrVector<CSSRule> rules) - : m_rules(move(rules)) + : m_rules(CSSRuleList::create(move(rules))) { } |