aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_layout_interface/wrapper_traits.rs
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2023-05-08 10:53:16 +0200
committerMartin Robinson <mrobinson@igalia.com>2023-05-12 08:18:31 +0200
commitab4bd2a13347819210728e48cefb1e8c194d9138 (patch)
treef1fafed8b353426f2365f232f1fb637411c84681 /components/script_layout_interface/wrapper_traits.rs
parent03574d81917086a36f9235e5a8f87bdc277d3442 (diff)
downloadservo-ab4bd2a13347819210728e48cefb1e8c194d9138.tar.gz
servo-ab4bd2a13347819210728e48cefb1e8c194d9138.zip
Remove DangerousThreadSafeLayoutNode
Remove this trait and replace it by two non-public functions on ServoThreadSafeLayoutNode. This requires making the iterator not generic, which simplifies things a little bit as well.
Diffstat (limited to 'components/script_layout_interface/wrapper_traits.rs')
-rw-r--r--components/script_layout_interface/wrapper_traits.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/components/script_layout_interface/wrapper_traits.rs b/components/script_layout_interface/wrapper_traits.rs
index 8ba009a7a47..8ad00794476 100644
--- a/components/script_layout_interface/wrapper_traits.rs
+++ b/components/script_layout_interface/wrapper_traits.rs
@@ -306,14 +306,6 @@ pub trait ThreadSafeLayoutNode<'dom>:
}
}
-// This trait is only public so that it can be implemented by the gecko wrapper.
-// It can be used to violate thread-safety, so don't use it elsewhere in layout!
-#[allow(unsafe_code)]
-pub trait DangerousThreadSafeLayoutNode<'dom>: ThreadSafeLayoutNode<'dom> {
- unsafe fn dangerous_first_child(&self) -> Option<Self>;
- unsafe fn dangerous_next_sibling(&self) -> Option<Self>;
-}
-
pub trait ThreadSafeLayoutElement<'dom>:
Clone
+ Copy