mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:48:11 +00:00
LibWeb: LayoutMode line_break_policy => LayoutMode layout_mode
This commit is contained in:
parent
a8f0e4d56e
commit
35040dd2c4
11 changed files with 41 additions and 41 deletions
|
@ -46,10 +46,10 @@ LayoutNode::~LayoutNode()
|
|||
m_node->set_layout_node({}, nullptr);
|
||||
}
|
||||
|
||||
void LayoutNode::layout(LayoutMode line_break_policy)
|
||||
void LayoutNode::layout(LayoutMode layout_mode)
|
||||
{
|
||||
for_each_child([&](auto& child) {
|
||||
child.layout(line_break_policy);
|
||||
child.layout(layout_mode);
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -111,11 +111,11 @@ LayoutDocument& LayoutNode::root()
|
|||
return *document().layout_node();
|
||||
}
|
||||
|
||||
void LayoutNode::split_into_lines(LayoutBlock& container, LayoutMode line_break_policy)
|
||||
void LayoutNode::split_into_lines(LayoutBlock& container, LayoutMode layout_mode)
|
||||
{
|
||||
for_each_child([&](auto& child) {
|
||||
if (child.is_inline()) {
|
||||
child.split_into_lines(container, line_break_policy);
|
||||
child.split_into_lines(container, layout_mode);
|
||||
} else {
|
||||
// FIXME: Support block children of inlines.
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue