mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Return a reference in Document::window()
This commit is contained in:
parent
e889b0914b
commit
409b5e3695
12 changed files with 31 additions and 39 deletions
|
@ -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> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue