/* * Copyright (c) 2020-2021, the SerenityOS developers. * Copyright (c) 2021, Sam Atkins * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include #include namespace Web::CSS { class StyleRule : public RefCounted { friend class Parser; public: enum class Type { At, Qualified, }; StyleRule(Type); ~StyleRule(); Vector const& prelude() const { return m_prelude; } StyleBlockRule const& block() const { return *m_block; } String to_string() const; private: Type const m_type; String m_name; // At-rules only Vector m_prelude; RefPtr m_block; }; }