Remove sources of panic when laying out an iframe without a nested browsing context.

This commit is contained in:
Alan Jeffrey 2017-09-14 15:53:12 -05:00
parent 6a791cd7f2
commit fbfb9a80b4
6 changed files with 58 additions and 30 deletions

View file

@ -488,10 +488,10 @@ impl ImageFragmentInfo {
/// size of this iframe can be communicated via the constellation to the iframe's own layout thread.
#[derive(Clone)]
pub struct IframeFragmentInfo {
/// The frame ID of this iframe.
pub browsing_context_id: BrowsingContextId,
/// The pipelineID of this iframe.
pub pipeline_id: PipelineId,
/// The frame ID of this iframe. None if there is no nested browsing context.
pub browsing_context_id: Option<BrowsingContextId>,
/// The pipelineID of this iframe. None if there is no nested browsing context.
pub pipeline_id: Option<PipelineId>,
}
impl IframeFragmentInfo {