mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Reorganize document creation so it occurs after we have a final URL.
This commit is contained in:
parent
94de93b3a3
commit
542e8d52d5
2 changed files with 48 additions and 49 deletions
|
@ -210,8 +210,7 @@ impl<'a> DocumentHelpers<'a> for JSRef<'a, Document> {
|
|||
}
|
||||
|
||||
fn url(self) -> Url {
|
||||
let window = self.window().root();
|
||||
window.page().get_url()
|
||||
self.url.clone()
|
||||
}
|
||||
|
||||
fn quirks_mode(self) -> QuirksMode {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue