зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
ea9e915d9a
Коммит
f317aef205
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче