mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Privatize Document
This commit is contained in:
parent
d0addd36bb
commit
8825296869
8 changed files with 38 additions and 22 deletions
|
@ -48,7 +48,7 @@ impl<'a> PrivateHTMLImageElementHelpers for JSRef<'a, HTMLImageElement> {
|
|||
fn update_image(self, value: Option<(DOMString, &Url)>) {
|
||||
let node: JSRef<Node> = NodeCast::from_ref(self);
|
||||
let document = node.owner_doc().root();
|
||||
let window = document.window.root();
|
||||
let window = document.window().root();
|
||||
let image_cache = &window.image_cache_task;
|
||||
match value {
|
||||
None => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue