mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:38:11 +00:00
LibHTML: Add is<T> and to<T> helpers for LayoutNode class family
This commit is contained in:
parent
bbee1c5b98
commit
d14b60533f
6 changed files with 75 additions and 5 deletions
|
@ -53,3 +53,9 @@ void LayoutNode::for_each_fragment_of_this(Callback callback)
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
template<>
|
||||
inline bool is<LayoutBlock>(const LayoutNode& node)
|
||||
{
|
||||
return node.is_block();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue