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