1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:27:45 +00:00

LibWeb: Add fast_is<T>() for InlinePaintable

dynamic_cast<InlinePaintable> was showing up in profiles when hovering
links on ziglang.org.
This commit is contained in:
Andreas Kling 2024-03-02 09:54:45 +01:00
parent c4403fd28c
commit 20ff69cd41

View file

@ -66,4 +66,7 @@ private:
Vector<PaintableFragment> m_fragments; Vector<PaintableFragment> m_fragments;
}; };
template<>
inline bool Paintable::fast_is<InlinePaintable>() const { return is_inline_paintable(); }
} }