diff options
Diffstat (limited to 'components/script')
-rw-r--r-- | components/script/Cargo.toml | 16 | ||||
-rw-r--r-- | components/script/dom/bindings/utils.rs | 3 | ||||
-rw-r--r-- | components/script/dom/node.rs | 2 | ||||
-rw-r--r-- | components/script/mem.rs | 2 |
4 files changed, 12 insertions, 11 deletions
diff --git a/components/script/Cargo.toml b/components/script/Cargo.toml index e3c4f3a1988..ef93986c204 100644 --- a/components/script/Cargo.toml +++ b/components/script/Cargo.toml @@ -63,16 +63,16 @@ features = ["unstable"] path = "../gfx_traits" [dependencies] -app_units = {version = "0.2", features = ["plugins"]} +app_units = {version = "0.2.1", features = ["plugins"]} bitflags = "0.3" caseless = "0.1.0" -cssparser = {version = "0.5.2", features = ["heap_size", "serde-serialization"]} +cssparser = {version = "0.5.3", features = ["heap_size", "serde-serialization"]} encoding = "0.2" -euclid = {version = "0.6.1", features = ["plugins"]} +euclid = {version = "0.6.2", features = ["plugins"]} fnv = "1.0" -heapsize = "0.2.5" +heapsize = "0.3.0" heapsize_plugin = "0.1.2" -html5ever = {version = "0.5.0", features = ["heap_size", "unstable"]} +html5ever = {version = "0.5.1", features = ["heap_size", "unstable"]} hyper = { version = "0.7", features = [ "serde-serialization" ] } image = "0.5.0" libc = "0.2" @@ -81,12 +81,12 @@ num = "0.1.24" rand = "0.3" ref_slice = "0.1.0" rustc-serialize = "0.3" -selectors = {version = "0.4.1", features = ["heap_size"]} +selectors = {version = "0.4.2", features = ["heap_size"]} serde = "0.6" smallvec = "0.1" -string_cache = {version = "0.2.7", features = ["heap_size", "unstable"]} +string_cache = {version = "0.2.9", features = ["heap_size", "unstable"]} time = "0.1.12" unicase = "1.0" -url = {version = "0.5.4", features = ["heap_size"]} +url = {version = "0.5.5", features = ["heap_size"]} uuid = "0.1.16" websocket = "0.14.0" diff --git a/components/script/dom/bindings/utils.rs b/components/script/dom/bindings/utils.rs index 83e7a2e4cb2..ba887934798 100644 --- a/components/script/dom/bindings/utils.rs +++ b/components/script/dom/bindings/utils.rs @@ -36,6 +36,7 @@ use js::{JS_CALLEE}; use libc::{self, c_uint}; use std::default::Default; use std::ffi::CString; +use std::os::raw::c_void; use std::ptr; use util::non_geckolib::jsstring_to_str; @@ -91,7 +92,7 @@ pub struct DOMClass { pub type_id: TopTypeId, /// The HeapSizeOf function wrapper for that interface. - pub heap_size_of: unsafe fn(*const libc::c_void) -> usize, + pub heap_size_of: unsafe fn(*const c_void) -> usize, } unsafe impl Sync for DOMClass {} diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs index aef4192dc6e..5e02dc3d0e6 100644 --- a/components/script/dom/node.rs +++ b/components/script/dom/node.rs @@ -2446,7 +2446,7 @@ impl HeapSizeOf for UniqueId { #[allow(unsafe_code)] fn heap_size_of_children(&self) -> usize { if let &Some(ref uuid) = unsafe { &*self.cell.get() } { - heap_size_of(&** uuid as *const Uuid as *const c_void) + unsafe { heap_size_of(&** uuid as *const Uuid as *const _) } } else { 0 } diff --git a/components/script/mem.rs b/components/script/mem.rs index e276b1a5c3d..9e10140392e 100644 --- a/components/script/mem.rs +++ b/components/script/mem.rs @@ -7,7 +7,7 @@ use dom::bindings::conversions::get_dom_class; use dom::bindings::reflector::Reflectable; use heapsize::{HeapSizeOf, heap_size_of}; -use libc::c_void; +use std::os::raw::c_void; // This is equivalent to measuring a Box<T>, except that DOM objects lose their // associated box in order to stash their pointers in a reserved slot of their |