summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/DOM/Range.h
diff options
context:
space:
mode:
authorLuke Wilde <lukew@serenityos.org>2022-01-31 17:35:03 +0000
committerAndreas Kling <kling@serenityos.org>2022-02-26 12:53:32 +0100
commitd73fb7e10f58a82a8700809530226bc51e237562 (patch)
tree1b6a370a137baec095d78a905a70c545ce2a80c4 /Userland/Libraries/LibWeb/DOM/Range.h
parent46ce50f74eb453178661a7e2a405b69b6fc51234 (diff)
downloadserenity-d73fb7e10f58a82a8700809530226bc51e237562.zip
LibWeb: Implement Range.set{Start,End}{Before,After}
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM/Range.h')
-rw-r--r--Userland/Libraries/LibWeb/DOM/Range.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/Range.h b/Userland/Libraries/LibWeb/DOM/Range.h
index 06fed39b5d..b145a30f98 100644
--- a/Userland/Libraries/LibWeb/DOM/Range.h
+++ b/Userland/Libraries/LibWeb/DOM/Range.h
@@ -26,6 +26,10 @@ public:
ExceptionOr<void> set_start(Node& node, u32 offset);
ExceptionOr<void> set_end(Node& node, u32 offset);
+ ExceptionOr<void> set_start_before(Node& node);
+ ExceptionOr<void> set_start_after(Node& node);
+ ExceptionOr<void> set_end_before(Node& node);
+ ExceptionOr<void> set_end_after(Node& node);
NonnullRefPtr<Range> inverted() const;
NonnullRefPtr<Range> normalized() const;