Bug 939608 - Part 1: Code changes required to build xpconnect in unified mode; r=bholley

--HG--
extra : rebase_source : e691b361737fbb233a0b33ed7fc6aa97ae172223
This commit is contained in:
Ehsan Akhgari 2013-11-19 15:03:40 -05:00
Родитель 91f86bbdfa
Коммит 69ecdab690
3 изменённых файлов: 10 добавлений и 1 удалений

Просмотреть файл

@ -4,6 +4,9 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef mozJSComponentLoader_h
#define mozJSComponentLoader_h
#include "mozilla/ModuleLoader.h"
#include "nsISupports.h"
#include "nsIObserver.h"
@ -143,3 +146,5 @@ class mozJSComponentLoader : public mozilla::ModuleLoader,
bool mInitialized;
bool mReuseLoaderGlobal;
};
#endif

Просмотреть файл

@ -825,7 +825,7 @@ nsJSCID::Construct(nsIXPConnectWrappedNative *wrapper,
// 'push' a call context and call on it
RootedId name(cx, rt->GetStringID(XPCJSRuntime::IDX_CREATE_INSTANCE));
XPCCallContext ccx(JS_CALLER, cx, obj, NullPtr(), name, args.length(), args.array(),
XPCCallContext ccx(JS_CALLER, cx, obj, JS::NullPtr(), name, args.length(), args.array(),
args.rval().address());
*_retval = XPCWrappedNative::CallMethod(ccx);

Просмотреть файл

@ -5,6 +5,9 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef XrayWrapper_h
#define XrayWrapper_h
#include "mozilla/Attributes.h"
#include "jswrapper.h"
@ -190,3 +193,4 @@ private:
}
#endif