зеркало из https://github.com/mozilla/gecko-dev.git
Bug 442756 - Add stack annotations to editor classes, r=glazou sr=jst
This commit is contained in:
Родитель
4dc6d586f8
Коммит
8503b6428b
|
@ -56,7 +56,7 @@ class nsPlaintextEditor;
|
|||
* stack based helper class for batching a collection of txns inside a
|
||||
* placeholder txn.
|
||||
*/
|
||||
class nsAutoPlaceHolderBatch
|
||||
class NS_STACK_CLASS nsAutoPlaceHolderBatch
|
||||
{
|
||||
private:
|
||||
nsCOMPtr<nsIEditor> mEd;
|
||||
|
@ -82,7 +82,7 @@ class nsAutoEditBatch : public nsAutoPlaceHolderBatch
|
|||
* stack based helper class for saving/restoring selection. Note that this
|
||||
* assumes that the nodes involved are still around afterwards!
|
||||
*/
|
||||
class nsAutoSelectionReset
|
||||
class NS_STACK_CLASS nsAutoSelectionReset
|
||||
{
|
||||
private:
|
||||
/** ref-counted reference to the selection that we are supposed to restore */
|
||||
|
@ -103,7 +103,7 @@ class nsAutoSelectionReset
|
|||
/***************************************************************************
|
||||
* stack based helper class for StartOperation()/EndOperation() sandwich
|
||||
*/
|
||||
class nsAutoRules
|
||||
class NS_STACK_CLASS nsAutoRules
|
||||
{
|
||||
public:
|
||||
|
||||
|
@ -134,7 +134,7 @@ class nsAutoRules
|
|||
* stack based helper class for turning off active selection adjustment
|
||||
* by low level transactions
|
||||
*/
|
||||
class nsAutoTxnsConserveSelection
|
||||
class NS_STACK_CLASS nsAutoTxnsConserveSelection
|
||||
{
|
||||
public:
|
||||
|
||||
|
@ -163,7 +163,7 @@ class nsAutoTxnsConserveSelection
|
|||
/***************************************************************************
|
||||
* stack based helper class for batching reflow and paint requests.
|
||||
*/
|
||||
class nsAutoUpdateViewBatch
|
||||
class NS_STACK_CLASS nsAutoUpdateViewBatch
|
||||
{
|
||||
public:
|
||||
|
||||
|
@ -201,7 +201,7 @@ class nsBoolDomIterFunctor
|
|||
virtual PRBool operator()(nsIDOMNode* aNode)=0;
|
||||
};
|
||||
|
||||
class nsDOMIterator
|
||||
class NS_STACK_CLASS nsDOMIterator
|
||||
{
|
||||
public:
|
||||
nsDOMIterator();
|
||||
|
@ -239,7 +239,7 @@ class nsTrivialFunctor : public nsBoolDomIterFunctor
|
|||
/******************************************************************************
|
||||
* general dom point utility struct
|
||||
*****************************************************************************/
|
||||
struct DOMPoint
|
||||
struct NS_STACK_CLASS DOMPoint
|
||||
{
|
||||
nsCOMPtr<nsIDOMNode> node;
|
||||
PRInt32 offset;
|
||||
|
|
|
@ -135,7 +135,7 @@ class nsRangeUpdater
|
|||
* preservation of dom points across editor actions
|
||||
*/
|
||||
|
||||
class nsAutoTrackDOMPoint
|
||||
class NS_STACK_CLASS nsAutoTrackDOMPoint
|
||||
{
|
||||
private:
|
||||
nsRangeUpdater &mRU;
|
||||
|
@ -170,7 +170,7 @@ class nsAutoTrackDOMPoint
|
|||
* Will/DidReplaceContainer()
|
||||
*/
|
||||
|
||||
class nsAutoReplaceContainerSelNotify
|
||||
class NS_STACK_CLASS nsAutoReplaceContainerSelNotify
|
||||
{
|
||||
private:
|
||||
nsRangeUpdater &mRU;
|
||||
|
@ -198,7 +198,7 @@ class nsAutoReplaceContainerSelNotify
|
|||
* Will/DidRemoveContainer()
|
||||
*/
|
||||
|
||||
class nsAutoRemoveContainerSelNotify
|
||||
class NS_STACK_CLASS nsAutoRemoveContainerSelNotify
|
||||
{
|
||||
private:
|
||||
nsRangeUpdater &mRU;
|
||||
|
@ -233,7 +233,7 @@ class nsAutoRemoveContainerSelNotify
|
|||
* Will/DidInsertContainer()
|
||||
*/
|
||||
|
||||
class nsAutoInsertContainerSelNotify
|
||||
class NS_STACK_CLASS nsAutoInsertContainerSelNotify
|
||||
{
|
||||
private:
|
||||
nsRangeUpdater &mRU;
|
||||
|
@ -257,7 +257,7 @@ class nsAutoInsertContainerSelNotify
|
|||
* Will/DidMoveNode()
|
||||
*/
|
||||
|
||||
class nsAutoMoveNodeSelNotify
|
||||
class NS_STACK_CLASS nsAutoMoveNodeSelNotify
|
||||
{
|
||||
private:
|
||||
nsRangeUpdater &mRU;
|
||||
|
|
|
@ -69,7 +69,7 @@
|
|||
/***************************************************************************
|
||||
* stack based helper class for restoring selection after table edit
|
||||
*/
|
||||
class nsSetSelectionAfterTableEdit
|
||||
class NS_STACK_CLASS nsSetSelectionAfterTableEdit
|
||||
{
|
||||
private:
|
||||
nsCOMPtr<nsITableEditor> mEd;
|
||||
|
@ -99,7 +99,7 @@ class nsSetSelectionAfterTableEdit
|
|||
};
|
||||
|
||||
// Stack-class to turn on/off selection batching for table selection
|
||||
class nsSelectionBatcher
|
||||
class NS_STACK_CLASS nsSelectionBatcher
|
||||
{
|
||||
private:
|
||||
nsCOMPtr<nsISelectionPrivate> mSelection;
|
||||
|
|
|
@ -67,7 +67,7 @@ class nsHTMLEditor;
|
|||
// will only render as one space (in non-preformatted stlye html), yet both
|
||||
// spaces count as NormalWS. Together, they render as the one visible space.
|
||||
|
||||
class nsWSRunObject
|
||||
class NS_STACK_CLASS nsWSRunObject
|
||||
{
|
||||
public:
|
||||
|
||||
|
@ -226,7 +226,7 @@ class nsWSRunObject
|
|||
// always within a textnode that is one of the nodes stored in the list
|
||||
// in the wsRunObject. For convenience, the character at that point is also
|
||||
// stored in the struct.
|
||||
struct WSPoint
|
||||
struct NS_STACK_CLASS WSPoint
|
||||
{
|
||||
nsCOMPtr<nsIContent> mTextNode;
|
||||
PRInt16 mOffset;
|
||||
|
|
Загрузка…
Ссылка в новой задаче