mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 19:35:08 +00:00

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. :^)
14 lines
345 B
C++
14 lines
345 B
C++
#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"; }
|
|
};
|