This commit is contained in:
Mats Palmgren 2010-04-14 18:55:33 +02:00
Родитель 48100f2ab2
Коммит 512e336be5
1 изменённых файлов: 10 добавлений и 0 удалений

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

@ -8503,6 +8503,16 @@ nsCSSFrameConstructor::MaybeRecreateContainerForFrameRemoval(nsIFrame* aFrame,
return PR_TRUE; return PR_TRUE;
} }
#ifdef MOZ_XUL
if (aFrame->GetType() == nsGkAtoms::popupSetFrame) {
nsIRootBox* rootBox = nsIRootBox::GetRootBox(mPresShell);
if (rootBox && rootBox->GetPopupSetFrame() == aFrame) {
*aResult = ReconstructDocElementHierarchy();
return PR_TRUE;
}
}
#endif
// We might still need to reconstruct things if the parent of inFlowFrame is // We might still need to reconstruct things if the parent of inFlowFrame is
// special, since in that case the removal of aFrame might affect the // special, since in that case the removal of aFrame might affect the
// splitting of its parent. // splitting of its parent.