mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
Rename Document::mut_loader to loader_mut
This commit is contained in:
parent
f3214372bf
commit
da392e3524
3 changed files with 3 additions and 3 deletions
|
@ -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),
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue