aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/page.rs
diff options
context:
space:
mode:
authornxnfufunezn <nxnfufunezn@gmail.com>2015-10-31 17:41:00 +0530
committernxnfufunezn <nxnfufunezn@gmail.com>2015-10-31 18:15:16 +0530
commitd8ef3809a6c73922a5affc475f623a0f1152be28 (patch)
tree282199e1d9c244c20d62f35b7f6517913d2e37f0 /components/script/page.rs
parent521a87180a85709f8f704df33537f79bd131bf71 (diff)
downloadservo-d8ef3809a6c73922a5affc475f623a0f1152be28.tar.gz
servo-d8ef3809a6c73922a5affc475f623a0f1152be28.zip
Removed JS::root Fixes #8251
Diffstat (limited to 'components/script/page.rs')
-rw-r--r--components/script/page.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/page.rs b/components/script/page.rs
index b6b35c6119a..67cb1ca46ed 100644
--- a/components/script/page.rs
+++ b/components/script/page.rs
@@ -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