aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/task_source/dom_manipulation.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2016-06-03 10:40:07 -0500
committerbors-servo <lbergstrom+bors@mozilla.com>2016-06-03 10:40:07 -0500
commite75339ca0c5f5aea68be8ef08a28e77e70bd59a8 (patch)
treea08b5fac2a31d6affea43e8f79386da7861c2b6e /components/script/task_source/dom_manipulation.rs
parent1f5b0008ac763bbb2209a70afddb6434d18cff9d (diff)
parent0861b701d541595daad045317ae21e4174a6613e (diff)
downloadservo-e75339ca0c5f5aea68be8ef08a28e77e70bd59a8.tar.gz
servo-e75339ca0c5f5aea68be8ef08a28e77e70bd59a8.zip
Auto merge of #11571 - Ms2ger:derive-clone, r=nox
Derive Clone for DOMManipulationTaskSource, UserInteractionTaskSource. <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11571) <!-- Reviewable:end -->
Diffstat (limited to 'components/script/task_source/dom_manipulation.rs')
-rw-r--r--components/script/task_source/dom_manipulation.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/components/script/task_source/dom_manipulation.rs b/components/script/task_source/dom_manipulation.rs
index 67cac79c48c..daf212d8c52 100644
--- a/components/script/task_source/dom_manipulation.rs
+++ b/components/script/task_source/dom_manipulation.rs
@@ -11,7 +11,7 @@ use std::sync::mpsc::Sender;
use string_cache::Atom;
use task_source::TaskSource;
-#[derive(JSTraceable)]
+#[derive(JSTraceable, Clone)]
pub struct DOMManipulationTaskSource(pub Sender<MainThreadScriptMsg>);
impl TaskSource<DOMManipulationTask> for DOMManipulationTaskSource {
@@ -36,10 +36,6 @@ impl DOMManipulationTaskSource {
let _ = self.0.send(MainThreadScriptMsg::DOMManipulation(DOMManipulationTask::FireSimpleEvent(
target, name)));
}
-
- pub fn clone(&self) -> DOMManipulationTaskSource {
- DOMManipulationTaskSource((&self.0).clone())
- }
}
pub enum DOMManipulationTask {