aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
diff options
context:
space:
mode:
authorFernando Jiménez Moreno <ferjmoreno@gmail.com>2019-03-07 15:51:11 +0100
committerFernando Jiménez Moreno <ferjmoreno@gmail.com>2019-04-26 11:42:38 +0200
commitefbfc0f9398d864efaa699f22fc329ddffe3cc1d (patch)
tree4640c3ce6e104f2f602d7130b5acbd6b73ccfb80 /components/script
parent5a165c6bd85857578fadeb627a78d45afe4949f2 (diff)
downloadservo-efbfc0f9398d864efaa699f22fc329ddffe3cc1d.tar.gz
servo-efbfc0f9398d864efaa699f22fc329ddffe3cc1d.zip
Make devtools find node by unique id function include shadow trees
Diffstat (limited to 'components/script')
-rw-r--r--components/script/devtools.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/devtools.rs b/components/script/devtools.rs
index 9abeb5cf988..087930042e6 100644
--- a/components/script/devtools.rs
+++ b/components/script/devtools.rs
@@ -103,7 +103,7 @@ fn find_node_by_unique_id(
documents.find_document(pipeline).and_then(|document| {
document
.upcast::<Node>()
- .traverse_preorder(ShadowIncluding::No)
+ .traverse_preorder(ShadowIncluding::Yes)
.find(|candidate| candidate.unique_id() == node_id)
})
}