Bug 400185, crash with popupgroup, disallow using popupgroups and only create a frame for the native anonymous one, r+sr=bz
git-svn-id: svn://10.0.0.236/trunk@241847 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -5946,7 +5946,7 @@ nsCSSFrameConstructor::ConstructXULFrame(nsFrameConstructorState& aState,
|
||||
|
||||
newFrame = NS_NewMenuBarFrame(mPresShell, aStyleContext);
|
||||
}
|
||||
else if (aTag == nsGkAtoms::popupgroup) {
|
||||
else if (aTag == nsGkAtoms::popupgroup && aContent->IsNativeAnonymous()) {
|
||||
// This frame contains child popups
|
||||
newFrame = NS_NewPopupSetFrame(mPresShell, aStyleContext);
|
||||
}
|
||||
@@ -6208,7 +6208,7 @@ nsCSSFrameConstructor::ConstructXULFrame(nsFrameConstructorState& aState,
|
||||
}
|
||||
|
||||
#ifdef MOZ_XUL
|
||||
if (aTag == nsGkAtoms::popupgroup) {
|
||||
if (aTag == nsGkAtoms::popupgroup && aContent->IsNativeAnonymous()) {
|
||||
nsIRootBox* rootBox = nsIRootBox::GetRootBox(mPresShell);
|
||||
if (rootBox) {
|
||||
NS_ASSERTION(rootBox->GetPopupSetFrame() == newFrame,
|
||||
|
||||
Reference in New Issue
Block a user