mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:57:45 +00:00
LibWeb: Update live DOM ranges on Text and CharacterData mutations
Taking care of the FIXMEs I added in earlier patches. :^)
This commit is contained in:
parent
c74b1b6d65
commit
1254758b00
4 changed files with 60 additions and 11 deletions
|
@ -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&);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue