LibHTML: Add stub classes for basic table layout

This class introduces LayoutTable, LayoutTableRow and LayoutTableCell.
These are produced by "display" values table, table-row and table-cell
respectively.

Note that there's no layout happening yet, I'm just adding the classes.
This commit is contained in:
Andreas Kling 2019-10-17 23:09:41 +02:00
commit 41896ff521
Notes: sideshowbarker 2024-07-19 11:39:33 +09:00
9 changed files with 107 additions and 0 deletions

View file

@ -0,0 +1,14 @@
#pragma once
#include <LibHTML/Layout/LayoutBox.h>
class LayoutTableRow final : public LayoutBox {
public:
LayoutTableRow(const Element&, NonnullRefPtr<StyleProperties>);
virtual ~LayoutTableRow() override;
virtual void layout() override;
private:
virtual const char* class_name() const override { return "LayoutTableRow"; }
};