aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/script_task.rs
diff options
context:
space:
mode:
authorTim Kuehn <tkuehn@cmu.edu>2013-07-30 16:13:04 -0700
committerTim Kuehn <tkuehn@cmu.edu>2013-07-31 13:12:32 -0700
commit2348fbf46dbd8a90e3edc0d7a6c6ba704273b3c7 (patch)
treeb0ce3925684c8a460cf00c705faebf22db58e460 /src/components/script/script_task.rs
parenta2bdab7989bf39fa5db4cdedc21884ca6018036f (diff)
downloadservo-2348fbf46dbd8a90e3edc0d7a6c6ba704273b3c7.tar.gz
servo-2348fbf46dbd8a90e3edc0d7a6c6ba704273b3c7.zip
added subpage ids to map from iframe to all associated pipelines
Diffstat (limited to 'src/components/script/script_task.rs')
-rw-r--r--src/components/script/script_task.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/components/script/script_task.rs b/src/components/script/script_task.rs
index d5ba18b4402..203cbf0c55b 100644
--- a/src/components/script/script_task.rs
+++ b/src/components/script/script_task.rs
@@ -21,7 +21,7 @@ use layout_interface::{ReflowDocumentDamage, ReflowForDisplay, ReflowGoal};
use layout_interface::ReflowMsg;
use layout_interface;
use servo_msg::constellation_msg::{ConstellationChan, LoadUrlMsg, NavigationDirection};
-use servo_msg::constellation_msg::{PipelineId, RendererReadyMsg, ResizedWindowBroadcast};
+use servo_msg::constellation_msg::{PipelineId, SubpageId, RendererReadyMsg, ResizedWindowBroadcast};
use servo_msg::constellation_msg::{LoadIframeUrlMsg};
use servo_msg::constellation_msg;
@@ -624,12 +624,13 @@ impl ScriptTask {
// FIXME: These should be streamed to layout as they're parsed. We don't need to stop here
// in the script task.
- let get_iframes = |iframe_port: &Port<(Url, Future<Size2D<uint>>)>| loop {
+ let get_iframes = |iframe_port: &Port<(Url, SubpageId, Future<Size2D<uint>>)>| loop {
match iframe_port.try_recv() {
None => break,
- Some((iframe_url, size_future)) => {
+ Some((iframe_url, subpage_id, size_future)) => {
self.constellation_chan.send(LoadIframeUrlMsg(iframe_url,
pipeline_id,
+ subpage_id,
size_future));
}
}
@@ -652,9 +653,10 @@ impl ScriptTask {
Left(Some(sheet)) => {
page.layout_chan.send(AddStylesheetMsg(sheet));
}
- Right(Some((iframe_url, size_future))) => {
+ Right(Some((iframe_url, subpage_id, size_future))) => {
self.constellation_chan.send(LoadIframeUrlMsg(iframe_url,
pipeline_id,
+ subpage_id,
size_future));
}
Right(None) => {