HTMLBRElement.h 761 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibWeb/HTML/HTMLElement.h>
  8. namespace Web::HTML {
  9. class HTMLBRElement final : public HTMLElement {
  10. WEB_PLATFORM_OBJECT(HTMLBRElement, HTMLElement);
  11. public:
  12. virtual ~HTMLBRElement() override;
  13. virtual JS::GCPtr<Layout::Node> create_layout_node(NonnullRefPtr<CSS::StyleProperties>) override;
  14. private:
  15. virtual bool is_html_br_element() const override { return true; }
  16. HTMLBRElement(DOM::Document&, DOM::QualifiedName);
  17. virtual void initialize(JS::Realm&) override;
  18. };
  19. }
  20. namespace Web::DOM {
  21. template<>
  22. inline bool Node::fast_is<HTML::HTMLBRElement>() const { return is_html_br_element(); }
  23. }