diff options
author | Ms2ger <Ms2ger@gmail.com> | 2016-06-15 00:00:28 +0100 |
---|---|---|
committer | Ms2ger <Ms2ger@gmail.com> | 2016-06-20 19:02:38 +0200 |
commit | 6aaf3e6a0153725c2c458b791cc18c72c1e46115 (patch) | |
tree | 1aeffc3f35d17256cf10590f30933b79c9bff879 /components/script/dom/node.rs | |
parent | 5cab8ff8d243038f498922c5960e1161bd8aafd7 (diff) | |
download | servo-6aaf3e6a0153725c2c458b791cc18c72c1e46115.tar.gz servo-6aaf3e6a0153725c2c458b791cc18c72c1e46115.zip |
Move OpaqueStyleAndLayoutData to script_layout_interface.
Diffstat (limited to 'components/script/dom/node.rs')
-rw-r--r-- | components/script/dom/node.rs | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs index 4554ac3210c..a6834d487d4 100644 --- a/components/script/dom/node.rs +++ b/components/script/dom/node.rs @@ -5,7 +5,6 @@ //! The core DOM types. Defines the basic DOM hierarchy as well as all the HTML elements. use app_units::Au; -use core::nonzero::NonZero; use devtools_traits::NodeInfo; use document_loader::DocumentLoader; use dom::attr::Attr; @@ -62,6 +61,7 @@ use libc::{self, c_void, uintptr_t}; use msg::constellation_msg::PipelineId; use parse::html::parse_html_fragment; use ref_slice::ref_slice; +use script_layout_interface::OpaqueStyleAndLayoutData; use script_traits::UntrustedNodeAddress; use selectors::matching::matches; use selectors::parser::Selector; @@ -184,18 +184,6 @@ enum SuppressObserver { Unsuppressed } -#[derive(Copy, Clone, HeapSizeOf)] -pub struct OpaqueStyleAndLayoutData { - #[ignore_heap_size_of = "TODO(#6910) Box value that should be counted but \ - the type lives in layout"] - pub ptr: NonZero<*mut ()> -} - -#[allow(unsafe_code)] -unsafe impl Send for OpaqueStyleAndLayoutData {} - -no_jsmanaged_fields!(OpaqueStyleAndLayoutData); - impl Node { /// Sends the style and layout data, if any, back to the layout thread to be destroyed. pub fn dispose(&self, data: OpaqueStyleAndLayoutData) { |