mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:27:45 +00:00
LibWeb: Add fast_is<T>() for some common DOM Node subclasses
This commit is contained in:
parent
02e2f11380
commit
b0955fd269
5 changed files with 15 additions and 0 deletions
|
@ -23,4 +23,7 @@ public:
|
|||
static NonnullRefPtr<Comment> create_with_global_object(Bindings::WindowObject& window, String const& data);
|
||||
};
|
||||
|
||||
template<>
|
||||
inline bool Node::fast_is<Comment>() const { return is_comment(); }
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue