mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 907508 - Define the slot count for xpconnect and worker globals in terms of the slots defined in DOMJSClass.h. r=bz
This commit is contained in:
parent
84d666b750
commit
f6b09836a4
@ -32,6 +32,9 @@ class nsCycleCollectionParticipant;
|
||||
// All DOM globals must have a slot at DOM_PROTOTYPE_SLOT.
|
||||
#define DOM_PROTOTYPE_SLOT JSCLASS_GLOBAL_SLOT_COUNT
|
||||
|
||||
// Keep this count up to date with any extra global slots added above.
|
||||
#define DOM_GLOBAL_SLOTS 1
|
||||
|
||||
// We use these flag bits for the new bindings.
|
||||
#define JSCLASS_DOM_GLOBAL JSCLASS_USERBIT1
|
||||
#define JSCLASS_IS_DOMIFACEANDPROTOJSCLASS JSCLASS_USERBIT2
|
||||
|
@ -863,7 +863,7 @@ DOMJSClass DedicatedWorkerGlobalScope::sClass = {
|
||||
// have an Xray wrapper to a worker global scope.
|
||||
"DedicatedWorkerGlobalScope",
|
||||
JSCLASS_DOM_GLOBAL | JSCLASS_IS_DOMJSCLASS | JSCLASS_IMPLEMENTS_BARRIERS |
|
||||
JSCLASS_GLOBAL_FLAGS_WITH_SLOTS(1) | JSCLASS_NEW_RESOLVE,
|
||||
JSCLASS_GLOBAL_FLAGS_WITH_SLOTS(DOM_GLOBAL_SLOTS) | JSCLASS_NEW_RESOLVE,
|
||||
JS_PropertyStub, JS_DeletePropertyStub, JS_PropertyStub, JS_StrictPropertyStub,
|
||||
JS_EnumerateStub, reinterpret_cast<JSResolveOp>(Resolve), JS_ConvertStub,
|
||||
Finalize, NULL, NULL, NULL, NULL, Trace
|
||||
|
@ -79,7 +79,7 @@ struct RuntimeStats;
|
||||
#define XPCONNECT_GLOBAL_FLAGS \
|
||||
JSCLASS_DOM_GLOBAL | JSCLASS_HAS_PRIVATE | \
|
||||
JSCLASS_PRIVATE_IS_NSISUPPORTS | JSCLASS_IMPLEMENTS_BARRIERS | \
|
||||
JSCLASS_GLOBAL_FLAGS_WITH_SLOTS(1)
|
||||
JSCLASS_GLOBAL_FLAGS_WITH_SLOTS(DOM_GLOBAL_SLOTS)
|
||||
|
||||
void
|
||||
TraceXPCGlobal(JSTracer *trc, JSObject *obj);
|
||||
|
Loading…
Reference in New Issue
Block a user