From a0bea52a5f4146a14badccc6e4d7e13f5da05a21 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 6 Oct 2021 21:49:09 +0200 Subject: [PATCH] LibWeb: Mark Layout::ListItemMarkerBox as never having children List item markers will never have children, so let's mark them as such, which now allows our layout system to skip over their "insides" and going straight to positioning instead. --- Userland/Libraries/LibWeb/Layout/ListItemMarkerBox.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Userland/Libraries/LibWeb/Layout/ListItemMarkerBox.h b/Userland/Libraries/LibWeb/Layout/ListItemMarkerBox.h index 13db342381..e452d57aca 100644 --- a/Userland/Libraries/LibWeb/Layout/ListItemMarkerBox.h +++ b/Userland/Libraries/LibWeb/Layout/ListItemMarkerBox.h @@ -19,6 +19,8 @@ public: virtual void paint(PaintContext&, PaintPhase) override; private: + virtual bool can_have_children() const override { return false; } + CSS::ListStyleType m_list_style_type { CSS::ListStyleType::None }; size_t m_index;