aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2017-09-25 09:38:19 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2017-09-25 12:32:34 +0200
commitda392e3524732cacdbd6626994ce517fc0ab6f9f (patch)
tree4504fb95a2d605eff8d6d62c8887aa42cb977bd1
parentf3214372bf7f754126e8b032225f81aea1cccb1b (diff)
downloadservo-da392e3524732cacdbd6626994ce517fc0ab6f9f.tar.gz
servo-da392e3524732cacdbd6626994ce517fc0ab6f9f.zip
Rename Document::mut_loader to loader_mut
-rw-r--r--components/script/document_loader.rs2
-rw-r--r--components/script/dom/document.rs2
-rw-r--r--components/script/layout_image.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/components/script/document_loader.rs b/components/script/document_loader.rs
index 9fe42e30147..2cbb0d150d1 100644
--- a/components/script/document_loader.rs
+++ b/components/script/document_loader.rs
@@ -51,7 +51,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.mut_loader().add_blocking_load(load.clone());
+ doc.loader_mut().add_blocking_load(load.clone());
LoadBlocker {
doc: JS::from_ref(doc),
load: Some(load),
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs
index c5940f02b48..bccfe5a76b3 100644
--- a/components/script/dom/document.rs
+++ b/components/script/dom/document.rs
@@ -415,7 +415,7 @@ impl Document {
}
#[inline]
- pub fn mut_loader(&self) -> RefMut<DocumentLoader> {
+ pub fn loader_mut(&self) -> RefMut<DocumentLoader> {
self.loader.borrow_mut()
}
diff --git a/components/script/layout_image.rs b/components/script/layout_image.rs
index 85f8c99a49a..83f4510cf84 100644
--- a/components/script/layout_image.rs
+++ b/components/script/layout_image.rs
@@ -77,5 +77,5 @@ pub fn fetch_image_for_layout(url: ServoUrl,
};
// Layout image loads do not delay the document load event.
- document.mut_loader().fetch_async_background(request, action_sender);
+ document.loader().fetch_async_background(request, action_sender);
}