mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:47:35 +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:
parent
dfeb4550d5
commit
a0bea52a5f
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue