diff options
Diffstat (limited to 'Libraries/LibWeb/Layout/LayoutListItem.h')
-rw-r--r-- | Libraries/LibWeb/Layout/LayoutListItem.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Libraries/LibWeb/Layout/LayoutListItem.h b/Libraries/LibWeb/Layout/LayoutListItem.h index bb5cff174e..2bb8dcb80f 100644 --- a/Libraries/LibWeb/Layout/LayoutListItem.h +++ b/Libraries/LibWeb/Layout/LayoutListItem.h @@ -38,12 +38,17 @@ public: LayoutListItem(DOM::Document&, DOM::Element&, NonnullRefPtr<CSS::StyleProperties>); virtual ~LayoutListItem() override; - virtual void layout(LayoutMode = LayoutMode::Default) override; + void layout_marker(); private: virtual const char* class_name() const override { return "LayoutListItem"; } + virtual bool is_list_item() const override { return true; } RefPtr<LayoutListItemMarker> m_marker; }; } + +AK_BEGIN_TYPE_TRAITS(Web::LayoutListItem) +static bool is_type(const Web::LayoutNode& layout_node) { return layout_node.is_list_item(); } +AK_END_TYPE_TRAITS() |