mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Removed JS::root Fixes #8251
This commit is contained in:
parent
521a87180a
commit
d8ef3809a6
25 changed files with 98 additions and 126 deletions
|
@ -68,11 +68,11 @@ impl Page {
|
|||
}
|
||||
|
||||
pub fn window(&self) -> Root<Window> {
|
||||
self.frame.borrow().as_ref().unwrap().window.root()
|
||||
Root::from_ref(&*self.frame.borrow().as_ref().unwrap().window)
|
||||
}
|
||||
|
||||
pub fn document(&self) -> Root<Document> {
|
||||
self.frame.borrow().as_ref().unwrap().document.root()
|
||||
Root::from_ref(&*self.frame.borrow().as_ref().unwrap().document)
|
||||
}
|
||||
|
||||
// must handle root case separately
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue