Improve documentation for new methods.

This commit is contained in:
Josh Matthews 2016-02-05 14:39:56 -05:00
parent d6ea4b60a4
commit 047bb060c1
2 changed files with 2 additions and 0 deletions

View file

@ -120,6 +120,7 @@ impl DocumentLoader {
} }
} }
/// Add a load to the list of blocking loads.
pub fn add_blocking_load(&mut self, load: LoadType) { pub fn add_blocking_load(&mut self, load: LoadType) {
self.blocking_loads.push(load); self.blocking_loads.push(load);
} }

View file

@ -1231,6 +1231,7 @@ impl Document {
ReflowReason::RequestAnimationFrame); ReflowReason::RequestAnimationFrame);
} }
/// Add a load to the list of loads blocking this document's load.
pub fn add_blocking_load(&self, load: LoadType) { pub fn add_blocking_load(&self, load: LoadType) {
let mut loader = self.loader.borrow_mut(); let mut loader = self.loader.borrow_mut();
loader.add_blocking_load(load) loader.add_blocking_load(load)