Return a reference in Document::window()

This commit is contained in:
Anthony Ramine 2015-10-17 02:23:25 +02:00
parent e889b0914b
commit 409b5e3695
12 changed files with 31 additions and 39 deletions

View file

@ -49,7 +49,7 @@ impl BrowsingContext {
}
pub fn active_window(&self) -> Root<Window> {
self.active_document().window()
Root::from_ref(self.active_document().window())
}
pub fn frame_element(&self) -> Option<&Element> {