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

LibWeb: Add fast_is<SVGGraphicsElement>()

This dynamic_cast was ~6% of runtime when mousing around on Discord.
This commit is contained in:
Andreas Kling 2023-08-03 13:26:29 +02:00
parent 37a618b7ad
commit bb39ca9b4a
2 changed files with 11 additions and 0 deletions

View file

@ -74,6 +74,7 @@ public:
virtual bool requires_svg_container() const { return false; }
virtual bool is_svg_container() const { return false; }
virtual bool is_svg_element() const { return false; }
virtual bool is_svg_graphics_element() const { return false; }
virtual bool is_svg_svg_element() const { return false; }
virtual bool is_svg_use_element() const { return false; }