mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:07:47 +00:00
LibHTML: Add typed child/sibling traversal helpers for LayoutNode
Also add some special variants for the table classes, to make it a bit more pleasant to write table code. :^)
This commit is contained in:
parent
6202a0ab32
commit
65ad6c35f0
6 changed files with 101 additions and 0 deletions
|
@ -7,6 +7,9 @@ public:
|
|||
LayoutTableCell(const Element&, NonnullRefPtr<StyleProperties>);
|
||||
virtual ~LayoutTableCell() override;
|
||||
|
||||
LayoutTableCell* next_cell() { return next_sibling_of_type<LayoutTableCell>(); }
|
||||
const LayoutTableCell* next_cell() const { return next_sibling_of_type<LayoutTableCell>(); }
|
||||
|
||||
private:
|
||||
virtual bool is_table_cell() const override { return true; }
|
||||
virtual const char* class_name() const override { return "LayoutTableCell"; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue