mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Implement TaskSource for HistoryTraversal
And remove the method in window that returns it, because it isn't used so far.
This commit is contained in:
parent
b1a2b6b5bf
commit
14bc8ab754
6 changed files with 42 additions and 15 deletions
|
@ -381,12 +381,9 @@ impl Window {
|
|||
self.networking_task_source.clone()
|
||||
}
|
||||
|
||||
pub fn history_traversal_task_source(&self) -> Box<dyn ScriptChan + Send> {
|
||||
self.history_traversal_task_source.clone()
|
||||
}
|
||||
|
||||
pub fn file_reading_task_source(&self) -> FileReadingTaskSource {
|
||||
self.file_reading_task_source.clone()
|
||||
pub fn file_reading_task_source(&self) -> TaskManagement<FileReadingTaskSource> {
|
||||
let canceller = self.task_canceller(TaskSourceName::FileReading);
|
||||
TaskManagement(self.file_reading_task_source.clone(), canceller)
|
||||
}
|
||||
|
||||
pub fn performance_timeline_task_source(&self) -> PerformanceTimelineTaskSource {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue