mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:17:45 +00:00
LibWeb: Add fast_is<HTMLElement>()
This avoids slow RTTI lookups in selector matching.
This commit is contained in:
parent
9f32da1dbc
commit
2ad98fdf80
2 changed files with 8 additions and 0 deletions
|
@ -87,6 +87,7 @@ public:
|
|||
|
||||
virtual bool is_editable() const;
|
||||
|
||||
virtual bool is_html_element() const { return false; }
|
||||
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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue