mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Make DOM getters that return &JS<T> return Temporary<T> instead #3707
This commit is contained in:
parent
590a93120a
commit
daf9e59869
3 changed files with 4 additions and 4 deletions
|
@ -39,7 +39,7 @@ impl BrowserContext {
|
|||
|
||||
pub fn active_window(&self) -> Temporary<Window> {
|
||||
let doc = self.active_document().root();
|
||||
Temporary::new(doc.window().clone())
|
||||
doc.window()
|
||||
}
|
||||
|
||||
pub fn window_proxy(&self) -> *mut JSObject {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue