From 7d1b567744747450c6e27172f088a451a6d87544 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Wed, 21 Jan 2015 20:04:51 +0100 Subject: Encapsulate to-be-cleaned-up refcounted pointers. This will allow us to make them Send in the future. --- components/script/script_task.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'components/script/script_task.rs') diff --git a/components/script/script_task.rs b/components/script/script_task.rs index d75f1f06c9e..64ffedda065 100644 --- a/components/script/script_task.rs +++ b/components/script/script_task.rs @@ -18,7 +18,7 @@ use dom::bindings::conversions::StringificationBehavior; use dom::bindings::global::GlobalRef; use dom::bindings::js::{JS, JSRef, Temporary, OptionalRootable}; use dom::bindings::js::{RootCollection, RootCollectionPtr}; -use dom::bindings::refcounted::{LiveDOMReferences, Trusted}; +use dom::bindings::refcounted::{LiveDOMReferences, Trusted, TrustedReference}; use dom::bindings::structuredclone::StructuredCloneData; use dom::bindings::trace::JSTraceable; use dom::bindings::utils::{wrap_for_same_compartment, pre_wrap}; @@ -77,7 +77,6 @@ use js::rust::{Cx, RtUtils}; use js; use url::Url; -use libc; use std::any::{Any, AnyRefExt}; use std::borrow::ToOwned; use std::cell::Cell; @@ -125,7 +124,7 @@ pub enum ScriptMsg { /// Generic message that encapsulates event handling. RunnableMsg(Box), /// A DOM object's last pinned reference was removed (dispatched to all tasks). - RefcountCleanup(*const libc::c_void), + RefcountCleanup(TrustedReference), } /// A cloneable interface for communicating with an event loop. -- cgit v1.2.3