mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 22:55:23 +00:00
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:
parent
cc0ad63090
commit
11fea26f4a
@ -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())
|
||||||
}));
|
}));
|
||||||
},
|
},
|
||||||
_ => {},
|
_ => {},
|
||||||
|
Loading…
Reference in New Issue
Block a user