diff options
author | AnotherTest <ali.mpfard@gmail.com> | 2021-04-13 23:03:48 +0430 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-13 22:31:06 +0200 |
commit | 9c201767a011979ba84b614eca4d5301f867c42f (patch) | |
tree | be0b5f50f8be6de610c9f7c703d6d696a99f2b4e /Userland/Libraries/LibWeb/DOM/Node.h | |
parent | 8ba2b5f36f5420402b71d5eaf90aa2961a0705d2 (diff) | |
download | serenity-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.h | 6 |
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); |