mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 04:15:43 +00:00
Working on making the menu popup frame for XP menus.
This commit is contained in:
parent
d736024f65
commit
cbbb8072e7
@ -124,6 +124,10 @@ NS_NewGrippyFrame ( nsIFrame** aNewFrame );
|
|||||||
|
|
||||||
nsresult
|
nsresult
|
||||||
NS_NewSplitterFrame ( nsIFrame** aNewFrame );
|
NS_NewSplitterFrame ( nsIFrame** aNewFrame );
|
||||||
|
|
||||||
|
nsresult
|
||||||
|
NS_NewMenuPopupFrame ( nsIFrame** aNewFrame );
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//static NS_DEFINE_IID(kIStyleRuleIID, NS_ISTYLE_RULE_IID);
|
//static NS_DEFINE_IID(kIStyleRuleIID, NS_ISTYLE_RULE_IID);
|
||||||
@ -3037,6 +3041,13 @@ nsCSSFrameConstructor::ConstructXULFrame(nsIPresContext* aPresContext,
|
|||||||
isReplaced = PR_TRUE;
|
isReplaced = PR_TRUE;
|
||||||
rv = NS_NewTitledButtonFrame(&newFrame);
|
rv = NS_NewTitledButtonFrame(&newFrame);
|
||||||
}
|
}
|
||||||
|
else if (aTag == nsXULAtoms::xpmenuchildren) {
|
||||||
|
// XXX Will be its own frame that derives from
|
||||||
|
// box.
|
||||||
|
processChildren = PR_TRUE;
|
||||||
|
isReplaced = PR_TRUE;
|
||||||
|
rv = NS_NewMenuPopupFrame(&newFrame);
|
||||||
|
}
|
||||||
|
|
||||||
// BOX CONSTRUCTION
|
// BOX CONSTRUCTION
|
||||||
else if (aTag == nsXULAtoms::box || aTag == nsXULAtoms::tabbox ||
|
else if (aTag == nsXULAtoms::box || aTag == nsXULAtoms::tabbox ||
|
||||||
|
@ -124,6 +124,10 @@ NS_NewGrippyFrame ( nsIFrame** aNewFrame );
|
|||||||
|
|
||||||
nsresult
|
nsresult
|
||||||
NS_NewSplitterFrame ( nsIFrame** aNewFrame );
|
NS_NewSplitterFrame ( nsIFrame** aNewFrame );
|
||||||
|
|
||||||
|
nsresult
|
||||||
|
NS_NewMenuPopupFrame ( nsIFrame** aNewFrame );
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//static NS_DEFINE_IID(kIStyleRuleIID, NS_ISTYLE_RULE_IID);
|
//static NS_DEFINE_IID(kIStyleRuleIID, NS_ISTYLE_RULE_IID);
|
||||||
@ -3037,6 +3041,13 @@ nsCSSFrameConstructor::ConstructXULFrame(nsIPresContext* aPresContext,
|
|||||||
isReplaced = PR_TRUE;
|
isReplaced = PR_TRUE;
|
||||||
rv = NS_NewTitledButtonFrame(&newFrame);
|
rv = NS_NewTitledButtonFrame(&newFrame);
|
||||||
}
|
}
|
||||||
|
else if (aTag == nsXULAtoms::xpmenuchildren) {
|
||||||
|
// XXX Will be its own frame that derives from
|
||||||
|
// box.
|
||||||
|
processChildren = PR_TRUE;
|
||||||
|
isReplaced = PR_TRUE;
|
||||||
|
rv = NS_NewMenuPopupFrame(&newFrame);
|
||||||
|
}
|
||||||
|
|
||||||
// BOX CONSTRUCTION
|
// BOX CONSTRUCTION
|
||||||
else if (aTag == nsXULAtoms::box || aTag == nsXULAtoms::tabbox ||
|
else if (aTag == nsXULAtoms::box || aTag == nsXULAtoms::tabbox ||
|
||||||
|
Loading…
Reference in New Issue
Block a user