From bed16ddd898bee2664c8cbd3cd6b15b45b8a5152 Mon Sep 17 00:00:00 2001 From: mandreyel Date: Fri, 14 Sep 2018 00:23:49 +0200 Subject: Create ScriptMsg::GetBrowsingContextInfo --- components/script_traits/script_msg.rs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'components/script_traits/script_msg.rs') diff --git a/components/script_traits/script_msg.rs b/components/script_traits/script_msg.rs index ca8c5463aa8..14edaee58b6 100644 --- a/components/script_traits/script_msg.rs +++ b/components/script_traits/script_msg.rs @@ -108,15 +108,17 @@ pub enum ScriptMsg { Focus, /// Requests that the constellation retrieve the current contents of the clipboard GetClipboardContents(IpcSender), - /// Get the browsing context id for a given pipeline. - GetBrowsingContextId(PipelineId, IpcSender>), - /// Get the parent info for a given pipeline. - GetParentInfo(PipelineId, IpcSender>), /// Get the top-level browsing context info for a given browsing context. GetTopForBrowsingContext( BrowsingContextId, IpcSender>, ), + /// Get the browsing context id of the browsing context in which pipeline is + /// embedded and the parent pipeline id of that browsing context. + GetBrowsingContextInfo( + PipelineId, + IpcSender)>>, + ), /// Get the nth child browsing context ID for a given browsing context, sorted in tree order. GetChildBrowsingContextId( BrowsingContextId, @@ -201,8 +203,7 @@ impl fmt::Debug for ScriptMsg { CreateCanvasPaintThread(..) => "CreateCanvasPaintThread", Focus => "Focus", GetClipboardContents(..) => "GetClipboardContents", - GetBrowsingContextId(..) => "GetBrowsingContextId", - GetParentInfo(..) => "GetParentInfo", + GetBrowsingContextInfo(..) => "GetBrowsingContextInfo", GetTopForBrowsingContext(..) => "GetParentBrowsingContext", GetChildBrowsingContextId(..) => "GetChildBrowsingContextId", LoadComplete => "LoadComplete", -- cgit v1.2.3