Fix to make sure Mac RDF menus still show up.
git-svn-id: svn://10.0.0.236/trunk@33836 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
3b585d3189
commit
562f22861f
@ -519,6 +519,11 @@ NS_IMETHODIMP nsWebShellWindow::CreateMenu(nsIMenuBar * aMenuBar,
|
||||
// Make nsMenu a child of nsMenuBar
|
||||
aMenuBar->AddMenu(pnsMenu);
|
||||
|
||||
// Open the node so that the contents are visible.
|
||||
nsCOMPtr<nsIDOMElement> menuElement = do_QueryInterface(aMenuNode);
|
||||
if (menuElement)
|
||||
menuElement->SetAttribute("open", "true");
|
||||
|
||||
// Begin menuitem inner loop
|
||||
nsCOMPtr<nsIDOMNode> menuitemNode;
|
||||
aMenuNode->GetFirstChild(getter_AddRefs(menuitemNode));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user