1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:28:12 +00:00

LibWeb: Add fast_is<T>() for HTML::HTMLHtmlElement

Another one spotted in a scroll-up-and-down profile.
This commit is contained in:
Andreas Kling 2021-10-27 17:58:57 +02:00
parent c908fa83e3
commit 4333d0d639
2 changed files with 9 additions and 0 deletions

View file

@ -18,6 +18,14 @@ public:
virtual ~HTMLHtmlElement() override;
bool should_use_body_background_properties() const;
private:
virtual bool is_html_html_element() const override { return true; }
};
}
namespace Web::DOM {
template<>
inline bool Node::fast_is<HTML::HTMLHtmlElement>() const { return is_html_html_element(); }
}