aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/blob.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2016-10-05 11:06:25 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2016-10-06 21:36:41 +0200
commitd8e92bb271a9f9dd87bf77e38cd820d01f2f0ae4 (patch)
tree14676fcd23d30d1652023aa14969446f58b83922 /components/script/dom/blob.rs
parentb6bbd41e11a8d73f884b7011905c05bd3efec3cd (diff)
downloadservo-d8e92bb271a9f9dd87bf77e38cd820d01f2f0ae4.tar.gz
servo-d8e92bb271a9f9dd87bf77e38cd820d01f2f0ae4.zip
Rename Reflectable::global_scope to global
Diffstat (limited to 'components/script/dom/blob.rs')
-rw-r--r--components/script/dom/blob.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/components/script/dom/blob.rs b/components/script/dom/blob.rs
index ad8e9a5d898..a2ceed8b046 100644
--- a/components/script/dom/blob.rs
+++ b/components/script/dom/blob.rs
@@ -116,7 +116,7 @@ impl Blob {
}
};
- Blob::new(&parent.global_scope(), blob_impl, relative_content_type.into())
+ Blob::new(&parent.global(), blob_impl, relative_content_type.into())
}
// https://w3c.github.io/FileAPI/#constructorBlob
@@ -143,7 +143,7 @@ impl Blob {
let (buffer, is_new_buffer) = match *f.cache.borrow() {
Some(ref bytes) => (bytes.clone(), false),
None => {
- let bytes = read_file(&self.global_scope(), f.id.clone())?;
+ let bytes = read_file(&self.global(), f.id.clone())?;
(bytes, true)
}
};
@@ -188,7 +188,7 @@ impl Blob {
/// valid or invalid Blob URL.
fn promote(&self, set_valid: bool) -> Uuid {
let mut bytes = vec![];
- let global_url = self.global_scope().get_url();
+ let global_url = self.global().get_url();
match *self.blob_impl.borrow_mut() {
BlobImpl::Sliced(_, _) => {
@@ -248,7 +248,7 @@ impl Blob {
/// Get a FileID representing sliced parent-blob content
fn create_sliced_url_id(&self, parent_id: &Uuid,
rel_pos: &RelativePos, parent_len: u64) -> Uuid {
- let origin = get_blob_origin(&self.global_scope().get_url());
+ let origin = get_blob_origin(&self.global().get_url());
let (tx, rx) = ipc::channel().unwrap();
let msg = FileManagerThreadMsg::AddSlicedURLEntry(parent_id.clone(),
@@ -277,7 +277,7 @@ impl Blob {
/// Cleanups at the time of destruction/closing
fn clean_up_file_resource(&self) {
if let BlobImpl::File(ref f) = *self.blob_impl.borrow() {
- let origin = get_blob_origin(&self.global_scope().get_url());
+ let origin = get_blob_origin(&self.global().get_url());
let (tx, rx) = ipc::channel().unwrap();
@@ -288,7 +288,7 @@ impl Blob {
}
fn send_to_file_manager(&self, msg: FileManagerThreadMsg) {
- let global = self.global_scope();
+ let global = self.global();
let resource_threads = global.resource_threads();
let _ = resource_threads.send(CoreResourceMsg::ToFileManager(msg));
}