mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-12-23 14:47:57 -05:00
Add padding to DOMImplementation to prevent ptr collision with other empty types
This commit is contained in:
@@ -26,6 +26,7 @@ const HTMLDocument = @import("HTMLDocument.zig");
|
||||
const DocumentType = @import("DocumentType.zig");
|
||||
|
||||
const DOMImplementation = @This();
|
||||
_pad: bool = false,
|
||||
|
||||
pub fn createDocumentType(_: *const DOMImplementation, qualified_name: []const u8, public_id: ?[]const u8, system_id: ?[]const u8, page: *Page) !*DocumentType {
|
||||
const name = try page.dupeString(qualified_name);
|
||||
|
||||
Reference in New Issue
Block a user