Bug 193686. nsContainerFrame needs to report the overflowList as one of its child frame lists. Also, overflow frames should be destroyed when their parent is destroyed. r+sr=dbaron

git-svn-id: svn://10.0.0.236/trunk@143164 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
roc+%cs.cmu.edu
2003-06-02 04:38:53 +00:00
parent 360ffeb90a
commit 39cdc612bb
2 changed files with 2 additions and 6 deletions

View File

@@ -175,9 +175,7 @@ nsContainerFrame::GetAdditionalChildListName(PRInt32 aIndex,
nsIAtom** aListName) const
{
NS_PRECONDITION(nsnull != aListName, "null OUT parameter pointer");
if (aIndex < 0) {
return NS_ERROR_INVALID_ARG;
}
NS_ENSURE_TRUE(aIndex >= 0, NS_ERROR_INVALID_ARG);
if (aIndex == 0) {
*aListName = nsLayoutAtoms::overflowList;
NS_ADDREF(*aListName);

View File

@@ -175,9 +175,7 @@ nsContainerFrame::GetAdditionalChildListName(PRInt32 aIndex,
nsIAtom** aListName) const
{
NS_PRECONDITION(nsnull != aListName, "null OUT parameter pointer");
if (aIndex < 0) {
return NS_ERROR_INVALID_ARG;
}
NS_ENSURE_TRUE(aIndex >= 0, NS_ERROR_INVALID_ARG);
if (aIndex == 0) {
*aListName = nsLayoutAtoms::overflowList;
NS_ADDREF(*aListName);