зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1489617 - Get rid of XUL box related component registrations. r=Ehsan
Plus various boilerplate that is only used for the component registration. Depends on D5289 Differential Revision: https://phabricator.services.mozilla.com/D5301 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
04533463d7
Коммит
a5868c8235
|
@ -15,18 +15,6 @@
|
|||
#define NS_LAYOUT_DEBUGGER_CID \
|
||||
{ 0xa6cf90f9, 0x15b3, 0x11d2,{0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32}}
|
||||
|
||||
// {D750A964-2D14-484c-B3AA-8ED7823B5C7B}
|
||||
#define NS_BOXOBJECT_CID \
|
||||
{ 0xd750a964, 0x2d14, 0x484c, { 0xb3, 0xaa, 0x8e, 0xd7, 0x82, 0x3b, 0x5c, 0x7b } }
|
||||
|
||||
// {AA40253B-4C42-4056-8132-37BCD07862FD}
|
||||
#define NS_MENUBOXOBJECT_CID \
|
||||
{ 0xaa40253b, 0x4c42, 0x4056, { 0x81, 0x32, 0x37, 0xbc, 0xd0, 0x78, 0x62, 0xfd } }
|
||||
|
||||
// {3B581FD4-3497-426c-8F61-3658B971CB80}
|
||||
#define NS_TREEBOXOBJECT_CID \
|
||||
{ 0x3b581fd4, 0x3497, 0x426c, { 0x8f, 0x61, 0x36, 0x58, 0xb9, 0x71, 0xcb, 0x80 } }
|
||||
|
||||
// {2fe88332-31c6-4829-b247-a07d8a73e80f}
|
||||
#define NS_CANVASRENDERINGCONTEXTWEBGL_CID \
|
||||
{ 0x2fe88332, 0x31c6, 0x4829, { 0xb2, 0x47, 0xa0, 0x7d, 0x8a, 0x7e, 0xe8, 0x0fe } }
|
||||
|
|
|
@ -39,7 +39,6 @@
|
|||
#include "nsXMLContentSerializer.h"
|
||||
#include "nsXHTMLContentSerializer.h"
|
||||
#include "nsContentAreaDragDrop.h"
|
||||
#include "nsBox.h"
|
||||
#include "nsIFrameTraversal.h"
|
||||
#include "nsLayoutCID.h"
|
||||
#include "nsStyleSheetService.h"
|
||||
|
@ -118,7 +117,6 @@ class nsIDocumentLoaderFactory;
|
|||
{ /* 0DE2FBFA-6B7F-11D7-BBBA-0003938A9D96 */ \
|
||||
0x0DE2FBFA, 0x6B7F, 0x11D7, {0xBB, 0xBA, 0x00, 0x03, 0x93, 0x8A, 0x9D, 0x96} }
|
||||
|
||||
#include "nsIBoxObject.h"
|
||||
#include "inDeepTreeWalker.h"
|
||||
|
||||
#ifdef MOZ_XUL
|
||||
|
@ -286,13 +284,6 @@ Shutdown()
|
|||
nsresult NS_NewLayoutDebugger(nsILayoutDebugger** aResult);
|
||||
#endif
|
||||
|
||||
nsresult NS_NewBoxObject(nsIBoxObject** aResult);
|
||||
|
||||
#ifdef MOZ_XUL
|
||||
nsresult NS_NewMenuBoxObject(nsIBoxObject** aResult);
|
||||
nsresult NS_NewTreeBoxObject(nsIBoxObject** aResult);
|
||||
#endif
|
||||
|
||||
nsresult NS_CreateFrameTraversal(nsIFrameTraversal** aResult);
|
||||
|
||||
already_AddRefed<nsIContentViewer> NS_NewContentViewer();
|
||||
|
@ -346,12 +337,6 @@ MAKE_CTOR(CreateNewLayoutDebugger, nsILayoutDebugger, NS_NewLay
|
|||
#endif
|
||||
|
||||
MAKE_CTOR(CreateNewFrameTraversal, nsIFrameTraversal, NS_CreateFrameTraversal)
|
||||
MAKE_CTOR(CreateNewBoxObject, nsIBoxObject, NS_NewBoxObject)
|
||||
|
||||
#ifdef MOZ_XUL
|
||||
MAKE_CTOR(CreateNewMenuBoxObject, nsIBoxObject, NS_NewMenuBoxObject)
|
||||
MAKE_CTOR(CreateNewTreeBoxObject, nsIBoxObject, NS_NewTreeBoxObject)
|
||||
#endif // MOZ_XUL
|
||||
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR(inDeepTreeWalker)
|
||||
|
||||
|
@ -475,11 +460,6 @@ Construct_nsIScriptSecurityManager(nsISupports *aOuter, REFNSIID aIID,
|
|||
NS_DEFINE_NAMED_CID(NS_LAYOUT_DEBUGGER_CID);
|
||||
#endif
|
||||
NS_DEFINE_NAMED_CID(NS_FRAMETRAVERSAL_CID);
|
||||
NS_DEFINE_NAMED_CID(NS_BOXOBJECT_CID);
|
||||
#ifdef MOZ_XUL
|
||||
NS_DEFINE_NAMED_CID(NS_MENUBOXOBJECT_CID);
|
||||
NS_DEFINE_NAMED_CID(NS_TREEBOXOBJECT_CID);
|
||||
#endif // MOZ_XUL
|
||||
NS_DEFINE_NAMED_CID(IN_DEEPTREEWALKER_CID);
|
||||
NS_DEFINE_NAMED_CID(NS_CONTENT_VIEWER_CID);
|
||||
NS_DEFINE_NAMED_CID(NS_HTMLDOCUMENT_CID);
|
||||
|
@ -703,11 +683,6 @@ static const mozilla::Module::CIDEntry kLayoutCIDs[] = {
|
|||
{ &kNS_LAYOUT_DEBUGGER_CID, false, nullptr, CreateNewLayoutDebugger },
|
||||
#endif
|
||||
{ &kNS_FRAMETRAVERSAL_CID, false, nullptr, CreateNewFrameTraversal },
|
||||
{ &kNS_BOXOBJECT_CID, false, nullptr, CreateNewBoxObject },
|
||||
#ifdef MOZ_XUL
|
||||
{ &kNS_MENUBOXOBJECT_CID, false, nullptr, CreateNewMenuBoxObject },
|
||||
{ &kNS_TREEBOXOBJECT_CID, false, nullptr, CreateNewTreeBoxObject },
|
||||
#endif // MOZ_XUL
|
||||
{ &kIN_DEEPTREEWALKER_CID, false, nullptr, inDeepTreeWalkerConstructor },
|
||||
{ &kNS_CONTENT_VIEWER_CID, false, nullptr, CreateContentViewer },
|
||||
{ &kNS_HTMLDOCUMENT_CID, false, nullptr, CreateHTMLDocument },
|
||||
|
@ -802,11 +777,6 @@ static const mozilla::Module::CIDEntry kLayoutCIDs[] = {
|
|||
|
||||
static const mozilla::Module::ContractIDEntry kLayoutContracts[] = {
|
||||
XPCONNECT_CONTRACTS
|
||||
{ "@mozilla.org/layout/xul-boxobject;1", &kNS_BOXOBJECT_CID },
|
||||
#ifdef MOZ_XUL
|
||||
{ "@mozilla.org/layout/xul-boxobject-menu;1", &kNS_MENUBOXOBJECT_CID },
|
||||
{ "@mozilla.org/layout/xul-boxobject-tree;1", &kNS_TREEBOXOBJECT_CID },
|
||||
#endif // MOZ_XUL
|
||||
{ "@mozilla.org/inspector/deep-tree-walker;1", &kIN_DEEPTREEWALKER_CID },
|
||||
{ "@mozilla.org/xml/xml-document;1", &kNS_XMLDOCUMENT_CID },
|
||||
{ "@mozilla.org/svg/svg-document;1", &kNS_SVGDOCUMENT_CID },
|
||||
|
|
|
@ -574,14 +574,3 @@ BoxObject::RemoveProperty(const nsAString& propertyName)
|
|||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
|
||||
// Creation Routine ///////////////////////////////////////////////////////////////////////
|
||||
|
||||
using namespace mozilla::dom;
|
||||
|
||||
nsresult
|
||||
NS_NewBoxObject(nsIBoxObject** aResult)
|
||||
{
|
||||
NS_ADDREF(*aResult = new BoxObject());
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
|
@ -135,14 +135,3 @@ bool MenuBoxObject::OpenedWithKey()
|
|||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
|
||||
// Creation Routine ///////////////////////////////////////////////////////////////////////
|
||||
|
||||
using namespace mozilla::dom;
|
||||
|
||||
nsresult
|
||||
NS_NewMenuBoxObject(nsIBoxObject** aResult)
|
||||
{
|
||||
NS_ADDREF(*aResult = new MenuBoxObject());
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
|
@ -25,9 +25,3 @@ interface nsIBoxObject : nsISupports
|
|||
void setProperty(in wstring propertyName, in wstring propertyValue);
|
||||
void removeProperty(in wstring propertyName);
|
||||
};
|
||||
|
||||
%{C++
|
||||
nsresult
|
||||
NS_NewBoxObject(nsIBoxObject** aResult);
|
||||
|
||||
%}
|
||||
|
|
|
@ -608,14 +608,3 @@ TreeBoxObject::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
|||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
|
||||
// Creation Routine ///////////////////////////////////////////////////////////////////////
|
||||
|
||||
using namespace mozilla::dom;
|
||||
|
||||
nsresult
|
||||
NS_NewTreeBoxObject(nsIBoxObject** aResult)
|
||||
{
|
||||
NS_ADDREF(*aResult = new TreeBoxObject());
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче