LibHTML: Add is<T> and to<T> helpers for LayoutNode class family

This commit is contained in:
Andreas Kling 2019-10-15 14:19:52 +02:00
commit d14b60533f
Notes: sideshowbarker 2024-07-19 11:41:21 +09:00
6 changed files with 75 additions and 5 deletions

View file

@ -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();
}