HTMLBRElement.cpp 522 B

1234567891011121314151617181920212223242526
  1. /*
  2. * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #include <LibWeb/HTML/HTMLBRElement.h>
  7. #include <LibWeb/Layout/BreakNode.h>
  8. namespace Web::HTML {
  9. HTMLBRElement::HTMLBRElement(DOM::Document& document, QualifiedName qualified_name)
  10. : HTMLElement(document, move(qualified_name))
  11. {
  12. }
  13. HTMLBRElement::~HTMLBRElement()
  14. {
  15. }
  16. RefPtr<Layout::Node> HTMLBRElement::create_layout_node()
  17. {
  18. return adopt_ref(*new Layout::BreakNode(document(), *this));
  19. }
  20. }