mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Bug 442729 - Annotate stack-only classes in layout, r+sr=roc
This commit is contained in:
parent
9a110f955e
commit
556cf36dc9
@ -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)
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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;
|
||||
|
@ -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,
|
||||
|
@ -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;
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -51,7 +51,7 @@
|
||||
class nsSVGLength2;
|
||||
class nsSVGElement;
|
||||
|
||||
class nsSVGFilterInstance
|
||||
class NS_STACK_CLASS nsSVGFilterInstance
|
||||
{
|
||||
public:
|
||||
class ColorModel {
|
||||
|
@ -56,7 +56,7 @@ struct nsHTMLReflowMetrics;
|
||||
class nsString;
|
||||
class nsHTMLReflowCommand;
|
||||
|
||||
class nsBoxLayoutState
|
||||
class NS_STACK_CLASS nsBoxLayoutState
|
||||
{
|
||||
public:
|
||||
nsBoxLayoutState(nsPresContext* aPresContext, nsIRenderingContext* aRenderingContext = nsnull,
|
||||
|
@ -322,7 +322,7 @@ public:
|
||||
*/
|
||||
NS_IMETHOD EnableRefresh(PRUint32 aUpdateFlags) = 0;
|
||||
|
||||
class UpdateViewBatch {
|
||||
class NS_STACK_CLASS UpdateViewBatch {
|
||||
public:
|
||||
UpdateViewBatch() {}
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user