servo: Merge #10634 - Issue #10574 Use the document base url in img (from amarant:10574-image-document-base); r=metajack

add a test with base path set to the resources path and an img with a cat and the reference directly to the image

Source-Repo: https://github.com/servo/servo
Source-Revision: 3d4416e1b0ae758e68900f725979238cc0128f8b
This commit is contained in:
Arnaud Marant 2016-04-19 20:22:18 +05:01
parent cc0ad63090
commit 11fea26f4a

View File

@ -369,7 +369,7 @@ impl VirtualMethods for HTMLImageElement {
&atom!("src") => { &atom!("src") => {
self.update_image(mutation.new_value(attr).map(|value| { self.update_image(mutation.new_value(attr).map(|value| {
// FIXME(ajeffrey): convert directly from AttrValue to DOMString // 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())
})); }));
}, },
_ => {}, _ => {},