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

git-svn-id: svn://10.0.0.236/trunk@192399 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
roc+%cs.cmu.edu
2006-03-15 03:14:02 +00:00
parent 6694c70f3d
commit 6e36f2c733
109 changed files with 539 additions and 677 deletions

View File

@@ -61,7 +61,6 @@ nsAbsoluteContainingBlock::FirstChild(const nsIFrame* aDelegatingFrame,
nsresult
nsAbsoluteContainingBlock::SetInitialChildList(nsIFrame* aDelegatingFrame,
nsPresContext* aPresContext,
nsIAtom* aListName,
nsIFrame* aChildList)
{
@@ -113,8 +112,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
@@ -411,10 +409,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