mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Remove Document::add_blocking_load.
This commit is contained in:
parent
e4c0007d04
commit
aa48ec7628
2 changed files with 2 additions and 8 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue