summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/DOM/Node.h
diff options
context:
space:
mode:
authorAnotherTest <ali.mpfard@gmail.com>2021-04-13 23:03:48 +0430
committerAndreas Kling <kling@serenityos.org>2021-04-13 22:31:06 +0200
commit9c201767a011979ba84b614eca4d5301f867c42f (patch)
treebe0b5f50f8be6de610c9f7c703d6d696a99f2b4e /Userland/Libraries/LibWeb/DOM/Node.h
parent8ba2b5f36f5420402b71d5eaf90aa2961a0705d2 (diff)
downloadserenity-9c201767a011979ba84b614eca4d5301f867c42f.zip
LibWeb: Fix some FIXMEs related to ExceptionOr<T>
This fixes a few FIXMEs mentioned in 5beacf08a2d578d0eb36d6320255d0f4634a1085, which depended on #6075 being fixed.
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM/Node.h')
-rw-r--r--Userland/Libraries/LibWeb/DOM/Node.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/Node.h b/Userland/Libraries/LibWeb/DOM/Node.h
index f399f88d7f..e4a2927c51 100644
--- a/Userland/Libraries/LibWeb/DOM/Node.h
+++ b/Userland/Libraries/LibWeb/DOM/Node.h
@@ -93,10 +93,10 @@ public:
virtual bool is_editable() const;
- NonnullRefPtr<Node> pre_insert(NonnullRefPtr<Node>, RefPtr<Node>);
- NonnullRefPtr<Node> pre_remove(NonnullRefPtr<Node>);
+ ExceptionOr<NonnullRefPtr<Node>> pre_insert(NonnullRefPtr<Node>, RefPtr<Node>);
+ ExceptionOr<NonnullRefPtr<Node>> pre_remove(NonnullRefPtr<Node>);
- NonnullRefPtr<Node> append_child(NonnullRefPtr<Node>);
+ ExceptionOr<NonnullRefPtr<Node>> append_child(NonnullRefPtr<Node>);
void insert_before(NonnullRefPtr<Node> node, RefPtr<Node> child, bool suppress_observers = false);
void remove(bool suppress_observers = false);
void remove_all_children(bool suppress_observers = false);