From b72f067f0daac88ebe66e3f714e517b995b48e7b Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 28 Jan 2021 08:25:05 +0100 Subject: Kernel+Userland: Remove unused "effective priority" from threads This has been merged with the regular Thread::priority field after the recent changes to the scheduler. --- Userland/Libraries/LibWeb/DOM/Node.cpp | 6 ++++++ Userland/Libraries/LibWeb/DOM/Node.h | 1 + Userland/Libraries/LibWeb/DOM/Node.idl | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) (limited to 'Userland/Libraries/LibWeb/DOM') diff --git a/Userland/Libraries/LibWeb/DOM/Node.cpp b/Userland/Libraries/LibWeb/DOM/Node.cpp index ea26fbd761..ce2d864514 100644 --- a/Userland/Libraries/LibWeb/DOM/Node.cpp +++ b/Userland/Libraries/LibWeb/DOM/Node.cpp @@ -183,6 +183,12 @@ RefPtr Node::append_child(NonnullRefPtr node, bool notify) return node; } +RefPtr Node::remove_child(NonnullRefPtr node) +{ + TreeNode::remove_child(node); + return node; +} + RefPtr Node::insert_before(NonnullRefPtr node, RefPtr child, bool notify) { if (!child) diff --git a/Userland/Libraries/LibWeb/DOM/Node.h b/Userland/Libraries/LibWeb/DOM/Node.h index d29f0a471f..a62c220fe1 100644 --- a/Userland/Libraries/LibWeb/DOM/Node.h +++ b/Userland/Libraries/LibWeb/DOM/Node.h @@ -82,6 +82,7 @@ public: RefPtr append_child(NonnullRefPtr, bool notify = true); RefPtr insert_before(NonnullRefPtr node, RefPtr child, bool notify = true); + RefPtr remove_child(NonnullRefPtr); virtual RefPtr create_layout_node(); diff --git a/Userland/Libraries/LibWeb/DOM/Node.idl b/Userland/Libraries/LibWeb/DOM/Node.idl index 2ba27688e6..3165b3131d 100644 --- a/Userland/Libraries/LibWeb/DOM/Node.idl +++ b/Userland/Libraries/LibWeb/DOM/Node.idl @@ -11,6 +11,6 @@ interface Node : EventTarget { Node appendChild(Node node); Node insertBefore(Node node, Node? child); - + Node removeChild(Node child); }; -- cgit v1.2.3