aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
diff options
context:
space:
mode:
Diffstat (limited to 'components/script')
-rw-r--r--components/script/dom/htmlimageelement.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/htmlimageelement.rs b/components/script/dom/htmlimageelement.rs
index 92291600ca3..c0a9e960385 100644
--- a/components/script/dom/htmlimageelement.rs
+++ b/components/script/dom/htmlimageelement.rs
@@ -369,7 +369,7 @@ impl VirtualMethods for HTMLImageElement {
&atom!("src") => {
self.update_image(mutation.new_value(attr).map(|value| {
// FIXME(ajeffrey): convert directly from AttrValue to DOMString
- (DOMString::from(&**value), window_from_node(self).get_url())
+ (DOMString::from(&**value), document_from_node(self).base_url())
}));
},
_ => {},