diff options
author | Josh Matthews <josh@joshmatthews.net> | 2014-10-13 08:20:06 -0400 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2015-05-11 13:41:51 -0400 |
commit | 7f0706ed42b33ec1da6bf9741811ca97d566ed45 (patch) | |
tree | 9d74b8a50145afb05bd10d6860227f4af17a5754 /components/script/page.rs | |
parent | 29a43a00b39e544596e3bcce9bdfca2159313ba5 (diff) | |
download | servo-7f0706ed42b33ec1da6bf9741811ca97d566ed45.tar.gz servo-7f0706ed42b33ec1da6bf9741811ca97d566ed45.zip |
Implement a DocumentLoader type that tracks pending loads and notifies the script task when the queue is empty. Dispatch the document load event based on the DocumentLoader's notification.
Diffstat (limited to 'components/script/page.rs')
-rw-r--r-- | components/script/page.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/script/page.rs b/components/script/page.rs index 67da1a9fc61..404cf20de6b 100644 --- a/components/script/page.rs +++ b/components/script/page.rs @@ -71,6 +71,10 @@ impl Page { } } + pub fn pipeline(&self) -> PipelineId { + self.id + } + pub fn window(&self) -> Temporary<Window> { Temporary::from_rooted(self.frame.borrow().as_ref().unwrap().window.clone()) } |