mirror of
https://github.com/servo/servo.git
synced 2025-06-10 17:43:16 +00:00
Make devtools find node by unique id function include shadow trees
This commit is contained in:
parent
5a165c6bd8
commit
efbfc0f939
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ fn find_node_by_unique_id(
|
||||||
documents.find_document(pipeline).and_then(|document| {
|
documents.find_document(pipeline).and_then(|document| {
|
||||||
document
|
document
|
||||||
.upcast::<Node>()
|
.upcast::<Node>()
|
||||||
.traverse_preorder(ShadowIncluding::No)
|
.traverse_preorder(ShadowIncluding::Yes)
|
||||||
.find(|candidate| candidate.unique_id() == node_id)
|
.find(|candidate| candidate.unique_id() == node_id)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue