diff options
Diffstat (limited to 'components/layout_thread_2020/dom_wrapper.rs')
-rw-r--r-- | components/layout_thread_2020/dom_wrapper.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/components/layout_thread_2020/dom_wrapper.rs b/components/layout_thread_2020/dom_wrapper.rs index 5d815517532..a9f09e11073 100644 --- a/components/layout_thread_2020/dom_wrapper.rs +++ b/components/layout_thread_2020/dom_wrapper.rs @@ -109,6 +109,13 @@ pub struct ServoLayoutNode<'a> { chain: PhantomData<&'a ()>, } +// Those are supposed to be sound, but they aren't because the entire system +// between script and layout so far has been designed to work around their +// absence. Switching the entire thing to the inert crate infra will help. + +unsafe impl Send for ServoLayoutNode<'_> {} +unsafe impl Sync for ServoLayoutNode<'_> {} + impl<'ln> Debug for ServoLayoutNode<'ln> { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { if let Some(el) = self.as_element() { |