diff options
author | Fernando Jiménez Moreno <ferjmoreno@gmail.com> | 2019-03-06 18:02:10 +0100 |
---|---|---|
committer | Fernando Jiménez Moreno <ferjmoreno@gmail.com> | 2019-04-26 11:42:37 +0200 |
commit | 0313e38074d4fb768c914bfe6e73ae959e098394 (patch) | |
tree | 9b0ce023206fe8fb40d06eb38bdc875fed4d63ab /components/layout_thread/dom_wrapper.rs | |
parent | b8925a0297af9d49372db9097af277bef50d59ee (diff) | |
download | servo-0313e38074d4fb768c914bfe6e73ae959e098394.tar.gz servo-0313e38074d4fb768c914bfe6e73ae959e098394.zip |
Tweak list of shadow roots attached to doc
Diffstat (limited to 'components/layout_thread/dom_wrapper.rs')
-rw-r--r-- | components/layout_thread/dom_wrapper.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/components/layout_thread/dom_wrapper.rs b/components/layout_thread/dom_wrapper.rs index cae98f7e594..d1ab90fcb0c 100644 --- a/components/layout_thread/dom_wrapper.rs +++ b/components/layout_thread/dom_wrapper.rs @@ -430,7 +430,10 @@ impl<'ld> ServoLayoutDocument<'ld> { self.document .shadow_roots() .iter() - .map(|sr| ServoShadowRoot::from_layout_js(*sr)) + .map(|sr| { + debug_assert!(sr.upcast::<Node>().get_flag(NodeFlags::IS_CONNECTED)); + ServoShadowRoot::from_layout_js(*sr) + }) .collect() } } |