refactor(layout_2020): add depth parameter to the closure passed to FragmentTree::find

This commit is contained in:
yvt 2021-06-16 00:40:38 +09:00
parent 98cffa3d16
commit 638941ac43
3 changed files with 19 additions and 16 deletions

View file

@ -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,