mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Remove unsound Root::deref() calls in HTML elements.
This commit is contained in:
parent
6032a2f8af
commit
d09d245ee1
5 changed files with 8 additions and 3 deletions
|
@ -46,6 +46,7 @@ impl<'a> PrivateHTMLImageElementHelpers for JSRef<'a, HTMLImageElement> {
|
|||
let node: JSRef<Node> = NodeCast::from_ref(self);
|
||||
let document = node.owner_doc().root();
|
||||
let window = document.r().window().root();
|
||||
let window = window.r();
|
||||
let image_cache = window.image_cache_task();
|
||||
match value {
|
||||
None => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue