aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_traits/script_msg.rs
diff options
context:
space:
mode:
authorAneesh Agrawal <aneeshusa@gmail.com>2016-06-09 08:17:30 -0400
committerAneesh Agrawal <aneeshusa@gmail.com>2016-09-13 15:37:38 -0400
commit56fbfd46a4e1e31bf9cde59cffdffbb1b05f97bf (patch)
treefdfd2b2e51d840b451ef01a65a4398e1030bb596 /components/script_traits/script_msg.rs
parentb9b25b6f82d838c7bb6f87b71d7726f7a58847d9 (diff)
downloadservo-56fbfd46a4e1e31bf9cde59cffdffbb1b05f97bf.tar.gz
servo-56fbfd46a4e1e31bf9cde59cffdffbb1b05f97bf.zip
Excise SubpageId and use only PipelineIds
SubpageId was originally introduced in 2013 to help iframes keep track of their associated (children) pipelines. However, since each pipeline already has a PipelineId, and those are unique, those are sufficient to keep track of children.
Diffstat (limited to 'components/script_traits/script_msg.rs')
-rw-r--r--components/script_traits/script_msg.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script_traits/script_msg.rs b/components/script_traits/script_msg.rs
index d183336f6f8..c19766263a5 100644
--- a/components/script_traits/script_msg.rs
+++ b/components/script_traits/script_msg.rs
@@ -17,7 +17,7 @@ use euclid::size::Size2D;
use gfx_traits::LayerId;
use ipc_channel::ipc::IpcSender;
use msg::constellation_msg::{Key, KeyModifiers, KeyState, LoadData};
-use msg::constellation_msg::{PipelineId, SubpageId, TraversalDirection};
+use msg::constellation_msg::{PipelineId, TraversalDirection};
use net_traits::CoreResourceMsg;
use offscreen_gl_context::{GLContextAttributes, GLLimits};
use style_traits::cursor::Cursor;
@@ -87,7 +87,8 @@ pub enum ScriptMsg {
LoadUrl(PipelineId, LoadData),
/// Dispatch a mozbrowser event to a given iframe,
/// or to the window if no subpage id is provided.
- MozBrowserEvent(PipelineId, Option<SubpageId>, MozBrowserEvent),
+ /// First PipelineId is for the parent, second PipelineId is for the actual pipeline.
+ MozBrowserEvent(PipelineId, Option<PipelineId>, MozBrowserEvent),
/// HTMLIFrameElement Forward or Back traversal.
TraverseHistory(Option<PipelineId>, TraversalDirection),
/// Gets the length of the joint session history from the constellation.