1
Fork 0
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:
Andreas Kling 2021-09-16 00:52:10 +02:00
parent cb895edad4
commit 58b84f953c
2 changed files with 9 additions and 0 deletions

View file

@ -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>);