mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Improve documentation for new methods.
This commit is contained in:
parent
d6ea4b60a4
commit
047bb060c1
2 changed files with 2 additions and 0 deletions
|
@ -120,6 +120,7 @@ impl DocumentLoader {
|
|||
}
|
||||
}
|
||||
|
||||
/// Add a load to the list of blocking loads.
|
||||
pub fn add_blocking_load(&mut self, load: LoadType) {
|
||||
self.blocking_loads.push(load);
|
||||
}
|
||||
|
|
|
@ -1231,6 +1231,7 @@ impl Document {
|
|||
ReflowReason::RequestAnimationFrame);
|
||||
}
|
||||
|
||||
/// Add a load to the list of loads blocking this document's load.
|
||||
pub fn add_blocking_load(&self, load: LoadType) {
|
||||
let mut loader = self.loader.borrow_mut();
|
||||
loader.add_blocking_load(load)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue