Bug 321294: Remove unused ReplaceFrame codepaths.

r/sr=roc


git-svn-id: svn://10.0.0.236/trunk@187266 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
cvshook%sicking.cc
2006-01-10 22:58:37 +00:00
parent fe217942ab
commit d3d2e97d3b
30 changed files with 0 additions and 391 deletions

View File

@@ -263,30 +263,6 @@ nsInlineFrame::RemoveFrame(nsIAtom* aListName,
return NS_OK;
}
NS_IMETHODIMP
nsInlineFrame::ReplaceFrame(nsIAtom* aListName,
nsIFrame* aOldFrame,
nsIFrame* aNewFrame)
{
if (aListName) {
NS_ERROR("Don't have any special lists on inline frames!");
return NS_ERROR_INVALID_ARG;
}
if (!aOldFrame || !aNewFrame) {
NS_ERROR("Missing aOldFrame or aNewFrame");
return NS_ERROR_INVALID_ARG;
}
PRBool retval =
mFrames.ReplaceFrame(this, aOldFrame, aNewFrame, PR_TRUE);
// Ask the parent frame to reflow me.
ReflowDirtyChild(GetPresContext()->PresShell(), nsnull);
return retval ? NS_OK : NS_ERROR_FAILURE;
}
NS_IMETHODIMP
nsInlineFrame::Paint(nsPresContext* aPresContext,
nsIRenderingContext& aRenderingContext,
@@ -1115,19 +1091,6 @@ nsPositionedInlineFrame::RemoveFrame(nsIAtom* aListName,
return rv;
}
NS_IMETHODIMP
nsPositionedInlineFrame::ReplaceFrame(nsIAtom* aListName,
nsIFrame* aOldFrame,
nsIFrame* aNewFrame)
{
if (mAbsoluteContainer.GetChildListName() == aListName) {
return mAbsoluteContainer.ReplaceFrame(this, aListName, aOldFrame,
aNewFrame);
} else {
return nsInlineFrame::ReplaceFrame(aListName, aOldFrame, aNewFrame);
}
}
nsIAtom*
nsPositionedInlineFrame::GetAdditionalChildListName(PRInt32 aIndex) const
{