mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
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.
This commit is contained in:
parent
29a43a00b3
commit
7f0706ed42
11 changed files with 243 additions and 38 deletions
|
@ -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())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue