1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 12:38:12 +00:00

LibWeb: Add LayoutTableCell::colspan()

A convenient function for looking up a cell's colspan attribute.
This commit is contained in:
Andreas Kling 2020-06-13 00:10:52 +02:00
parent 196a3986d6
commit 0061a82be3
2 changed files with 8 additions and 0 deletions

View file

@ -38,6 +38,8 @@ public:
LayoutTableCell* next_cell() { return next_sibling_of_type<LayoutTableCell>(); }
const LayoutTableCell* next_cell() const { return next_sibling_of_type<LayoutTableCell>(); }
size_t colspan() const;
private:
virtual bool is_table_cell() const override { return true; }
virtual const char* class_name() const override { return "LayoutTableCell"; }