Revert "fix CI: store list pointer on AbstractRange to avoid Page type mismatch"

This reverts commit 056b8bb536.
This commit is contained in:
egrs
2026-03-11 08:04:51 +01:00
parent 056b8bb536
commit 697a2834c2
3 changed files with 2 additions and 4 deletions

View File

@@ -282,7 +282,6 @@ pub fn abstractRange(self: *Factory, child: anytype, page: *Page) !*@TypeOf(chil
._start_container = doc,
};
chain.setLeaf(1, child);
abstract_range._live_ranges = &page._live_ranges;
page._live_ranges.append(&abstract_range._range_link);
return chain.get(1);
}

View File

@@ -35,7 +35,6 @@ _start_container: *Node,
// Intrusive linked list node for tracking live ranges on the Page.
_range_link: std.DoublyLinkedList.Node = .{},
_live_ranges: *std.DoublyLinkedList = undefined,
pub const Type = union(enum) {
range: *Range,

View File

@@ -680,8 +680,8 @@ fn getContainerElement(self: *const Range) ?*Node.Element {
return parent.is(Node.Element);
}
pub fn deinit(self: *Range, _: bool, _: *Page) void {
self._proto._live_ranges.remove(&self._proto._range_link);
pub fn deinit(self: *Range, _: bool, page: *Page) void {
page._live_ranges.remove(&self._proto._range_link);
}
pub const JsApi = struct {