Move Pipeline::{parent_info,visible,is_private} to BrowsingContext

This commit is contained in:
mandreyel 2018-08-19 21:15:04 +02:00
parent 2351872354
commit b051df76ef
4 changed files with 454 additions and 326 deletions

View file

@ -2,6 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use browsingcontext::NewBrowsingContextInfo;
use msg::constellation_msg::{BrowsingContextId, HistoryStateId, PipelineId, TopLevelBrowsingContextId};
use script_traits::LoadData;
use servo_url::ServoUrl;
@ -113,6 +114,10 @@ pub struct SessionHistoryChange {
/// The old pipeline that the new pipeline should replace.
pub replace: Option<NeedsToReload>,
/// Holds data for not-yet constructed browsing contexts that are not
/// easily available when they need to be constructed.
pub new_browsing_context_info: Option<NewBrowsingContextInfo>,
}
/// Represents a pipeline or discarded pipeline in a history entry.