mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13:28 +00:00
netsurf: expose documentHTMLClose func
This commit is contained in:
@@ -562,6 +562,11 @@ pub fn documentHTMLParse(filename: []const u8) *DocumentHTML {
|
||||
return @as(*DocumentHTML, @ptrCast(doc.?));
|
||||
}
|
||||
|
||||
// documentHTMLClose closes the document.
|
||||
pub fn documentHTMLClose(doc: *DocumentHTML) void {
|
||||
_ = documentHTMLVtable(doc).close.?(doc);
|
||||
}
|
||||
|
||||
pub inline fn documentHTMLToDocument(doc_html: *DocumentHTML) *Document {
|
||||
return @as(*Document, @ptrCast(doc_html));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user