mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 01:32:14 -05:00
33 lines
769 B
C++
33 lines
769 B
C++
/*
|
|
* Copyright (c) 2018-2022, Andreas Kling <andreas@ladybird.org>
|
|
* Copyright (c) 2021, Tobias Christiansen <tobyase@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <LibWeb/Layout/ListItemBox.h>
|
|
#include <LibWeb/Layout/ListItemMarkerBox.h>
|
|
|
|
namespace Web::Layout {
|
|
|
|
GC_DEFINE_ALLOCATOR(ListItemBox);
|
|
|
|
ListItemBox::ListItemBox(DOM::Document& document, DOM::Element* element, GC::Ref<CSS::ComputedProperties> style)
|
|
: Layout::BlockContainer(document, element, move(style))
|
|
{
|
|
}
|
|
|
|
ListItemBox::~ListItemBox() = default;
|
|
|
|
void ListItemBox::visit_edges(Cell::Visitor& visitor)
|
|
{
|
|
Base::visit_edges(visitor);
|
|
visitor.visit(m_marker);
|
|
}
|
|
|
|
void ListItemBox::set_marker(GC::Ptr<ListItemMarkerBox> marker)
|
|
{
|
|
m_marker = move(marker);
|
|
}
|
|
|
|
}
|