mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Bug 856108 - Port static analyses to clang, part 2b: use MOZ_STACK_CLASS in dom. r=Ms2ger
This commit is contained in:
parent
1eb62b3971
commit
9b438430fc
@ -44,7 +44,7 @@ struct EnumEntry {
|
|||||||
size_t length;
|
size_t length;
|
||||||
};
|
};
|
||||||
|
|
||||||
class NS_STACK_CLASS GlobalObject
|
class MOZ_STACK_CLASS GlobalObject
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
GlobalObject(JSContext* aCx, JSObject* aObject);
|
GlobalObject(JSContext* aCx, JSObject* aObject);
|
||||||
@ -65,7 +65,7 @@ private:
|
|||||||
nsCOMPtr<nsISupports> mGlobalObjectRef;
|
nsCOMPtr<nsISupports> mGlobalObjectRef;
|
||||||
};
|
};
|
||||||
|
|
||||||
class NS_STACK_CLASS WorkerGlobalObject
|
class MOZ_STACK_CLASS WorkerGlobalObject
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
WorkerGlobalObject(JSContext* aCx, JSObject* aObject);
|
WorkerGlobalObject(JSContext* aCx, JSObject* aObject);
|
||||||
@ -111,7 +111,7 @@ private:
|
|||||||
* empty string. If HasStringBuffer() returns false, call AsAString() and get
|
* empty string. If HasStringBuffer() returns false, call AsAString() and get
|
||||||
* the value from that.
|
* the value from that.
|
||||||
*/
|
*/
|
||||||
class NS_STACK_CLASS DOMString {
|
class MOZ_STACK_CLASS DOMString {
|
||||||
public:
|
public:
|
||||||
DOMString()
|
DOMString()
|
||||||
: mStringBuffer(nullptr)
|
: mStringBuffer(nullptr)
|
||||||
|
@ -1414,7 +1414,7 @@ NativeToString(JSContext* cx, JSObject* wrapper, JSObject* object, const char* p
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Dynamically ensure that two objects don't end up with the same reserved slot.
|
// Dynamically ensure that two objects don't end up with the same reserved slot.
|
||||||
class AutoCloneDOMObjectSlotGuard NS_STACK_CLASS
|
class MOZ_STACK_CLASS AutoCloneDOMObjectSlotGuard
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AutoCloneDOMObjectSlotGuard(JSObject* aOld, JSObject* aNew)
|
AutoCloneDOMObjectSlotGuard(JSObject* aOld, JSObject* aNew)
|
||||||
|
@ -134,7 +134,7 @@ protected:
|
|||||||
|
|
||||||
JSObject* mCallback;
|
JSObject* mCallback;
|
||||||
|
|
||||||
class NS_STACK_CLASS CallSetup
|
class MOZ_STACK_CLASS CallSetup
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* A class that performs whatever setup we need to safely make a
|
* A class that performs whatever setup we need to safely make a
|
||||||
|
@ -33,7 +33,7 @@ IDBTransaction* gCurrentTransaction = nullptr;
|
|||||||
|
|
||||||
const uint32_t kProgressHandlerGranularity = 1000;
|
const uint32_t kProgressHandlerGranularity = 1000;
|
||||||
|
|
||||||
class TransactionPoolEventTarget : public StackBasedEventTarget
|
class MOZ_STACK_CLASS TransactionPoolEventTarget : public StackBasedEventTarget
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
NS_DECL_NSIEVENTTARGET
|
NS_DECL_NSIEVENTTARGET
|
||||||
|
@ -241,20 +241,19 @@ private:
|
|||||||
bool mDispatched;
|
bool mDispatched;
|
||||||
};
|
};
|
||||||
|
|
||||||
NS_STACK_CLASS
|
class MOZ_STACK_CLASS StackBasedEventTarget : public nsIEventTarget
|
||||||
class StackBasedEventTarget : public nsIEventTarget
|
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
NS_DECL_ISUPPORTS_INHERITED
|
NS_DECL_ISUPPORTS_INHERITED
|
||||||
};
|
};
|
||||||
|
|
||||||
class ImmediateRunEventTarget : public StackBasedEventTarget
|
class MOZ_STACK_CLASS ImmediateRunEventTarget : public StackBasedEventTarget
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
NS_DECL_NSIEVENTTARGET
|
NS_DECL_NSIEVENTTARGET
|
||||||
};
|
};
|
||||||
|
|
||||||
class NoDispatchEventTarget : public StackBasedEventTarget
|
class MOZ_STACK_CLASS NoDispatchEventTarget : public StackBasedEventTarget
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
NS_DECL_NSIEVENTTARGET
|
NS_DECL_NSIEVENTTARGET
|
||||||
|
@ -144,8 +144,7 @@ private:
|
|||||||
nsRefPtr<FileInfo> mFileInfo;
|
nsRefPtr<FileInfo> mFileInfo;
|
||||||
};
|
};
|
||||||
|
|
||||||
NS_STACK_CLASS
|
class MOZ_STACK_CLASS AutoRemoveObjectStore
|
||||||
class AutoRemoveObjectStore
|
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AutoRemoveObjectStore(DatabaseInfo* aInfo, const nsAString& aName)
|
AutoRemoveObjectStore(DatabaseInfo* aInfo, const nsAString& aName)
|
||||||
|
@ -472,8 +472,7 @@ private:
|
|||||||
uint64_t mCount;
|
uint64_t mCount;
|
||||||
};
|
};
|
||||||
|
|
||||||
NS_STACK_CLASS
|
class MOZ_STACK_CLASS AutoRemoveIndex
|
||||||
class AutoRemoveIndex
|
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AutoRemoveIndex(ObjectStoreInfo* aObjectStoreInfo,
|
AutoRemoveIndex(ObjectStoreInfo* aObjectStoreInfo,
|
||||||
|
@ -418,7 +418,7 @@ TransactionThreadPool::AbortTransactionsForDatabase(IDBDatabase* aDatabase)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
struct NS_STACK_CLASS TransactionSearchInfo
|
struct MOZ_STACK_CLASS TransactionSearchInfo
|
||||||
{
|
{
|
||||||
TransactionSearchInfo(nsIOfflineStorage* aDatabase)
|
TransactionSearchInfo(nsIOfflineStorage* aDatabase)
|
||||||
: db(aDatabase), found(false)
|
: db(aDatabase), found(false)
|
||||||
|
@ -362,7 +362,7 @@ OnShutdown();
|
|||||||
* within a lexical scope, locks and unlocks the mutex used to
|
* within a lexical scope, locks and unlocks the mutex used to
|
||||||
* serialize modifications to plugin async callback state.
|
* serialize modifications to plugin async callback state.
|
||||||
*/
|
*/
|
||||||
struct NS_STACK_CLASS AsyncCallbackAutoLock
|
struct MOZ_STACK_CLASS AsyncCallbackAutoLock
|
||||||
{
|
{
|
||||||
AsyncCallbackAutoLock();
|
AsyncCallbackAutoLock();
|
||||||
~AsyncCallbackAutoLock();
|
~AsyncCallbackAutoLock();
|
||||||
@ -389,8 +389,8 @@ protected:
|
|||||||
// separate objects on the stack since we always want a
|
// separate objects on the stack since we always want a
|
||||||
// PluginDestructionGuard where we use an NPPAutoPusher.
|
// PluginDestructionGuard where we use an NPPAutoPusher.
|
||||||
|
|
||||||
class NPPAutoPusher : public NPPStack,
|
class MOZ_STACK_CLASS NPPAutoPusher : public NPPStack,
|
||||||
protected PluginDestructionGuard
|
protected PluginDestructionGuard
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
NPPAutoPusher(NPP npp)
|
NPPAutoPusher(NPP npp)
|
||||||
|
@ -1171,7 +1171,7 @@ nsNPAPIPluginInstance::IsWindowless(bool* isWindowless)
|
|||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
class NS_STACK_CLASS AutoPluginLibraryCall
|
class MOZ_STACK_CLASS AutoPluginLibraryCall
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AutoPluginLibraryCall(nsNPAPIPluginInstance* aThis)
|
AutoPluginLibraryCall(nsNPAPIPluginInstance* aThis)
|
||||||
|
@ -301,7 +301,7 @@ private:
|
|||||||
static nsPluginHost* sInst;
|
static nsPluginHost* sInst;
|
||||||
};
|
};
|
||||||
|
|
||||||
class NS_STACK_CLASS PluginDestructionGuard : protected PRCList
|
class MOZ_STACK_CLASS PluginDestructionGuard : protected PRCList
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
PluginDestructionGuard(nsNPAPIPluginInstance *aInstance)
|
PluginDestructionGuard(nsNPAPIPluginInstance *aInstance)
|
||||||
|
@ -45,7 +45,7 @@ public:
|
|||||||
|
|
||||||
void MakePermanent();
|
void MakePermanent();
|
||||||
|
|
||||||
class NS_STACK_CLASS StackIdentifier
|
class MOZ_STACK_CLASS StackIdentifier
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
StackIdentifier(PPluginIdentifierChild* actor)
|
StackIdentifier(PPluginIdentifierChild* actor)
|
||||||
|
@ -34,7 +34,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
* Holds a perhaps-temporary identifier for the current stack frame.
|
* Holds a perhaps-temporary identifier for the current stack frame.
|
||||||
*/
|
*/
|
||||||
class NS_STACK_CLASS StackIdentifier
|
class MOZ_STACK_CLASS StackIdentifier
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
StackIdentifier(PluginInstanceParent* inst, NPIdentifier aIdentifier);
|
StackIdentifier(PluginInstanceParent* inst, NPIdentifier aIdentifier);
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
class nsIURI;
|
class nsIURI;
|
||||||
|
|
||||||
class NS_STACK_CLASS nsJSONWriter
|
class MOZ_STACK_CLASS nsJSONWriter
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
nsJSONWriter();
|
nsJSONWriter();
|
||||||
|
Loading…
Reference in New Issue
Block a user