Bug 328926. Remove aPresContext parameter from Destroy and SetInitialChildList. patch by Marc Liddell, r+sr=roc

This commit is contained in:
roc+@cs.cmu.edu
2006-03-15 03:14:02 +00:00
parent 3926c639d4
commit c92e50faf4
109 changed files with 539 additions and 677 deletions
+10 -11
View File
@@ -110,7 +110,7 @@ nsFileControlFrame::~nsFileControlFrame()
}
void
nsFileControlFrame::PreDestroy(nsPresContext* aPresContext)
nsFileControlFrame::PreDestroy()
{
// Toss the value into the control from the anonymous content, which is about
// to get lost. Note that if the page is being torn down then the anonymous
@@ -134,21 +134,21 @@ nsFileControlFrame::PreDestroy(nsPresContext* aPresContext)
mDidPreDestroy = PR_TRUE;
}
NS_IMETHODIMP
nsFileControlFrame::Destroy(nsPresContext* aPresContext)
void
nsFileControlFrame::Destroy()
{
if (!mDidPreDestroy) {
PreDestroy(aPresContext);
PreDestroy();
}
mTextFrame = nsnull;
return nsAreaFrame::Destroy(aPresContext);
nsAreaFrame::Destroy();
}
void
nsFileControlFrame::RemovedAsPrimaryFrame(nsPresContext* aPresContext)
nsFileControlFrame::RemovedAsPrimaryFrame()
{
if (!mDidPreDestroy) {
PreDestroy(aPresContext);
PreDestroy();
}
#ifdef DEBUG
else {
@@ -457,11 +457,10 @@ NS_IMETHODIMP nsFileControlFrame::Reflow(nsPresContext* aPresContext,
/*
NS_IMETHODIMP
nsFileControlFrame::SetInitialChildList(nsPresContext* aPresContext,
nsIAtom* aListName,
nsIFrame* aChildList)
nsFileControlFrame::SetInitialChildList(nsIAtom* aListName,
nsIFrame* aChildList)
{
nsresult r = nsAreaFrame::SetInitialChildList(aPresContext, aListName, aChildList);
nsAreaFrame::SetInitialChildList(aListName, aChildList);
// given that the CSS frame constructor created all our frames. We need to find the text field
// so we can get info from it.