Skip to content

Commit 3c71dc4

Browse files
committed
LibHTML: Oops, fix build.
It's another "hacking on the train and forgetting to try a full build" episode, this time starring LibHTML.
1 parent ab90d2e commit 3c71dc4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Libraries/LibHTML/Frame.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,14 @@ RefPtr<LayoutNode> Frame::generate_layout_tree(const StyledNode& styled_root)
6969
}
7070
};
7171

72-
Function<RefPtr<LayoutNode>(const StyledNode&, LayoutNode*)> build_layout_tree;
73-
build_layout_tree = [&](const StyledNode& styled_node, LayoutNode* parent_layout_node) -> RefPtr<LayoutNode> {
72+
Function<RefPtr<LayoutNode>(const StyledNode&)> build_layout_tree;
73+
build_layout_tree = [&](const StyledNode& styled_node) -> RefPtr<LayoutNode> {
7474
auto layout_node = create_layout_node(styled_node);
7575
if (!layout_node)
7676
return nullptr;
7777
if (styled_node.has_children()) {
7878
for (auto* styled_child = styled_node.first_child(); styled_child; styled_child = styled_child->next_sibling()) {
79-
auto layout_child = build_layout_tree(*styled_child, layout_node.ptr());
79+
auto layout_child = build_layout_tree(*styled_child);
8080
if (!layout_child)
8181
continue;
8282
layout_node->append_child(*layout_child);
@@ -85,7 +85,7 @@ RefPtr<LayoutNode> Frame::generate_layout_tree(const StyledNode& styled_root)
8585
return layout_node;
8686
};
8787

88-
return build_layout_tree(styled_root, nullptr);
88+
return build_layout_tree(styled_root);
8989
}
9090

9191
void Frame::layout()

0 commit comments

Comments
 (0)