mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Pass a &mut Flow to traverse_flow_tree_preorder.
This commit is contained in:
parent
0efa583df4
commit
fa0e198c8f
3 changed files with 7 additions and 9 deletions
|
@ -41,7 +41,7 @@ pub fn resolve_generated_content(root: &mut Flow, shared_layout_context: &Shared
|
|||
doit(root, 0, &mut traversal)
|
||||
}
|
||||
|
||||
pub fn traverse_flow_tree_preorder(root: &mut FlowRef,
|
||||
pub fn traverse_flow_tree_preorder(root: &mut Flow,
|
||||
shared_layout_context: &SharedLayoutContext) {
|
||||
fn doit(flow: &mut Flow,
|
||||
assign_inline_sizes: AssignISizes,
|
||||
|
@ -61,8 +61,6 @@ pub fn traverse_flow_tree_preorder(root: &mut FlowRef,
|
|||
|
||||
let layout_context = LayoutContext::new(shared_layout_context);
|
||||
|
||||
let root = flow_ref::deref_mut(root);
|
||||
|
||||
if opts::get().bubble_inline_sizes_separately {
|
||||
let bubble_inline_sizes = BubbleISizes { layout_context: &layout_context };
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue