mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +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
|
@ -344,8 +344,8 @@ impl Document {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub fn window<'a>(&'a self) -> &'a JS<Window> {
|
||||
&self.window
|
||||
pub fn window(&self) -> Temporary<Window> {
|
||||
Temporary::new(self.window)
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue