menu patch for rods, r=ben
git-svn-id: svn://10.0.0.236/trunk@70728 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -139,9 +139,14 @@ nsMenuFrame::Init(nsIPresContext* aPresContext,
|
||||
|
||||
nsresult rv = nsBoxFrame::Init(aPresContext, aContent, aParent, aContext, aPrevInFlow);
|
||||
|
||||
// Set our menu parent.
|
||||
nsCOMPtr<nsIMenuParent> menuparent = do_QueryInterface(aParent);
|
||||
mMenuParent = menuparent.get();
|
||||
nsIFrame* currFrame = aParent;
|
||||
while (!mMenuParent && currFrame) {
|
||||
// Set our menu parent.
|
||||
nsCOMPtr<nsIMenuParent> menuparent(do_QueryInterface(currFrame));
|
||||
mMenuParent = menuparent.get();
|
||||
|
||||
currFrame->GetParent(&currFrame);
|
||||
}
|
||||
|
||||
// Do the type="checkbox" magic
|
||||
UpdateMenuType(aPresContext);
|
||||
|
||||
Reference in New Issue
Block a user