2020-01-18 05:38:21 -03:00
|
|
|
/*
|
2022-02-20 21:43:37 -03:00
|
|
|
* Copyright (c) 2018-2022, Andreas Kling <kling@serenityos.org>
|
2021-08-09 16:28:56 -03:00
|
|
|
* Copyright (c) 2021, Tobias Christiansen <tobyase@serenityos.org>
|
2020-01-18 05:38:21 -03:00
|
|
|
*
|
2021-04-22 05:24:48 -03:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-01-18 05:38:21 -03:00
|
|
|
*/
|
|
|
|
|
|
2020-11-22 11:53:01 -03:00
|
|
|
#include <LibWeb/Layout/ListItemBox.h>
|
|
|
|
|
#include <LibWeb/Layout/ListItemMarkerBox.h>
|
2019-10-11 18:16:53 -03:00
|
|
|
|
2020-11-22 11:53:01 -03:00
|
|
|
namespace Web::Layout {
|
2020-03-07 06:27:02 -03:00
|
|
|
|
2022-02-23 17:25:35 -03:00
|
|
|
ListItemBox::ListItemBox(DOM::Document& document, DOM::Element* element, NonnullRefPtr<CSS::StyleProperties> style)
|
|
|
|
|
: Layout::BlockContainer(document, element, move(style))
|
2019-10-11 18:16:53 -03:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2022-03-14 16:21:51 -03:00
|
|
|
ListItemBox::~ListItemBox() = default;
|
2019-10-11 18:16:53 -03:00
|
|
|
|
2022-02-20 21:43:37 -03:00
|
|
|
void ListItemBox::set_marker(RefPtr<ListItemMarkerBox> marker)
|
2019-10-11 18:16:53 -03:00
|
|
|
{
|
2022-02-20 21:43:37 -03:00
|
|
|
m_marker = move(marker);
|
2019-10-11 18:16:53 -03:00
|
|
|
}
|
2020-03-07 06:27:02 -03:00
|
|
|
|
|
|
|
|
}
|