mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 18:15:07 +00:00
LibHTML: Add is<T> helpers for the table-related LayoutNode subclasses
This commit is contained in:
parent
5e29238a49
commit
b4c2621ed7
4 changed files with 24 additions and 0 deletions
|
@ -8,5 +8,12 @@ public:
|
|||
virtual ~LayoutTableCell() override;
|
||||
|
||||
private:
|
||||
virtual bool is_table_cell() const override { return true; }
|
||||
virtual const char* class_name() const override { return "LayoutTableCell"; }
|
||||
};
|
||||
|
||||
template<>
|
||||
inline bool is<LayoutTableCell>(const LayoutNode& node)
|
||||
{
|
||||
return node.is_table_cell();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue