This commit is contained in:
Karl Seguin
2026-03-28 21:43:46 +08:00
parent 01ecb296e5
commit ad54437ca3
2 changed files with 2 additions and 2 deletions

View File

@@ -61,7 +61,7 @@ _fonts: ?*FontFaceSet = null,
_write_insertion_point: ?*Node = null,
_script_created_parser: ?Parser.Streaming = null,
_adopted_style_sheets: ?js.Object.Global = null,
_selection: Selection = .{._rc = .init(1)},
_selection: Selection = .{ ._rc = .init(1) },
// https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#throw-on-dynamic-markup-insertion-counter
// Incremented during custom element reactions when parsing. When > 0,

View File

@@ -215,7 +215,7 @@ pub fn RC(comptime T: type) type {
_refs: T = 0,
pub fn init(refs: T) @This() {
return .{._refs = refs};
return .{ ._refs = refs };
}
pub fn acquire(self: *@This()) void {