mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Return a reference in BrowserContext::active_document()
This commit is contained in:
parent
6c7f37061b
commit
1f31d5b856
3 changed files with 5 additions and 6 deletions
|
@ -381,7 +381,7 @@ impl WindowMethods for Window {
|
|||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-document-0
|
||||
fn Document(&self) -> Root<Document> {
|
||||
self.browsing_context().as_ref().unwrap().active_document()
|
||||
Root::from_ref(self.browsing_context().as_ref().unwrap().active_document())
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-location
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue