Discard aPrevFrame if it's the mPopupFrame since it's on a different lists. b=394800 r=enndeakin sr=bzbarsky a=dbaron

This commit is contained in:
2007-10-19 22:43:38 -07:00
parent f9ec22b255
commit 4fa40ba0dd
4 changed files with 46 additions and 0 deletions

View File

@@ -1198,6 +1198,9 @@ nsMenuFrame::InsertFrames(nsIAtom* aListName,
NS_FRAME_HAS_DIRTY_CHILDREN);
rv = NS_OK;
} else {
if (NS_UNLIKELY(aPrevFrame == mPopupFrame)) {
aPrevFrame = nsnull;
}
rv = nsBoxFrame::InsertFrames(aListName, aPrevFrame, aFrameList);
}