зеркало из https://github.com/mozilla/pjs.git
hookup toolbars and toolbox so they are instantiated when xul sees those tags.
This commit is contained in:
Родитель
44f108dc2c
Коммит
6864fb136f
|
@ -48,6 +48,8 @@
|
||||||
|
|
||||||
#ifdef INCLUDE_XUL
|
#ifdef INCLUDE_XUL
|
||||||
#include "nsXULAtoms.h"
|
#include "nsXULAtoms.h"
|
||||||
|
#include "nsToolboxFrame.h"
|
||||||
|
#include "nsToolbarFrame.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static NS_DEFINE_IID(kIHTMLStyleSheetIID, NS_IHTML_STYLE_SHEET_IID);
|
static NS_DEFINE_IID(kIHTMLStyleSheetIID, NS_IHTML_STYLE_SHEET_IID);
|
||||||
|
@ -1849,6 +1851,14 @@ HTMLStyleSheetImpl::ConstructXULFrame(nsIPresContext* aPresContext,
|
||||||
rv = NS_NewTextControlFrame(aNewFrame);
|
rv = NS_NewTextControlFrame(aNewFrame);
|
||||||
else if (aTag == nsXULAtoms::widget)
|
else if (aTag == nsXULAtoms::widget)
|
||||||
rv = NS_NewObjectFrame(aNewFrame);
|
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
|
// If we succeeded in creating a frame then initialize it, process its
|
||||||
|
|
|
@ -48,6 +48,8 @@
|
||||||
|
|
||||||
#ifdef INCLUDE_XUL
|
#ifdef INCLUDE_XUL
|
||||||
#include "nsXULAtoms.h"
|
#include "nsXULAtoms.h"
|
||||||
|
#include "nsToolboxFrame.h"
|
||||||
|
#include "nsToolbarFrame.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static NS_DEFINE_IID(kIHTMLStyleSheetIID, NS_IHTML_STYLE_SHEET_IID);
|
static NS_DEFINE_IID(kIHTMLStyleSheetIID, NS_IHTML_STYLE_SHEET_IID);
|
||||||
|
@ -1849,6 +1851,14 @@ HTMLStyleSheetImpl::ConstructXULFrame(nsIPresContext* aPresContext,
|
||||||
rv = NS_NewTextControlFrame(aNewFrame);
|
rv = NS_NewTextControlFrame(aNewFrame);
|
||||||
else if (aTag == nsXULAtoms::widget)
|
else if (aTag == nsXULAtoms::widget)
|
||||||
rv = NS_NewObjectFrame(aNewFrame);
|
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
|
// If we succeeded in creating a frame then initialize it, process its
|
||||||
|
|
|
@ -48,6 +48,8 @@
|
||||||
|
|
||||||
#ifdef INCLUDE_XUL
|
#ifdef INCLUDE_XUL
|
||||||
#include "nsXULAtoms.h"
|
#include "nsXULAtoms.h"
|
||||||
|
#include "nsToolboxFrame.h"
|
||||||
|
#include "nsToolbarFrame.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static NS_DEFINE_IID(kIHTMLStyleSheetIID, NS_IHTML_STYLE_SHEET_IID);
|
static NS_DEFINE_IID(kIHTMLStyleSheetIID, NS_IHTML_STYLE_SHEET_IID);
|
||||||
|
@ -1849,6 +1851,14 @@ HTMLStyleSheetImpl::ConstructXULFrame(nsIPresContext* aPresContext,
|
||||||
rv = NS_NewTextControlFrame(aNewFrame);
|
rv = NS_NewTextControlFrame(aNewFrame);
|
||||||
else if (aTag == nsXULAtoms::widget)
|
else if (aTag == nsXULAtoms::widget)
|
||||||
rv = NS_NewObjectFrame(aNewFrame);
|
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
|
// If we succeeded in creating a frame then initialize it, process its
|
||||||
|
|
Загрузка…
Ссылка в новой задаче