2020-01-18 09:38:21 +01:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
|
2021-04-17 23:10:10 +02:00
|
|
|
* Copyright (c) 2021, Tobias Christiansen <tobi@tobyase.de>
|
2020-01-18 09:38:21 +01:00
|
|
|
*
|
2021-04-22 01:24:48 -07:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-01-18 09:38:21 +01:00
|
|
|
*/
|
|
|
|
|
|
2019-10-11 23:16:53 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
2020-11-22 15:53:01 +01:00
|
|
|
#include <LibWeb/Layout/Box.h>
|
2019-10-11 23:16:53 +02:00
|
|
|
|
2020-11-22 15:53:01 +01:00
|
|
|
namespace Web::Layout {
|
2020-03-07 10:27:02 +01:00
|
|
|
|
2020-11-22 15:53:01 +01:00
|
|
|
class ListItemMarkerBox final : public Box {
|
2019-10-11 23:16:53 +02:00
|
|
|
public:
|
2021-04-17 23:10:10 +02:00
|
|
|
explicit ListItemMarkerBox(DOM::Document&, CSS::ListStyleType, size_t index);
|
2020-11-22 15:53:01 +01:00
|
|
|
virtual ~ListItemMarkerBox() override;
|
2019-10-11 23:16:53 +02:00
|
|
|
|
2020-06-18 21:35:44 +02:00
|
|
|
virtual void paint(PaintContext&, PaintPhase) override;
|
2021-04-17 23:10:10 +02:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
CSS::ListStyleType m_list_style_type { CSS::ListStyleType::None };
|
|
|
|
|
size_t m_index;
|
2021-05-11 22:32:54 +02:00
|
|
|
|
|
|
|
|
String m_text {};
|
2019-10-11 23:16:53 +02:00
|
|
|
};
|
2020-03-07 10:27:02 +01:00
|
|
|
|
|
|
|
|
}
|