Remove unsound Root::deref() calls in HTML elements.

This commit is contained in:
Ms2ger 2015-01-01 18:36:37 +01:00
parent 6032a2f8af
commit d09d245ee1
5 changed files with 8 additions and 3 deletions

View file

@ -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 => {