From 047bb060c155711e8e7d4d7ca4072c7b739f08c0 Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Fri, 5 Feb 2016 14:39:56 -0500 Subject: [PATCH] Improve documentation for new methods. --- components/script/document_loader.rs | 1 + components/script/dom/document.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/components/script/document_loader.rs b/components/script/document_loader.rs index c6c33fc1a5d..b702c6b30ed 100644 --- a/components/script/document_loader.rs +++ b/components/script/document_loader.rs @@ -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); } diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs index 18cbbabf15c..99a61d2f981 100644 --- a/components/script/dom/document.rs +++ b/components/script/dom/document.rs @@ -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)