mirror of
https://github.com/servo/servo.git
synced 2025-08-09 07:25:35 +01:00
refactor(layout_2020): add depth
parameter to the closure passed to FragmentTree::find
This commit is contained in:
parent
98cffa3d16
commit
638941ac43
3 changed files with 19 additions and 16 deletions
|
@ -299,7 +299,7 @@ pub fn process_resolved_style_request<'dom>(
|
|||
None => return computed_style(),
|
||||
};
|
||||
fragment_tree
|
||||
.find(|fragment, containing_block| {
|
||||
.find(|fragment, _, containing_block| {
|
||||
let box_fragment = match fragment {
|
||||
Fragment::Box(ref box_fragment) if box_fragment.tag == tag_to_find => box_fragment,
|
||||
_ => return None,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue