mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
Encapsulate to-be-cleaned-up refcounted pointers.
This will allow us to make them Send in the future.
This commit is contained in:
parent
8df0ee2bb5
commit
7d1b567744
2 changed files with 9 additions and 5 deletions
|
@ -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<Runnable+Send>),
|
||||
/// 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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue