Add url getter to Page and fix users of Page url with it.(fixes #1762)

This commit is contained in:
lpy 2014-02-27 23:22:48 +08:00
parent 94a12469f0
commit 8fc5ba5dc6
5 changed files with 13 additions and 7 deletions

View file

@ -91,7 +91,7 @@ impl HTMLImageElement {
if "src" == name {
let document = self.htmlelement.element.node.owner_doc();
let window = document.get().window.get();
let url = window.page.url.as_ref().map(|&(ref url, _)| url.clone());
let url = Some(window.get_url());
self.update_image(Some(value), url);
}
}