mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-12-16 08:18:59 +00:00
support long svg element types
This commit is contained in:
@@ -172,7 +172,7 @@ pub fn svgElement(self: *Factory, tag_name: []const u8, child: anytype) !*@TypeO
|
|||||||
}
|
}
|
||||||
|
|
||||||
// will never allocate, can't fail
|
// will never allocate, can't fail
|
||||||
const tag_name_str = String.init(undefined, tag_name, .{}) catch unreachable;
|
const tag_name_str = String.init(self.page.arena, tag_name, .{}) catch unreachable;
|
||||||
|
|
||||||
if (comptime fieldIsPointer(Element.Svg.Type, @TypeOf(child))) {
|
if (comptime fieldIsPointer(Element.Svg.Type, @TypeOf(child))) {
|
||||||
const child_ptr = try self.createT(@TypeOf(child));
|
const child_ptr = try self.createT(@TypeOf(child));
|
||||||
|
|||||||
Reference in New Issue
Block a user