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

This commit is contained in:
roc+%cs.cmu.edu 2003-06-02 04:38:53 +00:00
Родитель ea9e915d9a
Коммит f317aef205
2 изменённых файлов: 2 добавлений и 6 удалений

Просмотреть файл

@ -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);

Просмотреть файл

@ -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);