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:
parent
c908fa83e3
commit
4333d0d639
2 changed files with 9 additions and 0 deletions
|
@ -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(); }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue