mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-22 20:54:43 +00:00
Replace ArrayListUnmanaged with ArrayList
This commit is contained in:
@@ -225,7 +225,7 @@ fn walk(self: @This(), node: *Node, xpath_buffer: *std.ArrayList(u8), parent_nam
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn extractSelectOptions(node: *Node, page: *Page, arena: std.mem.Allocator) ![]OptionData {
|
fn extractSelectOptions(node: *Node, page: *Page, arena: std.mem.Allocator) ![]OptionData {
|
||||||
var options = std.ArrayListUnmanaged(OptionData){};
|
var options: std.ArrayList(OptionData) = .empty;
|
||||||
var it = node.childrenIterator();
|
var it = node.childrenIterator();
|
||||||
while (it.next()) |child| {
|
while (it.next()) |child| {
|
||||||
if (child.is(Element)) |el| {
|
if (child.is(Element)) |el| {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ const CSSRule = @import("CSSRule.zig");
|
|||||||
|
|
||||||
const CSSRuleList = @This();
|
const CSSRuleList = @This();
|
||||||
|
|
||||||
_rules: std.ArrayListUnmanaged(*CSSRule) = .{},
|
_rules: std.ArrayList(*CSSRule) = .empty,
|
||||||
|
|
||||||
pub fn init(page: *Page) !*CSSRuleList {
|
pub fn init(page: *Page) !*CSSRuleList {
|
||||||
return page._factory.create(CSSRuleList{});
|
return page._factory.create(CSSRuleList{});
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ const CSSStyleSheet = @import("CSSStyleSheet.zig");
|
|||||||
|
|
||||||
const StyleSheetList = @This();
|
const StyleSheetList = @This();
|
||||||
|
|
||||||
_sheets: std.ArrayListUnmanaged(*CSSStyleSheet) = .{},
|
_sheets: std.ArrayList(*CSSStyleSheet) = .empty,
|
||||||
|
|
||||||
pub fn init(page: *Page) !*StyleSheetList {
|
pub fn init(page: *Page) !*StyleSheetList {
|
||||||
return page._factory.create(StyleSheetList{});
|
return page._factory.create(StyleSheetList{});
|
||||||
|
|||||||
Reference in New Issue
Block a user