mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 507775. r=bzbarsky sr=roc
This commit is contained in:
parent
d223db898d
commit
ee0dbc1396
@ -8503,6 +8503,16 @@ nsCSSFrameConstructor::MaybeRecreateContainerForFrameRemoval(nsIFrame* aFrame,
|
||||
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
|
||||
// special, since in that case the removal of aFrame might affect the
|
||||
// splitting of its parent.
|
||||
|
Loading…
Reference in New Issue
Block a user