mirror of
https://github.com/servo/servo.git
synced 2025-06-08 00:23:30 +00:00
Move TrustedNodeAddress to script_layout_interface.
This commit is contained in:
parent
0616a60fd9
commit
68d603a6d0
9 changed files with 19 additions and 18 deletions
|
@ -22,6 +22,7 @@ extern crate core;
|
|||
extern crate gfx_traits;
|
||||
extern crate heapsize;
|
||||
extern crate ipc_channel;
|
||||
extern crate libc;
|
||||
extern crate msg;
|
||||
extern crate range;
|
||||
extern crate selectors;
|
||||
|
@ -36,6 +37,7 @@ pub mod wrapper_traits;
|
|||
use canvas_traits::CanvasMsg;
|
||||
use core::nonzero::NonZero;
|
||||
use ipc_channel::ipc::IpcSender;
|
||||
use libc::c_void;
|
||||
use restyle_damage::RestyleDamage;
|
||||
use std::cell::RefCell;
|
||||
use style::servo::PrivateStyleData;
|
||||
|
@ -87,3 +89,10 @@ pub struct HTMLCanvasData {
|
|||
pub width: u32,
|
||||
pub height: u32,
|
||||
}
|
||||
|
||||
/// The address of a node known to be valid. These are sent from script to layout.
|
||||
#[derive(Clone, PartialEq, Eq, Copy)]
|
||||
pub struct TrustedNodeAddress(pub *const c_void);
|
||||
|
||||
#[allow(unsafe_code)]
|
||||
unsafe impl Send for TrustedNodeAddress {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue