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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user