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

git-svn-id: svn://10.0.0.236/trunk@193976 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
roc+%cs.cmu.edu
2006-04-10 00:16:29 +00:00
parent 5a0aae6de3
commit b6ebd9961d
109 changed files with 548 additions and 696 deletions

View File

@@ -67,7 +67,6 @@ nsAbsoluteContainingBlock::FirstChild(const nsIFrame* aDelegatingFrame,
nsresult
nsAbsoluteContainingBlock::SetInitialChildList(nsIFrame* aDelegatingFrame,
nsPresContext* aPresContext,
nsIAtom* aListName,
nsIFrame* aChildList)
{
@@ -119,8 +118,7 @@ nsAbsoluteContainingBlock::RemoveFrame(nsIFrame* aDelegatingFrame,
nsIAtom* aListName,
nsIFrame* aOldFrame)
{
PRBool result = mAbsoluteFrames.DestroyFrame(aDelegatingFrame->
GetPresContext(), aOldFrame);
PRBool result = mAbsoluteFrames.DestroyFrame(aOldFrame);
NS_ASSERTION(result, "didn't find frame to delete");
// Because positioned frames aren't part of a flow, there's no additional
// work to do, e.g. reflowing sibling frames. And because positioned frames
@@ -417,10 +415,9 @@ nsAbsoluteContainingBlock::IncrementalReflow(nsIFrame* aDelegatin
}
void
nsAbsoluteContainingBlock::DestroyFrames(nsIFrame* aDelegatingFrame,
nsPresContext* aPresContext)
nsAbsoluteContainingBlock::DestroyFrames(nsIFrame* aDelegatingFrame)
{
mAbsoluteFrames.DestroyFrames(aPresContext);
mAbsoluteFrames.DestroyFrames();
}
// XXX Optimize the case where it's a resize reflow and the absolutely