ladybird/Userland/Libraries/LibWeb/CSS/CSSStyleSheet.cpp
Andreas Kling 3a4565beec 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.
2021-09-29 21:21:57 +02:00

20 lines
335 B
C++

/*
* Copyright (c) 2019-2021, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibWeb/CSS/CSSStyleSheet.h>
namespace Web::CSS {
CSSStyleSheet::CSSStyleSheet(NonnullRefPtrVector<CSSRule> rules)
: m_rules(CSSRuleList::create(move(rules)))
{
}
CSSStyleSheet::~CSSStyleSheet()
{
}
}