Fixed CreateWrapperFrame() so it resets the geometric and content parent pointers
of the frame being wrapped
This commit is contained in:
@@ -234,6 +234,8 @@ nsHTMLContainerFrame::CreateWrapperFrame(nsIPresContext& aPresContext,
|
||||
NS_RELEASE(pseudoStyle);
|
||||
|
||||
// Init the body frame
|
||||
aFrame->SetGeometricParent(aWrapperFrame);
|
||||
aFrame->SetContentParent(aWrapperFrame);
|
||||
aWrapperFrame->SetInitialChildList(aPresContext, nsnull, aFrame);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user