Fix ReplaceChild() on positioned inlines to delegate to
nsAbsoluteContainingBlock.h. Bug 176915, r=dbaron, sr=rbs git-svn-id: svn://10.0.0.236/trunk@133620 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -138,6 +138,21 @@ nsAbsoluteContainingBlock::RemoveFrame(nsIFrame* aDelegatingFrame,
|
||||
return result ? NS_OK : NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
nsresult
|
||||
nsAbsoluteContainingBlock::ReplaceFrame(nsIFrame* aDelegatingFrame,
|
||||
nsIPresContext* aPresContext,
|
||||
nsIPresShell& aPresShell,
|
||||
nsIAtom* aListName,
|
||||
nsIFrame* aOldFrame,
|
||||
nsIFrame* aNewFrame)
|
||||
{
|
||||
PRBool result = mAbsoluteFrames.ReplaceFrame(aPresContext, aDelegatingFrame,
|
||||
aOldFrame, aNewFrame, PR_TRUE);
|
||||
NS_ASSERTION(result, "Problems replacing a frame");
|
||||
return result ? NS_OK : NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
|
||||
// Destructor function for the collapse offset frame property
|
||||
static void
|
||||
DestroyRectFunc(nsIPresContext* aPresContext,
|
||||
|
||||
Reference in New Issue
Block a user