diff options
author | Ms2ger <Ms2ger@gmail.com> | 2016-10-04 13:11:03 +0200 |
---|---|---|
committer | Ms2ger <Ms2ger@gmail.com> | 2016-10-04 13:11:03 +0200 |
commit | aa48ec76287e6951a9a60089bf3d683d796d3af6 (patch) | |
tree | 233205a2069eaf347b5746aca9e28cb981ec3d1d /components/script/document_loader.rs | |
parent | e4c0007d04fea15b912be1fbbe0dac7b295d6cc9 (diff) | |
download | servo-aa48ec76287e6951a9a60089bf3d683d796d3af6.tar.gz servo-aa48ec76287e6951a9a60089bf3d683d796d3af6.zip |
Remove Document::add_blocking_load.
Diffstat (limited to 'components/script/document_loader.rs')
-rw-r--r-- | components/script/document_loader.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/document_loader.rs b/components/script/document_loader.rs index 65f5ddf55af..f56e5c54a9d 100644 --- a/components/script/document_loader.rs +++ b/components/script/document_loader.rs @@ -63,7 +63,7 @@ pub struct LoadBlocker { impl LoadBlocker { /// Mark the document's load event as blocked on this new load. pub fn new(doc: &Document, load: LoadType) -> LoadBlocker { - doc.add_blocking_load(load.clone()); + doc.mut_loader().add_blocking_load(load.clone()); LoadBlocker { doc: JS::from_ref(doc), load: Some(load), @@ -119,7 +119,7 @@ impl DocumentLoader { } /// Add a load to the list of blocking loads. - pub fn add_blocking_load(&mut self, load: LoadType) { + fn add_blocking_load(&mut self, load: LoadType) { self.blocking_loads.push(load); } |