mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Replace the Str implementation for AttrValue by a Deref implementation.
This commit is contained in:
parent
4108af0c11
commit
41cc0a939e
16 changed files with 43 additions and 41 deletions
|
@ -284,7 +284,7 @@ impl<'a> VirtualMethods for JSRef<'a, HTMLImageElement> {
|
|||
&atom!("src") => {
|
||||
let window = window_from_node(*self).root();
|
||||
let url = window.r().get_url();
|
||||
self.update_image(Some((attr.value().as_slice().to_owned(), &url)));
|
||||
self.update_image(Some(((**attr.value()).to_owned(), &url)));
|
||||
},
|
||||
_ => ()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue