1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 20:47:45 +00:00

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.
This commit is contained in:
Andreas Kling 2021-10-06 21:49:09 +02:00
parent dfeb4550d5
commit a0bea52a5f

View file

@ -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;