compositing: Fix a couple of bugs that prevented iframes from painting

after navigation.

The first bug was that iframes were not reflowed in their parent DOM
when the child page navigated. This is fixed by simply having the
constellation notify the appropriate script thread when navigation
occurs.

The second bug was that the compositor was unable to adjust the pipeline
for existing iframe layers, only new ones. This patch adds logic to do
that.

Closes #8081.
This commit is contained in:
Patrick Walton 2016-01-12 20:57:23 -08:00 committed by Josh Matthews
parent 80c2911348
commit e5a1af5b7a
9 changed files with 153 additions and 26 deletions

View file

@ -143,6 +143,8 @@ pub enum ConstellationControlMsg {
/// The pipeline that contains a frame loading the target pipeline.
parent: PipelineId
},
/// Notifies a parent frame that one of its child frames is now active.
FramedContentChanged(PipelineId, SubpageId),
/// Report an error from a CSS parser for the given pipeline
ReportCSSError(PipelineId, String, u32, u32, String),
}