Rename Document::mut_loader to loader_mut

This commit is contained in:
Anthony Ramine 2017-09-25 09:38:19 +02:00
parent f3214372bf
commit da392e3524
3 changed files with 3 additions and 3 deletions

View file

@ -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),

View file

@ -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()
}

View file

@ -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);
}