mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-22 04:34:44 +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);
|
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 JsApi = struct {
|
||||||
pub const bridge = js.Bridge(Range);
|
pub const bridge = js.Bridge(Range);
|
||||||
|
|
||||||
@@ -691,8 +687,6 @@ pub const JsApi = struct {
|
|||||||
pub const name = "Range";
|
pub const name = "Range";
|
||||||
pub const prototype_chain = bridge.prototypeChain();
|
pub const prototype_chain = bridge.prototypeChain();
|
||||||
pub var class_id: bridge.ClassId = undefined;
|
pub var class_id: bridge.ClassId = undefined;
|
||||||
pub const weak = true;
|
|
||||||
pub const finalizer = bridge.finalizer(Range.deinit);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// Constants for compareBoundaryPoints
|
// Constants for compareBoundaryPoints
|
||||||
|
|||||||
Reference in New Issue
Block a user