mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Issue #9561 Renamed *_thread_source to *_task_source and ThreadSource to TaskSource
This commit is contained in:
parent
3f74c07e20
commit
076cc409e6
8 changed files with 96 additions and 96 deletions
|
@ -53,8 +53,8 @@ use page::Page;
|
|||
use profile_traits::mem;
|
||||
use reporter::CSSErrorReporter;
|
||||
use rustc_serialize::base64::{FromBase64, STANDARD, ToBase64};
|
||||
use script_thread::{DOMManipulationThreadSource, UserInteractionThreadSource, NetworkingThreadSource};
|
||||
use script_thread::{HistoryTraversalThreadSource, FileReadingThreadSource, SendableMainThreadScriptChan};
|
||||
use script_thread::{DOMManipulationTaskSource, UserInteractionTaskSource, NetworkingTaskSource};
|
||||
use script_thread::{HistoryTraversalTaskSource, FileReadingTaskSource, SendableMainThreadScriptChan};
|
||||
use script_thread::{ScriptChan, ScriptPort, MainThreadScriptChan, MainThreadScriptMsg, RunnableWrapper};
|
||||
use script_traits::ConstellationControlMsg;
|
||||
use script_traits::{DocumentState, MsDuration, ScriptToCompositorMsg, TimerEvent, TimerEventId};
|
||||
|
@ -120,16 +120,16 @@ pub struct Window {
|
|||
eventtarget: EventTarget,
|
||||
#[ignore_heap_size_of = "trait objects are hard"]
|
||||
script_chan: MainThreadScriptChan,
|
||||
#[ignore_heap_size_of = "thread sources are hard"]
|
||||
dom_manipulation_thread_source: DOMManipulationThreadSource,
|
||||
#[ignore_heap_size_of = "thread sources are hard"]
|
||||
user_interaction_thread_source: UserInteractionThreadSource,
|
||||
#[ignore_heap_size_of = "thread sources are hard"]
|
||||
networking_thread_source: NetworkingThreadSource,
|
||||
#[ignore_heap_size_of = "thread sources are hard"]
|
||||
history_traversal_thread_source: HistoryTraversalThreadSource,
|
||||
#[ignore_heap_size_of = "thread sources are hard"]
|
||||
file_reading_thread_source: FileReadingThreadSource,
|
||||
#[ignore_heap_size_of = "task sources are hard"]
|
||||
dom_manipulation_task_source: DOMManipulationTaskSource,
|
||||
#[ignore_heap_size_of = "task sources are hard"]
|
||||
user_interaction_task_source: UserInteractionTaskSource,
|
||||
#[ignore_heap_size_of = "task sources are hard"]
|
||||
networking_task_source: NetworkingTaskSource,
|
||||
#[ignore_heap_size_of = "task sources are hard"]
|
||||
history_traversal_task_source: HistoryTraversalTaskSource,
|
||||
#[ignore_heap_size_of = "task sources are hard"]
|
||||
file_reading_task_source: FileReadingTaskSource,
|
||||
console: MutNullableHeap<JS<Console>>,
|
||||
crypto: MutNullableHeap<JS<Crypto>>,
|
||||
navigator: MutNullableHeap<JS<Navigator>>,
|
||||
|
@ -253,24 +253,24 @@ impl Window {
|
|||
self.js_runtime.borrow().as_ref().unwrap().cx()
|
||||
}
|
||||
|
||||
pub fn dom_manipulation_thread_source(&self) -> Box<ScriptChan + Send> {
|
||||
self.dom_manipulation_thread_source.clone()
|
||||
pub fn dom_manipulation_task_source(&self) -> Box<ScriptChan + Send> {
|
||||
self.dom_manipulation_task_source.clone()
|
||||
}
|
||||
|
||||
pub fn user_interaction_thread_source(&self) -> Box<ScriptChan + Send> {
|
||||
self.user_interaction_thread_source.clone()
|
||||
pub fn user_interaction_task_source(&self) -> Box<ScriptChan + Send> {
|
||||
self.user_interaction_task_source.clone()
|
||||
}
|
||||
|
||||
pub fn networking_thread_source(&self) -> Box<ScriptChan + Send> {
|
||||
self.networking_thread_source.clone()
|
||||
pub fn networking_task_source(&self) -> Box<ScriptChan + Send> {
|
||||
self.networking_task_source.clone()
|
||||
}
|
||||
|
||||
pub fn history_traversal_thread_source(&self) -> Box<ScriptChan + Send> {
|
||||
self.history_traversal_thread_source.clone()
|
||||
pub fn history_traversal_task_source(&self) -> Box<ScriptChan + Send> {
|
||||
self.history_traversal_task_source.clone()
|
||||
}
|
||||
|
||||
pub fn file_reading_thread_source(&self) -> Box<ScriptChan + Send> {
|
||||
self.file_reading_thread_source.clone()
|
||||
pub fn file_reading_task_source(&self) -> Box<ScriptChan + Send> {
|
||||
self.file_reading_task_source.clone()
|
||||
}
|
||||
|
||||
pub fn main_thread_script_chan(&self) -> &Sender<MainThreadScriptMsg> {
|
||||
|
@ -1292,11 +1292,11 @@ impl Window {
|
|||
pub fn new(runtime: Rc<Runtime>,
|
||||
page: Rc<Page>,
|
||||
script_chan: MainThreadScriptChan,
|
||||
dom_thread_source: DOMManipulationThreadSource,
|
||||
user_thread_source: UserInteractionThreadSource,
|
||||
network_thread_source: NetworkingThreadSource,
|
||||
history_thread_source: HistoryTraversalThreadSource,
|
||||
file_thread_source: FileReadingThreadSource,
|
||||
dom_task_source: DOMManipulationTaskSource,
|
||||
user_task_source: UserInteractionTaskSource,
|
||||
network_task_source: NetworkingTaskSource,
|
||||
history_task_source: HistoryTraversalTaskSource,
|
||||
file_task_source: FileReadingTaskSource,
|
||||
image_cache_chan: ImageCacheChan,
|
||||
compositor: IpcSender<ScriptToCompositorMsg>,
|
||||
image_cache_thread: ImageCacheThread,
|
||||
|
@ -1326,11 +1326,11 @@ impl Window {
|
|||
let win = box Window {
|
||||
eventtarget: EventTarget::new_inherited(),
|
||||
script_chan: script_chan,
|
||||
dom_manipulation_thread_source: dom_thread_source,
|
||||
user_interaction_thread_source: user_thread_source,
|
||||
networking_thread_source: network_thread_source,
|
||||
history_traversal_thread_source: history_thread_source,
|
||||
file_reading_thread_source: file_thread_source,
|
||||
dom_manipulation_task_source: dom_task_source,
|
||||
user_interaction_task_source: user_task_source,
|
||||
networking_task_source: network_task_source,
|
||||
history_traversal_task_source: history_task_source,
|
||||
file_reading_task_source: file_task_source,
|
||||
image_cache_chan: image_cache_chan,
|
||||
console: Default::default(),
|
||||
crypto: Default::default(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue