mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
auto merge of #1889 : pcwalton/servo/fix-borrow-flags-race, r=jdm
r? @jdm
This commit is contained in:
commit
047cc05f5a
5 changed files with 54 additions and 22 deletions
|
@ -93,7 +93,7 @@ impl HTMLImageElement {
|
|||
|
||||
pub fn AfterSetAttr(&mut self, name: DOMString, value: DOMString) {
|
||||
if "src" == name {
|
||||
let document = self.htmlelement.element.node.owner_doc();
|
||||
let document = self.htmlelement.element.node.owner_doc().clone();
|
||||
let window = document.get().window.get();
|
||||
let url = Some(window.get_url());
|
||||
self.update_image(Some(value), url);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue