HTMLStyleElement.h 775 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org>
  3. * Copyright (c) 2021, the SerenityOS developers.
  4. *
  5. * SPDX-License-Identifier: BSD-2-Clause
  6. */
  7. #pragma once
  8. #include <LibWeb/HTML/HTMLElement.h>
  9. namespace Web::HTML {
  10. class HTMLStyleElement final : public HTMLElement {
  11. public:
  12. using WrapperType = Bindings::HTMLStyleElementWrapper;
  13. HTMLStyleElement(DOM::Document&, QualifiedName);
  14. virtual ~HTMLStyleElement() override;
  15. virtual void children_changed() override;
  16. virtual void removed_from(Node*) override;
  17. void update_a_style_block();
  18. RefPtr<CSS::CSSStyleSheet> sheet() const;
  19. private:
  20. // https://drafts.csswg.org/cssom/#associated-css-style-sheet
  21. RefPtr<CSS::CSSStyleSheet> m_associated_css_style_sheet;
  22. };
  23. }