ListItemBox.cpp 616 B

12345678910111213141516171819202122232425
  1. /*
  2. * Copyright (c) 2018-2022, Andreas Kling <kling@serenityos.org>
  3. * Copyright (c) 2021, Tobias Christiansen <tobyase@serenityos.org>
  4. *
  5. * SPDX-License-Identifier: BSD-2-Clause
  6. */
  7. #include <LibWeb/Layout/ListItemBox.h>
  8. #include <LibWeb/Layout/ListItemMarkerBox.h>
  9. namespace Web::Layout {
  10. ListItemBox::ListItemBox(DOM::Document& document, DOM::Element* element, NonnullRefPtr<CSS::StyleProperties> style)
  11. : Layout::BlockContainer(document, element, move(style))
  12. {
  13. }
  14. ListItemBox::~ListItemBox() = default;
  15. void ListItemBox::set_marker(RefPtr<ListItemMarkerBox> marker)
  16. {
  17. m_marker = move(marker);
  18. }
  19. }