Replace Root::deref by a custom get_unsound_ref_forever method.

This will hopefully make it clearer that this is not the correct function
to call.
This commit is contained in:
Ms2ger 2015-02-05 16:28:02 +01:00
parent 40c59724b2
commit d8c2c88bbd
8 changed files with 70 additions and 61 deletions

View file

@ -64,7 +64,7 @@ impl BrowserContext {
pub fn parent(&self) -> Option<Temporary<Window>> {
self.parent.map(|p| {
p.root().browser_context().as_ref().unwrap().active_window()
p.root().r().browser_context().as_ref().unwrap().active_window()
})
}