mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Implement user interaction task source
This commit is contained in:
parent
12a96f7194
commit
cc049515dc
8 changed files with 71 additions and 59 deletions
|
@ -18,8 +18,10 @@ impl TaskSource<DOMManipulationTask> for DOMManipulationTaskSource {
|
|||
fn queue(&self, msg: DOMManipulationTask) -> Result<(), ()> {
|
||||
self.0.send(MainThreadScriptMsg::DOMManipulation(msg)).map_err(|_| ())
|
||||
}
|
||||
}
|
||||
|
||||
fn clone(&self) -> Box<TaskSource<DOMManipulationTask> + Send> {
|
||||
impl DOMManipulationTaskSource {
|
||||
pub fn clone(&self) -> Box<TaskSource<DOMManipulationTask> + Send> {
|
||||
box DOMManipulationTaskSource((&self.0).clone())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue