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

@@ -197,7 +197,7 @@ NS_IMETHODIMP nsFileControlFrame::Reflow(nsIPresContext& aPresContext,
text->SetAttribute(kNameSpaceID_HTML, nsHTMLAtoms::disabled, nsAutoString("1"), PR_FALSE); // XXX this should use an "empty" bool value
}
NS_NewTextControlFrame(childFrame);
childFrame->Init(aPresContext, text, this, this, mStyleContext);
childFrame->Init(aPresContext, text, this, mStyleContext);
mTextFrame = (nsTextControlFrame*)childFrame;
mFirstChild = childFrame;
@@ -211,7 +211,7 @@ NS_IMETHODIMP nsFileControlFrame::Reflow(nsIPresContext& aPresContext,
NS_NewButtonControlFrame(childFrame);
((nsButtonControlFrame*)childFrame)->SetFileControlFrame(this);
mBrowseFrame = (nsButtonControlFrame*)childFrame;
childFrame->Init(aPresContext, browse, this, this, mStyleContext);
childFrame->Init(aPresContext, browse, this, mStyleContext);
mFirstChild->SetNextSibling(childFrame);