summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-03-14 14:40:42 +0100
committerAndreas Kling <kling@serenityos.org>2022-03-15 19:48:19 +0100
commit2be4064ca8ad5b107384e2a0ca17ce08d84cadf0 (patch)
tree5ebefe922a0b2f00ee260c5c9fe2cfb779455faa /Userland
parent32dd4bf1b998264cb06b18d264cd34b56365feca (diff)
downloadserenity-2be4064ca8ad5b107384e2a0ca17ce08d84cadf0.zip
LibWeb: Add fast_is<ParentNode>()
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibWeb/DOM/ParentNode.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/ParentNode.h b/Userland/Libraries/LibWeb/DOM/ParentNode.h
index 1b8c3e3c5c..402c4617b3 100644
--- a/Userland/Libraries/LibWeb/DOM/ParentNode.h
+++ b/Userland/Libraries/LibWeb/DOM/ParentNode.h
@@ -41,6 +41,9 @@ protected:
}
};
+template<>
+inline bool Node::fast_is<ParentNode>() const { return is_parent_node(); }
+
template<typename Callback>
inline void ParentNode::for_each_child(Callback callback) const
{