QualifiedStyleRule.h 710 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Copyright (c) 2020-2021, the SerenityOS developers.
  3. * Copyright (c) 2021, Sam Atkins <atkinssj@gmail.com>
  4. *
  5. * SPDX-License-Identifier: BSD-2-Clause
  6. */
  7. #pragma once
  8. #include <AK/Vector.h>
  9. #include <LibWeb/CSS/Parser/StyleBlockRule.h>
  10. #include <LibWeb/CSS/Parser/StyleComponentValueRule.h>
  11. namespace Web::CSS {
  12. class QualifiedStyleRule {
  13. friend class Parser;
  14. public:
  15. QualifiedStyleRule();
  16. ~QualifiedStyleRule();
  17. Vector<StyleComponentValueRule> const& prelude() const { return m_prelude; }
  18. StyleBlockRule const& block() const { return *m_block; }
  19. String to_string() const;
  20. private:
  21. Vector<StyleComponentValueRule> m_prelude;
  22. RefPtr<StyleBlockRule> m_block;
  23. };
  24. }