mirror of
https://github.com/servo/servo.git
synced 2025-08-02 04:00:32 +01:00
Create a StructuredCloneData struct to encapsulate the result of a structured clone.
This commit is contained in:
parent
1834359f16
commit
57aaa60fa5
5 changed files with 35 additions and 14 deletions
|
@ -19,6 +19,7 @@ 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::structuredclone::StructuredCloneData;
|
||||
use dom::bindings::trace::JSTraceable;
|
||||
use dom::bindings::utils::{wrap_for_same_compartment, pre_wrap};
|
||||
use dom::document::{Document, IsHTMLDocument, DocumentHelpers, DocumentSource};
|
||||
|
@ -77,7 +78,6 @@ use js;
|
|||
use url::Url;
|
||||
|
||||
use libc;
|
||||
use libc::size_t;
|
||||
use std::any::{Any, AnyRefExt};
|
||||
use std::cell::Cell;
|
||||
use std::comm::{channel, Sender, Receiver, Select};
|
||||
|
@ -120,7 +120,7 @@ pub enum ScriptMsg {
|
|||
ExitWindow(PipelineId),
|
||||
/// Message sent through Worker.postMessage (only dispatched to
|
||||
/// DedicatedWorkerGlobalScope).
|
||||
DOMMessage(*mut u64, size_t),
|
||||
DOMMessage(StructuredCloneData),
|
||||
/// Generic message that encapsulates event handling.
|
||||
RunnableMsg(Box<Runnable+Send>),
|
||||
/// A DOM object's last pinned reference was removed (dispatched to all tasks).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue