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

LibWeb: Add fast_is<T>() for SVGPaintable

This commit is contained in:
Andreas Kling 2024-03-02 11:17:33 +01:00
parent b66033720a
commit 3ff5beb229
2 changed files with 6 additions and 0 deletions

View file

@ -18,9 +18,14 @@ public:
Layout::SVGBox const& layout_box() const;
protected:
virtual bool is_svg_paintable() const override { return true; }
SVGPaintable(Layout::SVGBox const&);
virtual CSSPixelRect compute_absolute_rect() const override;
};
template<>
inline bool Paintable::fast_is<SVGPaintable>() const { return is_svg_paintable(); }
}