Bug 442729 - Annotate stack-only classes in layout, r+sr=roc

This commit is contained in:
Benjamin Smedberg 2008-07-01 15:16:45 -04:00
parent 9a110f955e
commit 556cf36dc9
12 changed files with 16 additions and 16 deletions

View File

@ -1127,7 +1127,7 @@ private:
// Structure used for maintaining state information during the
// frame construction process
class nsFrameConstructorState {
class NS_STACK_CLASS nsFrameConstructorState {
public:
nsPresContext *mPresContext;
nsIPresShell *mPresShell;
@ -1731,7 +1731,7 @@ MoveChildrenTo(nsFrameManager* aFrameManager,
// Structure used to ensure that bindings are properly enqueued in the
// binding manager's attached queue.
struct nsAutoEnqueueBinding
struct NS_STACK_CLASS nsAutoEnqueueBinding
{
nsAutoEnqueueBinding(nsIDocument* aDocument) :
mDocument(aDocument)

View File

@ -52,7 +52,7 @@
* node APIs, since it handles XBL-generated anonymous content as
* well.
*/
class ChildIterator
class NS_STACK_CLASS ChildIterator
{
protected:
nsCOMPtr<nsIContent> mContent;

View File

@ -117,7 +117,7 @@ class nsDisplayTableItem;
* available from the prescontext/presshell, but we copy them into the builder
* for faster/more convenient access.
*/
class nsDisplayListBuilder {
class NS_STACK_CLASS nsDisplayListBuilder {
public:
/**
* @param aReferenceFrame the frame at the root of the subtree; its origin

View File

@ -204,7 +204,7 @@ NS_NewCaret(nsICaret** aInstancePtrResult);
// handy stack-based class for temporarily disabling the caret
class StCaretHider
class NS_STACK_CLASS StCaretHider
{
public:
StCaretHider(nsICaret* aSelCon)

View File

@ -2335,7 +2335,7 @@ NS_IMETHODIMP nsFrame::HandleRelease(nsPresContext* aPresContext,
parentContent, aEvent, aEventStatus);
}
struct FrameContentRange {
struct NS_STACK_CLASS FrameContentRange {
FrameContentRange(nsIContent* aContent, PRInt32 aStart, PRInt32 aEnd) :
content(aContent), start(aStart), end(aEnd) { }
nsCOMPtr<nsIContent> content;

View File

@ -77,7 +77,7 @@ enum EWordMovementType { eStartWord, eEndWord, eDefaultBehavior };
* that are passed to nsFrame::PeekOffset(). See below for the description of
* individual arguments.
*/
struct nsPeekOffsetStruct
struct NS_STACK_CLASS nsPeekOffsetStruct
{
void SetData(nsSelectionAmount aAmount,
nsDirection aDirection,

View File

@ -945,7 +945,7 @@ public:
// Note that the primary offset can be after the secondary offset; for places
// that need the beginning and end of the object, the StartOffset and
// EndOffset helpers can be used.
struct ContentOffsets {
struct NS_STACK_CLASS ContentOffsets {
nsCOMPtr<nsIContent> content;
PRBool IsNull() { return !content; }
PRInt32 offset;
@ -978,7 +978,7 @@ public:
* loaded image that should be preferred. If it is not possible to use it, or
* if it is null, mCursor should be used.
*/
struct Cursor {
struct NS_STACK_CLASS Cursor {
nsCOMPtr<imgIContainer> mContainer;
PRInt32 mCursor;
PRBool mHaveHotspot;

View File

@ -381,7 +381,7 @@ private:
};
// Stack-class to turn on/off selection batching for table selection
class nsSelectionBatcher
class NS_STACK_CLASS NS_FINAL_CLASS nsSelectionBatcher
{
private:
nsCOMPtr<nsISelectionPrivate> mSelection;
@ -390,7 +390,7 @@ public:
{
if (mSelection) mSelection->StartBatchChanges();
}
virtual ~nsSelectionBatcher()
~nsSelectionBatcher()
{
if (mSelection) mSelection->EndBatchChanges();
}

View File

@ -1977,7 +1977,7 @@ static PRBool IsInBounds(const gfxSkipCharsIterator& aStart, PRInt32 aContentLen
}
#endif
class PropertyProvider : public gfxTextRun::PropertyProvider {
class NS_STACK_CLASS PropertyProvider : public gfxTextRun::PropertyProvider {
public:
/**
* Use this constructor for reflow, when we don't know what text is
@ -4710,7 +4710,7 @@ nsTextFrame::PeekOffsetNoAmount(PRBool aForward, PRInt32* aOffset)
* is interpreted according to aDirection, so if aDirection is -1, "before"
* means actually *after* the cluster content.)
*/
class ClusterIterator {
class NS_STACK_CLASS ClusterIterator {
public:
ClusterIterator(nsTextFrame* aTextFrame, PRInt32 aPosition, PRInt32 aDirection,
nsString& aContext);

View File

@ -51,7 +51,7 @@
class nsSVGLength2;
class nsSVGElement;
class nsSVGFilterInstance
class NS_STACK_CLASS nsSVGFilterInstance
{
public:
class ColorModel {

View File

@ -56,7 +56,7 @@ struct nsHTMLReflowMetrics;
class nsString;
class nsHTMLReflowCommand;
class nsBoxLayoutState
class NS_STACK_CLASS nsBoxLayoutState
{
public:
nsBoxLayoutState(nsPresContext* aPresContext, nsIRenderingContext* aRenderingContext = nsnull,

View File

@ -322,7 +322,7 @@ public:
*/
NS_IMETHOD EnableRefresh(PRUint32 aUpdateFlags) = 0;
class UpdateViewBatch {
class NS_STACK_CLASS UpdateViewBatch {
public:
UpdateViewBatch() {}
/**