mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +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;
|
||||
};
|
||||
|
||||
class NS_STACK_CLASS GlobalObject
|
||||
class MOZ_STACK_CLASS GlobalObject
|
||||
{
|
||||
public:
|
||||
GlobalObject(JSContext* aCx, JSObject* aObject);
|
||||
@ -65,7 +65,7 @@ private:
|
||||
nsCOMPtr<nsISupports> mGlobalObjectRef;
|
||||
};
|
||||
|
||||
class NS_STACK_CLASS WorkerGlobalObject
|
||||
class MOZ_STACK_CLASS WorkerGlobalObject
|
||||
{
|
||||
public:
|
||||
WorkerGlobalObject(JSContext* aCx, JSObject* aObject);
|
||||
@ -111,7 +111,7 @@ private:
|
||||
* empty string. If HasStringBuffer() returns false, call AsAString() and get
|
||||
* the value from that.
|
||||
*/
|
||||
class NS_STACK_CLASS DOMString {
|
||||
class MOZ_STACK_CLASS DOMString {
|
||||
public:
|
||||
DOMString()
|
||||
: 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.
|
||||
class AutoCloneDOMObjectSlotGuard NS_STACK_CLASS
|
||||
class MOZ_STACK_CLASS AutoCloneDOMObjectSlotGuard
|
||||
{
|
||||
public:
|
||||
AutoCloneDOMObjectSlotGuard(JSObject* aOld, JSObject* aNew)
|
||||
|
@ -134,7 +134,7 @@ protected:
|
||||
|
||||
JSObject* mCallback;
|
||||
|
||||
class NS_STACK_CLASS CallSetup
|
||||
class MOZ_STACK_CLASS CallSetup
|
||||
{
|
||||
/**
|
||||
* A class that performs whatever setup we need to safely make a
|
||||
|
@ -33,7 +33,7 @@ IDBTransaction* gCurrentTransaction = nullptr;
|
||||
|
||||
const uint32_t kProgressHandlerGranularity = 1000;
|
||||
|
||||
class TransactionPoolEventTarget : public StackBasedEventTarget
|
||||
class MOZ_STACK_CLASS TransactionPoolEventTarget : public StackBasedEventTarget
|
||||
{
|
||||
public:
|
||||
NS_DECL_NSIEVENTTARGET
|
||||
|
@ -241,20 +241,19 @@ private:
|
||||
bool mDispatched;
|
||||
};
|
||||
|
||||
NS_STACK_CLASS
|
||||
class StackBasedEventTarget : public nsIEventTarget
|
||||
class MOZ_STACK_CLASS StackBasedEventTarget : public nsIEventTarget
|
||||
{
|
||||
public:
|
||||
NS_DECL_ISUPPORTS_INHERITED
|
||||
};
|
||||
|
||||
class ImmediateRunEventTarget : public StackBasedEventTarget
|
||||
class MOZ_STACK_CLASS ImmediateRunEventTarget : public StackBasedEventTarget
|
||||
{
|
||||
public:
|
||||
NS_DECL_NSIEVENTTARGET
|
||||
};
|
||||
|
||||
class NoDispatchEventTarget : public StackBasedEventTarget
|
||||
class MOZ_STACK_CLASS NoDispatchEventTarget : public StackBasedEventTarget
|
||||
{
|
||||
public:
|
||||
NS_DECL_NSIEVENTTARGET
|
||||
|
@ -144,8 +144,7 @@ private:
|
||||
nsRefPtr<FileInfo> mFileInfo;
|
||||
};
|
||||
|
||||
NS_STACK_CLASS
|
||||
class AutoRemoveObjectStore
|
||||
class MOZ_STACK_CLASS AutoRemoveObjectStore
|
||||
{
|
||||
public:
|
||||
AutoRemoveObjectStore(DatabaseInfo* aInfo, const nsAString& aName)
|
||||
|
@ -472,8 +472,7 @@ private:
|
||||
uint64_t mCount;
|
||||
};
|
||||
|
||||
NS_STACK_CLASS
|
||||
class AutoRemoveIndex
|
||||
class MOZ_STACK_CLASS AutoRemoveIndex
|
||||
{
|
||||
public:
|
||||
AutoRemoveIndex(ObjectStoreInfo* aObjectStoreInfo,
|
||||
|
@ -418,7 +418,7 @@ TransactionThreadPool::AbortTransactionsForDatabase(IDBDatabase* aDatabase)
|
||||
}
|
||||
}
|
||||
|
||||
struct NS_STACK_CLASS TransactionSearchInfo
|
||||
struct MOZ_STACK_CLASS TransactionSearchInfo
|
||||
{
|
||||
TransactionSearchInfo(nsIOfflineStorage* aDatabase)
|
||||
: db(aDatabase), found(false)
|
||||
|
@ -362,7 +362,7 @@ OnShutdown();
|
||||
* within a lexical scope, locks and unlocks the mutex used to
|
||||
* serialize modifications to plugin async callback state.
|
||||
*/
|
||||
struct NS_STACK_CLASS AsyncCallbackAutoLock
|
||||
struct MOZ_STACK_CLASS AsyncCallbackAutoLock
|
||||
{
|
||||
AsyncCallbackAutoLock();
|
||||
~AsyncCallbackAutoLock();
|
||||
@ -389,8 +389,8 @@ protected:
|
||||
// separate objects on the stack since we always want a
|
||||
// PluginDestructionGuard where we use an NPPAutoPusher.
|
||||
|
||||
class NPPAutoPusher : public NPPStack,
|
||||
protected PluginDestructionGuard
|
||||
class MOZ_STACK_CLASS NPPAutoPusher : public NPPStack,
|
||||
protected PluginDestructionGuard
|
||||
{
|
||||
public:
|
||||
NPPAutoPusher(NPP npp)
|
||||
|
@ -1171,7 +1171,7 @@ nsNPAPIPluginInstance::IsWindowless(bool* isWindowless)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
class NS_STACK_CLASS AutoPluginLibraryCall
|
||||
class MOZ_STACK_CLASS AutoPluginLibraryCall
|
||||
{
|
||||
public:
|
||||
AutoPluginLibraryCall(nsNPAPIPluginInstance* aThis)
|
||||
|
@ -301,7 +301,7 @@ private:
|
||||
static nsPluginHost* sInst;
|
||||
};
|
||||
|
||||
class NS_STACK_CLASS PluginDestructionGuard : protected PRCList
|
||||
class MOZ_STACK_CLASS PluginDestructionGuard : protected PRCList
|
||||
{
|
||||
public:
|
||||
PluginDestructionGuard(nsNPAPIPluginInstance *aInstance)
|
||||
|
@ -45,7 +45,7 @@ public:
|
||||
|
||||
void MakePermanent();
|
||||
|
||||
class NS_STACK_CLASS StackIdentifier
|
||||
class MOZ_STACK_CLASS StackIdentifier
|
||||
{
|
||||
public:
|
||||
StackIdentifier(PPluginIdentifierChild* actor)
|
||||
|
@ -34,7 +34,7 @@ public:
|
||||
/**
|
||||
* Holds a perhaps-temporary identifier for the current stack frame.
|
||||
*/
|
||||
class NS_STACK_CLASS StackIdentifier
|
||||
class MOZ_STACK_CLASS StackIdentifier
|
||||
{
|
||||
public:
|
||||
StackIdentifier(PluginInstanceParent* inst, NPIdentifier aIdentifier);
|
||||
|
@ -20,7 +20,7 @@
|
||||
|
||||
class nsIURI;
|
||||
|
||||
class NS_STACK_CLASS nsJSONWriter
|
||||
class MOZ_STACK_CLASS nsJSONWriter
|
||||
{
|
||||
public:
|
||||
nsJSONWriter();
|
||||
|
Loading…
Reference in New Issue
Block a user