mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibHTML: Add is<T> and to<T> helpers for LayoutNode class family
This commit is contained in:
parent
bbee1c5b98
commit
d14b60533f
Notes:
sideshowbarker
2024-07-19 11:41:21 +09:00
Author: https://github.com/awesomekling
Commit: d14b60533f
6 changed files with 75 additions and 5 deletions
|
@ -31,3 +31,9 @@ private:
|
|||
|
||||
String m_text_for_rendering;
|
||||
};
|
||||
|
||||
template<>
|
||||
inline bool is<LayoutText>(const LayoutNode& node)
|
||||
{
|
||||
return node.is_text();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue