diff options
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/CSSGroupingRule.h')
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/CSSGroupingRule.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/CSSGroupingRule.h b/Userland/Libraries/LibWeb/CSS/CSSGroupingRule.h index 7161c7edaf..4d28f42ee7 100644 --- a/Userland/Libraries/LibWeb/CSS/CSSGroupingRule.h +++ b/Userland/Libraries/LibWeb/CSS/CSSGroupingRule.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021, Sam Atkins <atkinssj@serenityos.org> + * Copyright (c) 2021-2022, Sam Atkins <atkinssj@serenityos.org> * * SPDX-License-Identifier: BSD-2-Clause */ @@ -19,10 +19,13 @@ class CSSGroupingRule : public CSSRule { AK_MAKE_NONMOVABLE(CSSGroupingRule); public: - ~CSSGroupingRule() = default; + using WrapperType = Bindings::CSSGroupingRuleWrapper; + + virtual ~CSSGroupingRule() = default; CSSRuleList const& css_rules() const { return m_rules; } CSSRuleList& css_rules() { return m_rules; } + NonnullRefPtr<CSSRuleList> css_rules_for_bindings() { return m_rules; } size_t insert_rule(StringView rule, size_t index = 0); void delete_rule(size_t index); |