mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:47:35 +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
|
@ -15,3 +15,9 @@ private:
|
|||
|
||||
virtual void split_into_lines(LayoutBlock& container) override;
|
||||
};
|
||||
|
||||
template<>
|
||||
inline bool is<LayoutReplaced>(const LayoutNode& node)
|
||||
{
|
||||
return node.is_replaced();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue