LibWeb: Add fast_is<T>() for various types stood out in a profile

This commit is contained in:
Andreas Kling 2023-03-10 21:16:18 +01:00
commit 1cf5737e9e
Notes: sideshowbarker 2024-07-16 23:05:13 +09:00
8 changed files with 48 additions and 0 deletions

View file

@ -85,6 +85,9 @@ public:
virtual bool is_html_html_element() const { return false; }
virtual bool is_html_anchor_element() const { return false; }
virtual bool is_html_base_element() const { return false; }
virtual bool is_html_body_element() const { return false; }
virtual bool is_html_input_element() const { return false; }
virtual bool is_html_progress_element() const { return false; }
virtual bool is_html_template_element() const { return false; }
virtual bool is_browsing_context_container() const { return false; }