summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/DOM
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-01-28 08:25:05 +0100
committerAndreas Kling <kling@serenityos.org>2021-01-28 08:25:53 +0100
commitb72f067f0daac88ebe66e3f714e517b995b48e7b (patch)
treea7a124e831ef9ec537f71614e3957f2b580735fa /Userland/Libraries/LibWeb/DOM
parentaaf691c4efc1e43e83f13cdf403f69d89f889d38 (diff)
downloadserenity-b72f067f0daac88ebe66e3f714e517b995b48e7b.zip
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.
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM')
-rw-r--r--Userland/Libraries/LibWeb/DOM/Node.cpp6
-rw-r--r--Userland/Libraries/LibWeb/DOM/Node.h1
-rw-r--r--Userland/Libraries/LibWeb/DOM/Node.idl2
3 files changed, 8 insertions, 1 deletions
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> Node::append_child(NonnullRefPtr<Node> node, bool notify)
return node;
}
+RefPtr<Node> Node::remove_child(NonnullRefPtr<Node> node)
+{
+ TreeNode<Node>::remove_child(node);
+ return node;
+}
+
RefPtr<Node> Node::insert_before(NonnullRefPtr<Node> node, RefPtr<Node> 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<Node> append_child(NonnullRefPtr<Node>, bool notify = true);
RefPtr<Node> insert_before(NonnullRefPtr<Node> node, RefPtr<Node> child, bool notify = true);
+ RefPtr<Node> remove_child(NonnullRefPtr<Node>);
virtual RefPtr<Layout::Node> 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);
};