mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-28 22:53:28 +00:00
netsurf: cs fix
This commit is contained in:
@@ -670,9 +670,9 @@ pub inline fn documentCreateElement(doc: *Document, tag_name: []const u8) *Eleme
|
||||
}
|
||||
|
||||
pub inline fn documentBody(doc: *Document) ?*Body {
|
||||
const dochtml = @as(*DocumentHTML, @ptrCast(doc));
|
||||
const doc_html = @as(*DocumentHTML, @ptrCast(doc));
|
||||
var body: ?*ElementHTML = undefined;
|
||||
_ = documentHTMLVtable(dochtml).get_body.?(dochtml, &body);
|
||||
_ = documentHTMLVtable(doc_html).get_body.?(doc_html, &body);
|
||||
if (body == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user