mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13: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 {
|
pub inline fn documentBody(doc: *Document) ?*Body {
|
||||||
const dochtml = @as(*DocumentHTML, @ptrCast(doc));
|
const doc_html = @as(*DocumentHTML, @ptrCast(doc));
|
||||||
var body: ?*ElementHTML = undefined;
|
var body: ?*ElementHTML = undefined;
|
||||||
_ = documentHTMLVtable(dochtml).get_body.?(dochtml, &body);
|
_ = documentHTMLVtable(doc_html).get_body.?(doc_html, &body);
|
||||||
if (body == null) {
|
if (body == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user