From 5bfe65f2b155ffe96faa552b6b6049d473cb1aea Mon Sep 17 00:00:00 2001 From: "troy@netscape.com" Date: Tue, 17 Nov 1998 05:47:06 +0000 Subject: [PATCH] Fixed CreateWrapperFrame() so it resets the geometric and content parent pointers of the frame being wrapped --- layout/generic/nsHTMLContainerFrame.cpp | 2 ++ layout/html/base/src/nsHTMLContainerFrame.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/layout/generic/nsHTMLContainerFrame.cpp b/layout/generic/nsHTMLContainerFrame.cpp index 20b7912578fa..9a2af4414f0d 100644 --- a/layout/generic/nsHTMLContainerFrame.cpp +++ b/layout/generic/nsHTMLContainerFrame.cpp @@ -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); } diff --git a/layout/html/base/src/nsHTMLContainerFrame.cpp b/layout/html/base/src/nsHTMLContainerFrame.cpp index 20b7912578fa..9a2af4414f0d 100644 --- a/layout/html/base/src/nsHTMLContainerFrame.cpp +++ b/layout/html/base/src/nsHTMLContainerFrame.cpp @@ -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); }