mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
script: Fix a borrow flags race in layout on .owner_doc()
.
This commit is contained in:
parent
7b8a0fd2a3
commit
d303f50784
5 changed files with 54 additions and 22 deletions
|
@ -89,7 +89,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