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

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
parent bbee1c5b98
commit d14b60533f
6 changed files with 75 additions and 5 deletions

View file

@ -31,3 +31,9 @@ private:
String m_text_for_rendering;
};
template<>
inline bool is<LayoutText>(const LayoutNode& node)
{
return node.is_text();
}