Bug 442735 - Annotate classes in dom/content which only appear on the stack, r+sr=jst

This commit is contained in:
Benjamin Smedberg 2008-06-30 21:03:50 -04:00
parent bad1189195
commit 884ca0dcae
20 changed files with 24 additions and 23 deletions

View File

@ -1379,7 +1379,7 @@ private:
nsContentUtils::DropJSObjects(NS_CYCLE_COLLECTION_UPCAST(obj, clazz))
class nsCxPusher
class NS_STACK_CLASS nsCxPusher
{
public:
nsCxPusher();

View File

@ -1102,7 +1102,7 @@ NS_DEFINE_STATIC_IID_ACCESSOR(nsIDocument, NS_IDOCUMENT_IID)
* event is dispatched, if necessary, when the outermost mozAutoSubtreeModified
* object is deleted.
*/
class mozAutoSubtreeModified
class NS_STACK_CLASS mozAutoSubtreeModified
{
public:
/**

View File

@ -41,7 +41,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 mozAutoDocUpdate
class NS_STACK_CLASS mozAutoDocUpdate
{
public:
mozAutoDocUpdate(nsIDocument* aDocument, nsUpdateType aUpdateType,
@ -94,7 +94,7 @@ private:
* but then have inner mozAutoDocUpdate call the last EndUpdate before.
* we remove that blocker. See bug 423269.
*/
class mozAutoDocConditionalContentUpdateBatch
class NS_STACK_CLASS mozAutoDocConditionalContentUpdateBatch
{
public:
mozAutoDocConditionalContentUpdateBatch(nsIDocument* aDocument,

View File

@ -119,7 +119,7 @@ NS_INTERFACE_MAP_BEGIN(nsContentAreaDragDrop)
NS_INTERFACE_MAP_END
class nsTransferableFactory
class NS_STACK_CLASS nsTransferableFactory
{
public:
nsTransferableFactory(nsIDOMEvent* inMouseEvent,

View File

@ -323,10 +323,11 @@ nsNodeUtils::GetUserData(nsINode *aNode, const nsAString &aKey,
return NS_OK;
}
struct nsHandlerData
struct NS_STACK_CLASS nsHandlerData
{
PRUint16 mOperation;
nsCOMPtr<nsIDOMNode> mSource, mDest;
nsCOMPtr<nsIDOMNode> mSource;
nsCOMPtr<nsIDOMNode> mDest;
};
static void

View File

@ -789,7 +789,7 @@ nsresult nsRange::SelectNodeContents(nsIDOMNode* aN)
// start/end points in the future, we can switchover relatively
// easy.
class RangeSubtreeIterator
class NS_STACK_CLASS RangeSubtreeIterator
{
private:

View File

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

View File

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

View File

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

View File

@ -190,7 +190,7 @@ private:
nsCheapInt32Set mIndices;
};
class nsSafeOptionListMutation
class NS_STACK_CLASS nsSafeOptionListMutation
{
public:
/**

View File

@ -79,7 +79,7 @@
* filters. PLEASE NOTE that nsSVGFilterResource should ONLY be used on the
* stack because it has nsAutoString member.
*/
class nsSVGFilterResource
class NS_STACK_CLASS nsSVGFilterResource
{
public:
nsSVGFilterResource(nsSVGFE *aFilter, nsSVGFilterInstance* aInstance);

View File

@ -87,7 +87,7 @@ private:
// Class that will automatically call WillModify and DidModify in its ctor
// and dtor respectively (for functions that have multiple exit points).
class nsSVGValueAutoNotifier
class NS_STACK_CLASS nsSVGValueAutoNotifier
{
public:
nsSVGValueAutoNotifier(nsSVGValue* aVal,

View File

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

View File

@ -8440,7 +8440,7 @@ nsDocShell::WalkHistoryEntries(nsISHEntry *aRootEntry,
}
// callback data for WalkHistoryEntries
struct CloneAndReplaceData
struct NS_STACK_CLASS CloneAndReplaceData
{
CloneAndReplaceData(PRUint32 aCloneID, nsISHEntry *aReplaceEntry,
nsISHEntry *aDestTreeParent)

View File

@ -90,7 +90,7 @@ public:
NS_DEFINE_STATIC_IID_ACCESSOR(nsIFocusController, NS_IFOCUSCONTROLLER_IID)
class nsFocusSuppressor {
class NS_STACK_CLASS nsFocusSuppressor {
public:
~nsFocusSuppressor()
{
@ -128,7 +128,7 @@ private:
const char *mReason;
};
class nsFocusScrollSuppressor
class NS_STACK_CLASS nsFocusScrollSuppressor
{
public:
nsFocusScrollSuppressor(nsIFocusController* aController = nsnull)

View File

@ -46,7 +46,7 @@
// functions and a fully inline implementation should keep the cost down.
// [Note that a fully inline implementation is necessary for use by other
// languages, which do not link against the layout component module]
class nsScriptObjectHolder {
class NS_STACK_CLASS nsScriptObjectHolder {
public:
// A constructor that will cause a reference to |ctx| to be stored in
// the object. Only use for short-lived object holders.

View File

@ -2356,7 +2356,7 @@ public:
}
};
struct FixRedirectData
struct NS_STACK_CLASS FixRedirectData
{
nsCOMPtr<nsIChannel> mNewChannel;
nsCOMPtr<nsIURI> mOriginalURI;

View File

@ -268,7 +268,7 @@ void nsWatcherWindowEnumerator::WindowRemoved(nsWatcherWindowEntry *inInfo) {
********************** JSContextAutoPopper *********************
****************************************************************/
class JSContextAutoPopper {
class NS_STACK_CLASS JSContextAutoPopper {
public:
JSContextAutoPopper();
~JSContextAutoPopper();

View File

@ -1237,7 +1237,7 @@ public:
PresShell* mShell;
};
class nsPresShellEventCB : public nsDispatchingCallback
class NS_STACK_CLASS nsPresShellEventCB : public nsDispatchingCallback
{
public:
nsPresShellEventCB(PresShell* aPresShell) : mPresShell(aPresShell) {}

View File

@ -474,7 +474,7 @@ private:
static nsPluginHostImpl* sInst;
};
class PluginDestructionGuard : protected PRCList
class NS_STACK_CLASS PluginDestructionGuard : protected PRCList
{
public:
PluginDestructionGuard(nsIPluginInstance *aInstance)