1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:17:45 +00:00

LibHTML: Add LayoutNode classes for "display: list-item" and its marker

This patch removes the hard-coded hack for "display: list-item" from
LayoutBlock and adds LayoutListItem and LayoutListItemMarker.

Elements with "display: list-item" now generate a LayoutListItem, which
may then also generate a LayoutListItemMarker if appropriate. :^)
This commit is contained in:
Andreas Kling 2019-10-11 23:16:53 +02:00
parent d3d972820e
commit f5bf8f6380
7 changed files with 81 additions and 13 deletions

View file

@ -0,0 +1,14 @@
#pragma once
#include <LibHTML/Layout/LayoutNode.h>
class LayoutListItemMarker final : public LayoutNode {
public:
LayoutListItemMarker();
virtual ~LayoutListItemMarker() override;
virtual void render(RenderingContext&) override;
private:
virtual const char* class_name() const override { return "LayoutListItemMarker"; }
};