diff options
author | Ms2ger <Ms2ger@gmail.com> | 2016-06-16 00:51:23 +0100 |
---|---|---|
committer | Ms2ger <Ms2ger@gmail.com> | 2016-06-20 19:08:06 +0200 |
commit | 68d603a6d0a059965d2fa604d153b531cb16d404 (patch) | |
tree | cca1ff5fd05f7bc94682acf8ff00f50dafab11a5 /components/script/dom/node.rs | |
parent | 0616a60fd96199426d04cd75467906fca243af9c (diff) | |
download | servo-68d603a6d0a059965d2fa604d153b531cb16d404.tar.gz servo-68d603a6d0a059965d2fa604d153b531cb16d404.zip |
Move TrustedNodeAddress to script_layout_interface.
Diffstat (limited to 'components/script/dom/node.rs')
-rw-r--r-- | components/script/dom/node.rs | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs index cf3257e7137..fdb9deed87b 100644 --- a/components/script/dom/node.rs +++ b/components/script/dom/node.rs @@ -62,7 +62,7 @@ use msg::constellation_msg::PipelineId; use parse::html::parse_html_fragment; use ref_slice::ref_slice; use script_layout_interface::{HTMLCanvasData, OpaqueStyleAndLayoutData}; -use script_layout_interface::{LayoutNodeType, LayoutElementType}; +use script_layout_interface::{LayoutNodeType, LayoutElementType, TrustedNodeAddress}; use script_traits::UntrustedNodeAddress; use selectors::matching::matches; use selectors::parser::Selector; @@ -2409,17 +2409,6 @@ impl NodeMethods for Node { } } - - -/// The address of a node known to be valid. These are sent from script to layout, -/// and are also used in the HTML parser interface. - -#[derive(Clone, PartialEq, Eq, Copy)] -pub struct TrustedNodeAddress(pub *const c_void); - -#[allow(unsafe_code)] -unsafe impl Send for TrustedNodeAddress {} - pub fn document_from_node<T: DerivedFrom<Node> + Reflectable>(derived: &T) -> Root<Document> { derived.upcast().owner_doc() } |