mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Stop using UnsafeNode in the parallel traversal.
\o/ \o/ \o/
This commit is contained in:
parent
b3cb786c81
commit
ea6a61af59
2 changed files with 29 additions and 19 deletions
|
@ -269,7 +269,7 @@ pub trait TElement : PartialEq + Debug + Sized + Copy + Clone + ElementExt + Pre
|
|||
/// (including but not limited to the traversal) where we need to send DOM
|
||||
/// objects to other threads.
|
||||
|
||||
#[derive(Debug, PartialEq)]
|
||||
#[derive(Clone, Debug, PartialEq)]
|
||||
pub struct SendNode<N: TNode>(N);
|
||||
unsafe impl<N: TNode> Send for SendNode<N> {}
|
||||
impl<N: TNode> SendNode<N> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue