mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-30 15:41:48 +00:00
Iterfaces generation refacto
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com>
This commit is contained in:
@@ -3,16 +3,8 @@ const generate = @import("../generate.zig");
|
||||
|
||||
const Element = @import("../dom/element.zig").Element;
|
||||
|
||||
// Abstract class
|
||||
// --------------
|
||||
|
||||
pub const HTMLElement = struct {
|
||||
pub const Self = parser.ElementHTML;
|
||||
pub const prototype = *Element;
|
||||
pub const mem_guarantied = true;
|
||||
};
|
||||
|
||||
pub const Types = .{
|
||||
// HTMLElement interfaces
|
||||
pub const Interfaces = .{
|
||||
HTMLUnknownElement,
|
||||
HTMLAnchorElement,
|
||||
HTMLAreaElement,
|
||||
@@ -74,10 +66,19 @@ pub const Types = .{
|
||||
HTMLUListElement,
|
||||
HTMLVideoElement,
|
||||
};
|
||||
const Generated = generate.Union.compile(Types);
|
||||
const Generated = generate.Union.compile(Interfaces);
|
||||
pub const Union = Generated._union;
|
||||
pub const Tags = Generated._enum;
|
||||
|
||||
// Abstract class
|
||||
// --------------
|
||||
|
||||
pub const HTMLElement = struct {
|
||||
pub const Self = parser.ElementHTML;
|
||||
pub const prototype = *Element;
|
||||
pub const mem_guarantied = true;
|
||||
};
|
||||
|
||||
// Deprecated HTMLElements in Chrome (2023/03/15)
|
||||
// HTMLContentelement
|
||||
// HTMLShadowElement
|
||||
|
||||
Reference in New Issue
Block a user