summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/DOM/Range.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-03-21 20:05:25 +0100
committerAndreas Kling <kling@serenityos.org>2022-03-21 20:06:59 +0100
commit1254758b00b046cac8e50128cc897dc4ddec1332 (patch)
tree0476e061f18556e71d5e00a7aaa1e26b6496e465 /Userland/Libraries/LibWeb/DOM/Range.h
parentc74b1b6d65822a72aec7c31afffba5047655adbe (diff)
downloadserenity-1254758b00b046cac8e50128cc897dc4ddec1332.zip
LibWeb: Update live DOM ranges on Text and CharacterData mutations
Taking care of the FIXMEs I added in earlier patches. :^)
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM/Range.h')
-rw-r--r--Userland/Libraries/LibWeb/DOM/Range.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/Range.h b/Userland/Libraries/LibWeb/DOM/Range.h
index 50d9ef5d1b..427254d3d8 100644
--- a/Userland/Libraries/LibWeb/DOM/Range.h
+++ b/Userland/Libraries/LibWeb/DOM/Range.h
@@ -15,7 +15,7 @@ class Range final : public AbstractRange {
public:
using WrapperType = Bindings::RangeWrapper;
- virtual ~Range() override = default;
+ virtual ~Range() override;
static NonnullRefPtr<Range> create(Document&);
static NonnullRefPtr<Range> create(HTML::Window&);
@@ -67,6 +67,8 @@ public:
String to_string() const;
+ static HashTable<Range*>& live_ranges();
+
private:
explicit Range(Document&);