mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:27:45 +00:00
LibWeb: Add fast_is<HTMLTemplateElement>()
This was showing up as hot in profiles, as the HTML parser calls it quite a lot.
This commit is contained in:
parent
cb895edad4
commit
58b84f953c
2 changed files with 9 additions and 0 deletions
|
@ -77,6 +77,8 @@ public:
|
|||
|
||||
virtual bool is_editable() const;
|
||||
|
||||
virtual bool is_html_template_element() const { return false; }
|
||||
|
||||
ExceptionOr<NonnullRefPtr<Node>> pre_insert(NonnullRefPtr<Node>, RefPtr<Node>);
|
||||
ExceptionOr<NonnullRefPtr<Node>> pre_remove(NonnullRefPtr<Node>);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue