mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 12:50:09 +00:00
Bug 442735 - Annotate classes in dom/content which only appear on the stack, r+sr=jst
This commit is contained in:
parent
bad1189195
commit
884ca0dcae
@ -1379,7 +1379,7 @@ private:
|
||||
nsContentUtils::DropJSObjects(NS_CYCLE_COLLECTION_UPCAST(obj, clazz))
|
||||
|
||||
|
||||
class nsCxPusher
|
||||
class NS_STACK_CLASS nsCxPusher
|
||||
{
|
||||
public:
|
||||
nsCxPusher();
|
||||
|
@ -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:
|
||||
/**
|
||||
|
@ -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,
|
||||
|
@ -119,7 +119,7 @@ NS_INTERFACE_MAP_BEGIN(nsContentAreaDragDrop)
|
||||
NS_INTERFACE_MAP_END
|
||||
|
||||
|
||||
class nsTransferableFactory
|
||||
class NS_STACK_CLASS nsTransferableFactory
|
||||
{
|
||||
public:
|
||||
nsTransferableFactory(nsIDOMEvent* inMouseEvent,
|
||||
|
@ -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
|
||||
|
@ -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:
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
@ -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) {}
|
||||
|
@ -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);
|
||||
|
||||
|
@ -190,7 +190,7 @@ private:
|
||||
nsCheapInt32Set mIndices;
|
||||
};
|
||||
|
||||
class nsSafeOptionListMutation
|
||||
class NS_STACK_CLASS nsSafeOptionListMutation
|
||||
{
|
||||
public:
|
||||
/**
|
||||
|
@ -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);
|
||||
|
@ -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,
|
||||
|
@ -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) {}
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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.
|
||||
|
@ -2356,7 +2356,7 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
struct FixRedirectData
|
||||
struct NS_STACK_CLASS FixRedirectData
|
||||
{
|
||||
nsCOMPtr<nsIChannel> mNewChannel;
|
||||
nsCOMPtr<nsIURI> mOriginalURI;
|
||||
|
@ -268,7 +268,7 @@ void nsWatcherWindowEnumerator::WindowRemoved(nsWatcherWindowEntry *inInfo) {
|
||||
********************** JSContextAutoPopper *********************
|
||||
****************************************************************/
|
||||
|
||||
class JSContextAutoPopper {
|
||||
class NS_STACK_CLASS JSContextAutoPopper {
|
||||
public:
|
||||
JSContextAutoPopper();
|
||||
~JSContextAutoPopper();
|
||||
|
@ -1237,7 +1237,7 @@ public:
|
||||
PresShell* mShell;
|
||||
};
|
||||
|
||||
class nsPresShellEventCB : public nsDispatchingCallback
|
||||
class NS_STACK_CLASS nsPresShellEventCB : public nsDispatchingCallback
|
||||
{
|
||||
public:
|
||||
nsPresShellEventCB(PresShell* aPresShell) : mPresShell(aPresShell) {}
|
||||
|
@ -474,7 +474,7 @@ private:
|
||||
static nsPluginHostImpl* sInst;
|
||||
};
|
||||
|
||||
class PluginDestructionGuard : protected PRCList
|
||||
class NS_STACK_CLASS PluginDestructionGuard : protected PRCList
|
||||
{
|
||||
public:
|
||||
PluginDestructionGuard(nsIPluginInstance *aInstance)
|
||||
|
Loading…
x
Reference in New Issue
Block a user