aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_traits/lib.rs
diff options
context:
space:
mode:
authorAlan Jeffrey <ajeffrey@mozilla.com>2017-05-15 16:09:49 -0500
committerAlan Jeffrey <ajeffrey@mozilla.com>2017-05-22 09:27:07 -0500
commit42577365b7924d0af64033d852447ff61579da3a (patch)
tree107d4646c361a97a1e72e7ccf13fa9370ebea06b /components/layout_traits/lib.rs
parentb428a94326322c88da4c32e56ee753ceeffca7d1 (diff)
downloadservo-42577365b7924d0af64033d852447ff61579da3a.tar.gz
servo-42577365b7924d0af64033d852447ff61579da3a.zip
Added a TopLevelBrowsingContextId type.
Diffstat (limited to 'components/layout_traits/lib.rs')
-rw-r--r--components/layout_traits/lib.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/layout_traits/lib.rs b/components/layout_traits/lib.rs
index 53aa2529cb0..61fa3ad2449 100644
--- a/components/layout_traits/lib.rs
+++ b/components/layout_traits/lib.rs
@@ -20,7 +20,8 @@ extern crate webrender_traits;
use gfx::font_cache_thread::FontCacheThread;
use ipc_channel::ipc::{IpcReceiver, IpcSender};
-use msg::constellation_msg::{BrowsingContextId, PipelineId};
+use msg::constellation_msg::PipelineId;
+use msg::constellation_msg::TopLevelBrowsingContextId;
use net_traits::image_cache::ImageCache;
use profile_traits::{mem, time};
use script_traits::{ConstellationControlMsg, LayoutControlMsg};
@@ -34,7 +35,7 @@ use std::sync::mpsc::{Receiver, Sender};
pub trait LayoutThreadFactory {
type Message;
fn create(id: PipelineId,
- top_level_browsing_context_id: Option<BrowsingContextId>,
+ top_level_browsing_context_id: TopLevelBrowsingContextId,
url: ServoUrl,
is_iframe: bool,
chan: (Sender<Self::Message>, Receiver<Self::Message>),