mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 23:23:28 +00:00
window: document is null by default
This commit is contained in:
@@ -7,7 +7,7 @@ const parser = @import("../netsurf.zig");
|
|||||||
pub const Window = struct {
|
pub const Window = struct {
|
||||||
pub const mem_guarantied = true;
|
pub const mem_guarantied = true;
|
||||||
|
|
||||||
document: *parser.Document = undefined,
|
document: ?*parser.Document = null,
|
||||||
target: []const u8,
|
target: []const u8,
|
||||||
|
|
||||||
pub fn create(target: ?[]const u8) Window {
|
pub fn create(target: ?[]const u8) Window {
|
||||||
@@ -32,7 +32,7 @@ pub const Window = struct {
|
|||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_document(self: *Window) *parser.Document {
|
pub fn get_document(self: *Window) ?*parser.Document {
|
||||||
return self.document;
|
return self.document;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user