aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/document_loader.rs
diff options
context:
space:
mode:
authorDavid Winslow <cdwinslow@gmail.com>2015-07-01 16:31:07 -0400
committerDavid Winslow <cdwinslow@gmail.com>2015-07-01 18:27:06 -0400
commit4cf46bff2d00f33a8866dc6880c8f6178fdf81a4 (patch)
treebfa5da23abf5d88edd40c26486e34b0cf40383d9 /components/script/document_loader.rs
parente958d92be6c35234bcffce2d4e74ece585de02e4 (diff)
downloadservo-4cf46bff2d00f33a8866dc6880c8f6178fdf81a4.tar.gz
servo-4cf46bff2d00f33a8866dc6880c8f6178fdf81a4.zip
Refactor #[jstraceable] to #[derive(JSTraceable)]
fixes #6524
Diffstat (limited to 'components/script/document_loader.rs')
-rw-r--r--components/script/document_loader.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/components/script/document_loader.rs b/components/script/document_loader.rs
index 7520bac32cb..a59b4895b9e 100644
--- a/components/script/document_loader.rs
+++ b/components/script/document_loader.rs
@@ -11,8 +11,7 @@ use net_traits::{Metadata, load_whole_resource, ResourceTask, PendingAsyncLoad};
use net_traits::AsyncResponseTarget;
use url::Url;
-#[jstraceable]
-#[derive(PartialEq, Clone, Debug)]
+#[derive(JSTraceable, PartialEq, Clone, Debug)]
pub enum LoadType {
Image(Url),
Script(Url),
@@ -33,14 +32,14 @@ impl LoadType {
}
}
-#[jstraceable]
+#[derive(JSTraceable)]
pub struct DocumentLoader {
pub resource_task: ResourceTask,
notifier_data: Option<NotifierData>,
blocking_loads: Vec<LoadType>,
}
-#[jstraceable]
+#[derive(JSTraceable)]
pub struct NotifierData {
pub script_chan: Box<ScriptChan + Send>,
pub pipeline: PipelineId,