aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/task_source
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2017-09-17 10:46:00 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2017-09-17 10:46:00 +0200
commit8e78f18d2d282e651c5a8a20b2fe28cb015b264a (patch)
tree3d82596917bc9784ca2f0954db0db1b265689755 /components/script/task_source
parent1d52df0562ebac00358f03c51cf85969db4d8273 (diff)
downloadservo-8e78f18d2d282e651c5a8a20b2fe28cb015b264a.tar.gz
servo-8e78f18d2d282e651c5a8a20b2fe28cb015b264a.zip
Introduce MainThreadScriptMsg::DispatchJobQueue
This removes the last remaining use of Task::run_with_script_thread
Diffstat (limited to 'components/script/task_source')
-rw-r--r--components/script/task_source/dom_manipulation.rs16
1 files changed, 0 insertions, 16 deletions
diff --git a/components/script/task_source/dom_manipulation.rs b/components/script/task_source/dom_manipulation.rs
index 0120564806c..f7b7a6577f8 100644
--- a/components/script/task_source/dom_manipulation.rs
+++ b/components/script/task_source/dom_manipulation.rs
@@ -6,7 +6,6 @@ use dom::bindings::inheritance::Castable;
use dom::bindings::refcounted::Trusted;
use dom::event::{EventBubbles, EventCancelable, EventTask, SimpleEventTask};
use dom::eventtarget::EventTarget;
-use dom::globalscope::GlobalScope;
use dom::window::Window;
use script_runtime::{CommonScriptMsg, ScriptThreadEventCategory};
use script_thread::{MainThreadScriptMsg, Task, TaskCanceller};
@@ -43,21 +42,6 @@ impl TaskSource for DOMManipulationTaskSource {
}
impl DOMManipulationTaskSource {
- pub fn queue_main_thread_task<T>(
- &self,
- task: Box<T>,
- global: &GlobalScope,
- ) -> Result<(), ()>
- where
- T: Task + Send + 'static,
- {
- let msg = MainThreadScriptMsg::MainThreadTask(
- ScriptThreadEventCategory::ScriptEvent,
- global.task_canceller().wrap_task(task),
- );
- self.0.send(msg).map_err(|_| ())
- }
-
pub fn queue_event(&self,
target: &EventTarget,
name: Atom,