mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-21 20:24:42 +00:00
Revert "remove ranges from live list on GC finalization"
This reverts commit 625d424199.
This commit is contained in:
@@ -680,10 +680,6 @@ fn getContainerElement(self: *const Range) ?*Node.Element {
|
||||
return parent.is(Node.Element);
|
||||
}
|
||||
|
||||
pub fn deinit(self: *Range, _: bool, page: *Page) void {
|
||||
page._live_ranges.remove(&self._proto._range_link);
|
||||
}
|
||||
|
||||
pub const JsApi = struct {
|
||||
pub const bridge = js.Bridge(Range);
|
||||
|
||||
@@ -691,8 +687,6 @@ pub const JsApi = struct {
|
||||
pub const name = "Range";
|
||||
pub const prototype_chain = bridge.prototypeChain();
|
||||
pub var class_id: bridge.ClassId = undefined;
|
||||
pub const weak = true;
|
||||
pub const finalizer = bridge.finalizer(Range.deinit);
|
||||
};
|
||||
|
||||
// Constants for compareBoundaryPoints
|
||||
|
||||
Reference in New Issue
Block a user