瀏覽代碼

LibWeb: Add fast_is<ParentNode>()

Andreas Kling 3 年之前
父節點
當前提交
2be4064ca8
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      Userland/Libraries/LibWeb/DOM/ParentNode.h

+ 3 - 0
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
 {