LibWeb: Always inline is<LayoutBox>() and is<LayoutBlock>()

This commit is contained in:
Andreas Kling 2020-06-23 23:21:39 +02:00
parent 9b8464f455
commit 5f0a1ef21b
Notes: sideshowbarker 2024-07-19 05:25:03 +09:00
2 changed files with 2 additions and 2 deletions

View file

@ -117,7 +117,7 @@ void LayoutBlock::for_each_fragment(Callback callback) const
}
template<>
inline bool is<LayoutBlock>(const LayoutNode& node)
ALWAYS_INLINE bool is<LayoutBlock>(const LayoutNode& node)
{
return node.is_block();
}

View file

@ -98,7 +98,7 @@ private:
};
template<>
inline bool is<LayoutBox>(const LayoutNode& node)
ALWAYS_INLINE bool is<LayoutBox>(const LayoutNode& node)
{
return node.is_box();
}