/* * Copyright (c) 2021, Sam Atkins * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include #include namespace Web::CSS { class CSSGroupingRule : public CSSRule { AK_MAKE_NONCOPYABLE(CSSGroupingRule); AK_MAKE_NONMOVABLE(CSSGroupingRule); public: ~CSSGroupingRule(); CSSRuleList const& css_rules() const { return m_rules; } size_t insert_rule(StringView const& rule, size_t index = 0); void delete_rule(size_t index); virtual String serialized() const; protected: explicit CSSGroupingRule(NonnullRefPtrVector&&); private: NonnullRefPtr m_rules; }; }