mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Make task queue API usable from non-main threads.
This commit is contained in:
parent
0e4865ea1a
commit
2aef518ce6
9 changed files with 42 additions and 21 deletions
|
@ -184,7 +184,7 @@ impl HTMLImageElement {
|
|||
src: src.into(),
|
||||
};
|
||||
let task = window.dom_manipulation_task_source();
|
||||
let _ = task.queue(runnable, window);
|
||||
let _ = task.queue(runnable, GlobalRef::Window(window));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue