mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +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
|
@ -73,7 +73,7 @@ impl HTMLObjectElement {
|
|||
|
||||
pub fn AfterSetAttr(&mut self, name: DOMString, _value: DOMString) {
|
||||
if "data" == name {
|
||||
let document = self.htmlelement.element.node.owner_doc();
|
||||
let document = self.htmlelement.element.node.owner_doc().clone();
|
||||
let window = document.get().window.clone();
|
||||
let url = Some(window.get().get_url());
|
||||
self.process_data_url(window.get().image_cache_task.clone(), url);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue