mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Add the TaskSourceName to CommonScriptMsg::Task
Update QueuedTaskConversion and the TaskQueue to use it
This commit is contained in:
parent
b211e45bb0
commit
e286fdcc53
18 changed files with 134 additions and 71 deletions
|
@ -27,7 +27,7 @@ impl fmt::Debug for DOMManipulationTaskSource {
|
|||
}
|
||||
|
||||
impl TaskSource for DOMManipulationTaskSource {
|
||||
const NAME: TaskSourceName = TaskSourceName::DOMManipulation;
|
||||
const NAME: TaskSourceName = TaskSourceName::DOMManipulation;
|
||||
|
||||
fn queue_with_canceller<T>(
|
||||
&self,
|
||||
|
@ -40,7 +40,8 @@ impl TaskSource for DOMManipulationTaskSource {
|
|||
let msg = MainThreadScriptMsg::Common(CommonScriptMsg::Task(
|
||||
ScriptThreadEventCategory::ScriptEvent,
|
||||
Box::new(canceller.wrap_task(task)),
|
||||
Some(self.1)
|
||||
Some(self.1),
|
||||
DOMManipulationTaskSource::NAME,
|
||||
));
|
||||
self.0.send(msg).map_err(|_| ())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue