/* * Copyright (c) 2018-2022, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include namespace Web::Layout { class ListItemBox final : public BlockContainer { JS_CELL(ListItemBox, BlockContainer); public: ListItemBox(DOM::Document&, DOM::Element*, NonnullRefPtr); virtual ~ListItemBox() override; DOM::Element& dom_node() { return static_cast(*BlockContainer::dom_node()); } DOM::Element const& dom_node() const { return static_cast(*BlockContainer::dom_node()); } ListItemMarkerBox const* marker() const { return m_marker; } void set_marker(JS::GCPtr); private: virtual bool is_list_item_box() const override { return true; } virtual void visit_edges(Cell::Visitor&) override; JS::GCPtr m_marker; }; template<> inline bool Node::fast_is() const { return is_list_item_box(); } }