mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Make DangerousThreadSafeLayoutNode public. :-(
I'm open to suggestions on how to do this better.
This commit is contained in:
parent
da8952b702
commit
6637626e02
1 changed files with 3 additions and 2 deletions
|
@ -975,8 +975,9 @@ pub trait ThreadSafeLayoutNode<'ln> : Clone + Copy + Sized {
|
|||
fn get_colspan(&self) -> u32;
|
||||
}
|
||||
|
||||
// These can violate the thread-safety and therefore are not public.
|
||||
trait DangerousThreadSafeLayoutNode<'ln> : ThreadSafeLayoutNode<'ln> {
|
||||
// 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!
|
||||
pub trait DangerousThreadSafeLayoutNode<'ln> : ThreadSafeLayoutNode<'ln> {
|
||||
unsafe fn dangerous_first_child(&self) -> Option<Self>;
|
||||
unsafe fn dangerous_next_sibling(&self) -> Option<Self>;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue