mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 404314, create widget when setting menugenerated attribute, prevents assertion and issues with menu selection, r+sr=roc
This commit is contained in:
parent
4ed141a6e6
commit
d842887270
@ -1669,6 +1669,7 @@ nsMenuPopupFrame::AttributeChanged(PRInt32 aNameSpaceID,
|
||||
// menugenerated attribute is set, see bug 279703 comment 42 for discussion
|
||||
if (aAttribute == nsGkAtoms::menugenerated &&
|
||||
mFrames.IsEmpty() && !mGeneratedChildren) {
|
||||
EnsureWidget();
|
||||
PresContext()->PresShell()->FrameConstructor()->
|
||||
AddLazyChildren(mContent, LazyGeneratePopupDone, nsnull, PR_TRUE);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user