mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 22:17:44 +00:00
LibWeb: Add fast_is<T>() for SVGBox and SVGPathBox
This commit is contained in:
parent
04c0c103e0
commit
225a5f2fe6
3 changed files with 14 additions and 0 deletions
|
@ -21,6 +21,12 @@ public:
|
|||
|
||||
virtual void before_children_paint(PaintContext& context, PaintPhase phase) override;
|
||||
virtual void after_children_paint(PaintContext& context, PaintPhase phase) override;
|
||||
|
||||
private:
|
||||
virtual bool is_svg_box() const final { return true; }
|
||||
};
|
||||
|
||||
template<>
|
||||
inline bool Node::fast_is<SVGBox>() const { return is_svg_box(); }
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue