forked from mirrors/gecko-dev
		
	 f7c5861d34
			
		
	
	
		f7c5861d34
		
	
	
	
	
		
			
			This is a large-ish PR that contains the following: * A new directory is created under `components/script/` called `task_source`, which houses all the stuff for different task sources. Note that the ones that I have now aren't exhaustive - there are more task sources than just the generic ones. * A `DOMManipulationTaskMsg` which eliminates some usage of `Runnable`s to fire events. Instead, they send event information to the `DOMManipulationTaskSource` and lets the `ScriptTask` handle all the event firing. * Re-added `fn script_chan`, since I can't think of any other way to give `Trusted` values an appropriate sender. * Rewrote step 7 of [the end](https://html.spec.whatwg.org/multipage/syntax.html#the-end) to make use of the `DOMManipulationTaskSource` Partial #7959 Source-Repo: https://github.com/servo/servo Source-Revision: 740965e39f4d62e5807d21734ed9a7a881eca392
		
			
				
	
	
		
			16 lines
		
	
	
	
		
			479 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
	
		
			479 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| /* This Source Code Form is subject to the terms of the Mozilla Public
 | |
|  * License, v. 2.0. If a copy of the MPL was not distributed with this
 | |
|  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 | |
| 
 | |
| pub mod dom_manipulation;
 | |
| pub mod file_reading;
 | |
| pub mod history_traversal;
 | |
| pub mod networking;
 | |
| pub mod user_interaction;
 | |
| 
 | |
| use std::result::Result;
 | |
| 
 | |
| pub trait TaskSource<T> {
 | |
|     fn queue(&self, msg: T) -> Result<(), ()>;
 | |
|     fn clone(&self) -> Box<TaskSource<T> + Send>;
 | |
| }
 |