mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 07:03:29 +00:00
netsurf: remove useless documentBody
This commit is contained in:
@@ -669,16 +669,6 @@ pub inline fn documentCreateElement(doc: *Document, tag_name: []const u8) *Eleme
|
|||||||
return elem.?;
|
return elem.?;
|
||||||
}
|
}
|
||||||
|
|
||||||
pub inline fn documentBody(doc: *Document) ?*Body {
|
|
||||||
const doc_html = @as(*DocumentHTML, @ptrCast(doc));
|
|
||||||
var body: ?*ElementHTML = undefined;
|
|
||||||
_ = documentHTMLVtable(doc_html).get_body.?(doc_html, &body);
|
|
||||||
if (body == null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return @as(*Body, @ptrCast(body.?));
|
|
||||||
}
|
|
||||||
|
|
||||||
// DocumentHTML
|
// DocumentHTML
|
||||||
pub const DocumentHTML = c.dom_html_document;
|
pub const DocumentHTML = c.dom_html_document;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user