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:
parent
b66033720a
commit
3ff5beb229
2 changed files with 6 additions and 0 deletions
|
@ -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(); }
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue