mirror of
https://github.com/servo/servo.git
synced 2025-10-08 20:49:24 +01:00
Root Temporary values for the duration of their lifetime.
This commit is contained in:
parent
522d3f167b
commit
a09a4bd297
3 changed files with 30 additions and 15 deletions
|
@ -342,7 +342,7 @@ impl Window {
|
|||
script_chan: ScriptChan,
|
||||
compositor: ~ScriptListener,
|
||||
image_cache_task: ImageCacheTask)
|
||||
-> Temporary<Window> {
|
||||
-> JS<Window> {
|
||||
let win = ~Window {
|
||||
eventtarget: EventTarget::new_inherited(WindowTypeId),
|
||||
script_chan: script_chan,
|
||||
|
@ -357,6 +357,6 @@ impl Window {
|
|||
browser_context: None,
|
||||
};
|
||||
|
||||
Temporary::new(WindowBinding::Wrap(cx, win))
|
||||
WindowBinding::Wrap(cx, win)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue