Removed the content-parent frame pointer. Now we just have the one geometric

parent
This commit is contained in:
troy@netscape.com
1999-01-14 05:16:23 +00:00
parent 45bab67c4a
commit 62b64b2067
75 changed files with 443 additions and 794 deletions

View File

@@ -512,13 +512,12 @@ nsHTMLButtonControlFrame::SetInitialChildList(nsIPresContext& aPresContext,
// Resolve style and initialize the frame
nsIStyleContext* styleContext =
aPresContext.ResolvePseudoStyleContextFor(mContent, nsHTMLAtoms::buttonContentPseudo, mStyleContext);
mFirstChild->Init(aPresContext, mContent, this, this, styleContext);
mFirstChild->Init(aPresContext, mContent, this, styleContext);
NS_RELEASE(styleContext);
// Set the geometric and content parent for each of the child frames
// Set the parent for each of the child frames
for (nsIFrame* frame = aChildList; nsnull != frame; frame->GetNextSibling(frame)) {
frame->SetGeometricParent(mFirstChild);
frame->SetContentParent(mFirstChild);
frame->SetParent(mFirstChild);
}
// Queue up the frames for the inline frame