Bug 856108 - Port static analyses to clang, part 2a: use MOZ_STACK_CLASS in content. r=bz

This commit is contained in:
Joshua Cranmer 2013-04-11 22:20:09 -05:00
parent b721b5a37b
commit 66e39d8aff
25 changed files with 39 additions and 39 deletions

View File

@ -2268,7 +2268,7 @@ typedef nsCharSeparatedTokenizerTemplate<nsContentUtils::IsHTMLWhitespace>
nsContentUtils::DropJSObjects(NS_CYCLE_COLLECTION_UPCAST(obj, clazz))
class NS_STACK_CLASS nsCxPusher
class MOZ_STACK_CLASS nsCxPusher
{
public:
nsCxPusher();
@ -2302,7 +2302,7 @@ private:
#endif
};
class NS_STACK_CLASS nsAutoScriptBlocker {
class MOZ_STACK_CLASS nsAutoScriptBlocker {
public:
nsAutoScriptBlocker(MOZ_GUARD_OBJECT_NOTIFIER_ONLY_PARAM) {
MOZ_GUARD_OBJECT_NOTIFIER_INIT;
@ -2315,7 +2315,7 @@ private:
MOZ_DECL_USE_GUARD_OBJECT_NOTIFIER
};
class NS_STACK_CLASS nsAutoScriptBlockerSuppressNodeRemoved :
class MOZ_STACK_CLASS nsAutoScriptBlockerSuppressNodeRemoved :
public nsAutoScriptBlocker {
public:
nsAutoScriptBlockerSuppressNodeRemoved() {
@ -2330,7 +2330,7 @@ public:
}
};
class NS_STACK_CLASS nsAutoMicroTask
class MOZ_STACK_CLASS nsAutoMicroTask
{
public:
nsAutoMicroTask()
@ -2350,7 +2350,7 @@ namespace mozilla {
* passed as a parameter. AutoJSContext will take care of finding the most
* appropriate JS context and release it when leaving the stack.
*/
class NS_STACK_CLASS AutoJSContext {
class MOZ_STACK_CLASS AutoJSContext {
public:
AutoJSContext(MOZ_GUARD_OBJECT_NOTIFIER_ONLY_PARAM);
operator JSContext*();
@ -2373,7 +2373,7 @@ private:
* SafeAutoJSContext is similar to AutoJSContext but will only return the safe
* JS context. That means it will never call ::GetCurrentJSContext().
*/
class NS_STACK_CLASS SafeAutoJSContext : public AutoJSContext {
class MOZ_STACK_CLASS SafeAutoJSContext : public AutoJSContext {
public:
SafeAutoJSContext(MOZ_GUARD_OBJECT_NOTIFIER_ONLY_PARAM);
};
@ -2392,7 +2392,7 @@ public:
* NB: This will not push a null cx even if aCx is null. Make sure you know what
* you're doing.
*/
class NS_STACK_CLASS AutoPushJSContext {
class MOZ_STACK_CLASS AutoPushJSContext {
nsCxPusher mPusher;
JSContext* mCx;

View File

@ -490,7 +490,7 @@ private:
nsISupports *mParent;
};
class NS_STACK_CLASS nsDOMFileInternalUrlHolder {
class MOZ_STACK_CLASS nsDOMFileInternalUrlHolder {
public:
nsDOMFileInternalUrlHolder(nsIDOMBlob* aFile, nsIPrincipal* aPrincipal
MOZ_GUARD_OBJECT_NOTIFIER_PARAM);

View File

@ -2430,7 +2430,7 @@ NS_DEFINE_STATIC_IID_ACCESSOR(nsIDocument, NS_IDOCUMENT_IID)
* event is dispatched, if necessary, when the outermost mozAutoSubtreeModified
* object is deleted.
*/
class NS_STACK_CLASS mozAutoSubtreeModified
class MOZ_STACK_CLASS mozAutoSubtreeModified
{
public:
/**
@ -2467,7 +2467,7 @@ private:
nsCOMPtr<nsIDocument> mSubtreeOwner;
};
class NS_STACK_CLASS nsAutoSyncOperation
class MOZ_STACK_CLASS nsAutoSyncOperation
{
public:
nsAutoSyncOperation(nsIDocument* aDocument);

View File

@ -15,7 +15,7 @@ class nsIContent;
* See the documentation of nsIParserUtils::sanitize for documentation
* about the default behavior and the configuration options of this sanitizer.
*/
class NS_STACK_CLASS nsTreeSanitizer {
class MOZ_STACK_CLASS nsTreeSanitizer {
public:

View File

@ -23,7 +23,7 @@ static const int32_t kViewportDefaultScreenWidth = 980;
* Information retrieved from the <meta name="viewport"> tag. See
* nsContentUtils::GetViewportInfo for more information on this functionality.
*/
class NS_STACK_CLASS nsViewportInfo
class MOZ_STACK_CLASS nsViewportInfo
{
public:
nsViewportInfo(uint32_t aDisplayWidth, uint32_t aDisplayHeight) :

View File

@ -16,7 +16,7 @@
* in which case no updates will be called. The constructor also takes a
* boolean that can be set to false to prevent notifications.
*/
class NS_STACK_CLASS mozAutoDocUpdate
class MOZ_STACK_CLASS mozAutoDocUpdate
{
public:
mozAutoDocUpdate(nsIDocument* aDocument, nsUpdateType aUpdateType,
@ -63,7 +63,7 @@ private:
* but then have inner mozAutoDocUpdate call the last EndUpdate before.
* we remove that blocker. See bug 423269.
*/
class NS_STACK_CLASS mozAutoDocConditionalContentUpdateBatch
class MOZ_STACK_CLASS mozAutoDocConditionalContentUpdateBatch
{
public:
mozAutoDocConditionalContentUpdateBatch(nsIDocument* aDocument,

View File

@ -18,7 +18,7 @@
#include "nsString.h"
#include "nsAttrValue.h"
class NS_STACK_CLASS nsAttrValueOrString
class MOZ_STACK_CLASS nsAttrValueOrString
{
public:
nsAttrValueOrString(const nsAString& aValue)

View File

@ -53,7 +53,7 @@
#include "nsDOMDataTransfer.h"
#include "mozilla/dom/Element.h"
class NS_STACK_CLASS DragDataProducer
class MOZ_STACK_CLASS DragDataProducer
{
public:
DragDataProducer(nsPIDOMWindow* aWindow,

View File

@ -434,7 +434,7 @@ protected:
*/
class nsCacheableFuncStringContentList;
class NS_STACK_CLASS nsFuncStringCacheKey {
class MOZ_STACK_CLASS nsFuncStringCacheKey {
public:
nsFuncStringCacheKey(nsINode* aRootNode,
nsContentListMatchFunc aFunc,

View File

@ -742,7 +742,7 @@ AllDescendantsOfType(nsIDocShellTreeItem* aParentItem, int32_t aType)
* A class that automatically sets mInShow to false when it goes
* out of scope.
*/
class NS_STACK_CLASS AutoResetInShow {
class MOZ_STACK_CLASS AutoResetInShow {
private:
nsFrameLoader* mFrameLoader;
MOZ_DECL_USE_GUARD_OBJECT_NOTIFIER

View File

@ -258,7 +258,7 @@ nsNodeUtils::LastRelease(nsINode* aNode)
delete aNode;
}
struct NS_STACK_CLASS nsHandlerData
struct MOZ_STACK_CLASS nsHandlerData
{
uint16_t mOperation;
nsCOMPtr<nsIDOMNode> mSource;

View File

@ -1392,7 +1392,7 @@ nsRange::SelectNodeContents(nsINode& aNode, ErrorResult& aRv)
// start/end points in the future, we can switchover relatively
// easy.
class NS_STACK_CLASS RangeSubtreeIterator
class MOZ_STACK_CLASS RangeSubtreeIterator
{
private:

View File

@ -256,7 +256,7 @@ protected:
*/
nsINode* GetRegisteredCommonAncestor();
struct NS_STACK_CLASS AutoInvalidateSelection
struct MOZ_STACK_CLASS AutoInvalidateSelection
{
AutoInvalidateSelection(nsRange* aRange) : mRange(aRange)
{

View File

@ -2264,7 +2264,7 @@ CanvasRenderingContext2D::MeasureText(const nsAString& rawText,
/**
* Used for nsBidiPresUtils::ProcessText
*/
struct NS_STACK_CLASS CanvasBidiProcessor : public nsBidiPresUtils::BidiProcessor
struct MOZ_STACK_CLASS CanvasBidiProcessor : public nsBidiPresUtils::BidiProcessor
{
typedef CanvasRenderingContext2D::ContextState ContextState;

View File

@ -196,7 +196,7 @@ public:
* before handling the system event group.
* This is used in nsPresShell.
*/
class NS_STACK_CLASS nsDispatchingCallback {
class MOZ_STACK_CLASS nsDispatchingCallback {
public:
virtual void HandleEvent(nsEventChainPostVisitor& aVisitor) = 0;
};

View File

@ -30,7 +30,7 @@ struct nsRect;
* This class answers to NS_QUERY_* events from actual contents.
*/
class NS_STACK_CLASS nsContentEventHandler {
class MOZ_STACK_CLASS nsContentEventHandler {
public:
nsContentEventHandler(nsPresContext *aPresContext);

View File

@ -3853,7 +3853,7 @@ nsEventStateManager::SetCursor(int32_t aCursor, imgIContainer* aContainer,
return NS_OK;
}
class NS_STACK_CLASS nsESMEventCB : public nsDispatchingCallback
class MOZ_STACK_CLASS nsESMEventCB : public nsDispatchingCallback
{
public:
nsESMEventCB(nsIContent* aTarget) : mTarget(aTarget) {}

View File

@ -69,7 +69,7 @@ private:
nsCheapSet<nsUint32HashKey> mIndices;
};
class NS_STACK_CLASS SafeOptionListMutation
class MOZ_STACK_CLASS SafeOptionListMutation
{
public:
/**

View File

@ -35,7 +35,7 @@ namespace mozilla {
*
* MUCH PREFERRED to bare calls to ReentrantMonitor.Exit and Enter.
*/
class NS_STACK_CLASS ReentrantMonitorAutoExit
class MOZ_STACK_CLASS ReentrantMonitorAutoExit
{
public:
/**
@ -77,7 +77,7 @@ private:
* E.g. Used to allow unmonitored read access on the decode thread,
* and monitored access on all other threads.
*/
class NS_STACK_CLASS ReentrantMonitorConditionallyEnter
class MOZ_STACK_CLASS ReentrantMonitorConditionallyEnter
{
public:
ReentrantMonitorConditionallyEnter(bool aEnter,

View File

@ -118,7 +118,7 @@ namespace
// If several of these objects are allocated on the stack, the update will not
// be performed until the last object for a given nsSMILTimedElement is
// destroyed.
class NS_STACK_CLASS nsSMILTimedElement::AutoIntervalUpdateBatcher
class MOZ_STACK_CLASS nsSMILTimedElement::AutoIntervalUpdateBatcher
{
public:
AutoIntervalUpdateBatcher(nsSMILTimedElement& aTimedElement)
@ -442,7 +442,7 @@ nsSMILTimedElement::RemoveInstanceTime(nsSMILInstanceTime* aInstanceTime,
namespace
{
class NS_STACK_CLASS RemoveByCreator
class MOZ_STACK_CLASS RemoveByCreator
{
public:
RemoveByCreator(const nsSMILTimeValueSpec* aCreator) : mCreator(aCreator)
@ -1305,7 +1305,7 @@ namespace
// pointers instead.
// Without this we'd have to either templatize ClearSpecs and all its callers
// or pass bool flags around to specify which removal function to use here.
class NS_STACK_CLASS RemoveByFunction
class MOZ_STACK_CLASS RemoveByFunction
{
public:
RemoveByFunction(nsSMILTimedElement::RemovalTestFunction aFunction)
@ -1383,7 +1383,7 @@ nsSMILTimedElement::ApplyEarlyEnd(const nsSMILTimeValue& aSampleTime)
namespace
{
class NS_STACK_CLASS RemoveReset
class MOZ_STACK_CLASS RemoveReset
{
public:
RemoveReset(const nsSMILInstanceTime* aCurrentIntervalBegin)
@ -1542,7 +1542,7 @@ nsSMILTimedElement::FilterIntervals()
namespace
{
class NS_STACK_CLASS RemoveFiltered
class MOZ_STACK_CLASS RemoveFiltered
{
public:
RemoveFiltered(nsSMILTimeValue aCutoff) : mCutoff(aCutoff) { }
@ -1562,7 +1562,7 @@ namespace
nsSMILTimeValue mCutoff;
};
class NS_STACK_CLASS RemoveBelowThreshold
class MOZ_STACK_CLASS RemoveBelowThreshold
{
public:
RemoveBelowThreshold(uint32_t aThreshold,

View File

@ -290,7 +290,7 @@ private:
* could still overflow. In that case the value returned will be
* numeric_limits<float>::quiet_NaN().
*/
class NS_STACK_CLASS SVGUserUnitList
class MOZ_STACK_CLASS SVGUserUnitList
{
public:

View File

@ -387,7 +387,7 @@ private:
// Helper class to automatically manage temporary changes to an SVG document's
// state for rendering purposes.
class NS_STACK_CLASS AutoSVGRenderingState
class MOZ_STACK_CLASS AutoSVGRenderingState
{
public:
AutoSVGRenderingState(const SVGImageContext* aSVGContext,

View File

@ -1153,7 +1153,7 @@ nsSVGElement::ClassName()
namespace {
class MappedAttrParser {
class MOZ_STACK_CLASS MappedAttrParser {
public:
MappedAttrParser(css::Loader* aLoader,
nsIURI* aDocURI,

View File

@ -1544,7 +1544,7 @@ nsXULTemplateBuilder::ParseAttribute(const nsAString& aAttributeValue,
}
struct NS_STACK_CLASS SubstituteTextClosure {
struct MOZ_STACK_CLASS SubstituteTextClosure {
SubstituteTextClosure(nsIXULTemplateResult* aResult, nsAString& aString)
: result(aResult), str(aString) {}

View File

@ -24,7 +24,7 @@ using namespace js;
namespace {
class AutoContextPusher {
class MOZ_STACK_CLASS AutoContextPusher {
nsCxPusher mStack;
JSAutoRequest mRequest;