mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:07:36 +00:00
LibWeb: Add fast_is<T>() for various types stood out in a profile
This commit is contained in:
parent
f6426cdcd4
commit
1cf5737e9e
8 changed files with 48 additions and 0 deletions
|
@ -618,4 +618,7 @@ private:
|
|||
JS::GCPtr<HTML::HTMLBaseElement const> m_first_base_element_with_href_in_tree_order;
|
||||
};
|
||||
|
||||
template<>
|
||||
inline bool Node::fast_is<Document>() const { return is_document(); }
|
||||
|
||||
}
|
||||
|
|
|
@ -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; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue