1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:47:44 +00:00

LibWeb: Implement Node.getRootNode

This commit is contained in:
Luke Wilde 2021-10-16 03:04:55 +01:00 committed by Andreas Kling
parent 1f4a6e7c22
commit 1ea3f34823
3 changed files with 21 additions and 0 deletions

View file

@ -35,6 +35,10 @@ enum class NodeType : u16 {
NOTATION_NODE = 12
};
struct GetRootNodeOptions {
bool composed { false };
};
class Node
: public TreeNode<Node>
, public EventTarget
@ -195,6 +199,8 @@ public:
bool is_same_node(Node const*) const;
bool is_equal_node(Node const*) const;
NonnullRefPtr<Node> get_root_node(GetRootNodeOptions const& options = {});
protected:
Node(Document&, NodeType);