From 1254758b00b046cac8e50128cc897dc4ddec1332 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 21 Mar 2022 20:05:25 +0100 Subject: LibWeb: Update live DOM ranges on Text and CharacterData mutations Taking care of the FIXMEs I added in earlier patches. :^) --- Userland/Libraries/LibWeb/DOM/Range.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Userland/Libraries/LibWeb/DOM/Range.h') 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 create(Document&); static NonnullRefPtr create(HTML::Window&); @@ -67,6 +67,8 @@ public: String to_string() const; + static HashTable& live_ranges(); + private: explicit Range(Document&); -- cgit v1.2.3