mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-25 17:43:44 +00:00
hookup toolbars and toolbox so they are instantiated when xul sees those tags.
This commit is contained in:
parent
80f6a5a6d0
commit
e959db5706
@ -48,6 +48,8 @@
|
||||
|
||||
#ifdef INCLUDE_XUL
|
||||
#include "nsXULAtoms.h"
|
||||
#include "nsToolboxFrame.h"
|
||||
#include "nsToolbarFrame.h"
|
||||
#endif
|
||||
|
||||
static NS_DEFINE_IID(kIHTMLStyleSheetIID, NS_IHTML_STYLE_SHEET_IID);
|
||||
@ -1849,6 +1851,14 @@ HTMLStyleSheetImpl::ConstructXULFrame(nsIPresContext* aPresContext,
|
||||
rv = NS_NewTextControlFrame(aNewFrame);
|
||||
else if (aTag == nsXULAtoms::widget)
|
||||
rv = NS_NewObjectFrame(aNewFrame);
|
||||
else if (aTag == nsXULAtoms::toolbox) {
|
||||
processChildren = PR_TRUE;
|
||||
rv = NS_NewToolboxFrame(aNewFrame);
|
||||
}
|
||||
else if (aTag == nsXULAtoms::toolbar) {
|
||||
processChildren = PR_TRUE;
|
||||
rv = NS_NewToolbarFrame(aNewFrame);
|
||||
}
|
||||
}
|
||||
|
||||
// If we succeeded in creating a frame then initialize it, process its
|
||||
|
@ -48,6 +48,8 @@
|
||||
|
||||
#ifdef INCLUDE_XUL
|
||||
#include "nsXULAtoms.h"
|
||||
#include "nsToolboxFrame.h"
|
||||
#include "nsToolbarFrame.h"
|
||||
#endif
|
||||
|
||||
static NS_DEFINE_IID(kIHTMLStyleSheetIID, NS_IHTML_STYLE_SHEET_IID);
|
||||
@ -1849,6 +1851,14 @@ HTMLStyleSheetImpl::ConstructXULFrame(nsIPresContext* aPresContext,
|
||||
rv = NS_NewTextControlFrame(aNewFrame);
|
||||
else if (aTag == nsXULAtoms::widget)
|
||||
rv = NS_NewObjectFrame(aNewFrame);
|
||||
else if (aTag == nsXULAtoms::toolbox) {
|
||||
processChildren = PR_TRUE;
|
||||
rv = NS_NewToolboxFrame(aNewFrame);
|
||||
}
|
||||
else if (aTag == nsXULAtoms::toolbar) {
|
||||
processChildren = PR_TRUE;
|
||||
rv = NS_NewToolbarFrame(aNewFrame);
|
||||
}
|
||||
}
|
||||
|
||||
// If we succeeded in creating a frame then initialize it, process its
|
||||
|
@ -48,6 +48,8 @@
|
||||
|
||||
#ifdef INCLUDE_XUL
|
||||
#include "nsXULAtoms.h"
|
||||
#include "nsToolboxFrame.h"
|
||||
#include "nsToolbarFrame.h"
|
||||
#endif
|
||||
|
||||
static NS_DEFINE_IID(kIHTMLStyleSheetIID, NS_IHTML_STYLE_SHEET_IID);
|
||||
@ -1849,6 +1851,14 @@ HTMLStyleSheetImpl::ConstructXULFrame(nsIPresContext* aPresContext,
|
||||
rv = NS_NewTextControlFrame(aNewFrame);
|
||||
else if (aTag == nsXULAtoms::widget)
|
||||
rv = NS_NewObjectFrame(aNewFrame);
|
||||
else if (aTag == nsXULAtoms::toolbox) {
|
||||
processChildren = PR_TRUE;
|
||||
rv = NS_NewToolboxFrame(aNewFrame);
|
||||
}
|
||||
else if (aTag == nsXULAtoms::toolbar) {
|
||||
processChildren = PR_TRUE;
|
||||
rv = NS_NewToolbarFrame(aNewFrame);
|
||||
}
|
||||
}
|
||||
|
||||
// If we succeeded in creating a frame then initialize it, process its
|
||||
|
Loading…
Reference in New Issue
Block a user