Change the transactions to have non-owning pointers to the editor.
git-svn-id: svn://10.0.0.236/trunk@33043 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
a6a9b7ff1b
commit
64b0f22ee5
@ -37,7 +37,7 @@ NS_IMETHODIMP JoinElementTxn::Init(nsIEditor *aEditor,
|
||||
nsIDOMNode *aLeftNode,
|
||||
nsIDOMNode *aRightNode)
|
||||
{
|
||||
mEditor = do_QueryInterface(aEditor);
|
||||
mEditor = aEditor;
|
||||
mLeftNode = do_QueryInterface(aLeftNode);
|
||||
mRightNode = do_QueryInterface(aRightNode);
|
||||
mOffset=0;
|
||||
|
||||
@ -87,7 +87,7 @@ protected:
|
||||
|
||||
/** the parent node containing mLeftNode and mRightNode */
|
||||
nsCOMPtr<nsIDOMNode> mParent;
|
||||
nsCOMPtr<nsIEditor> mEditor;
|
||||
nsIEditor* mEditor;
|
||||
|
||||
friend class TransactionFactory;
|
||||
|
||||
|
||||
@ -39,7 +39,7 @@ NS_IMETHODIMP SplitElementTxn::Init(nsIEditor *aEditor,
|
||||
nsIDOMNode *aNode,
|
||||
PRInt32 aOffset)
|
||||
{
|
||||
mEditor = do_QueryInterface(aEditor);
|
||||
mEditor = aEditor;
|
||||
mExistingRightNode = do_QueryInterface(aNode);
|
||||
mOffset = aOffset;
|
||||
return NS_OK;
|
||||
|
||||
@ -85,7 +85,7 @@ protected:
|
||||
|
||||
/** the parent shared by mExistingRightNode and mNewLeftNode */
|
||||
nsCOMPtr<nsIDOMNode> mParent;
|
||||
nsCOMPtr<nsIEditor> mEditor;
|
||||
nsIEditor* mEditor;
|
||||
|
||||
friend class TransactionFactory;
|
||||
|
||||
|
||||
@ -37,7 +37,7 @@ NS_IMETHODIMP JoinElementTxn::Init(nsIEditor *aEditor,
|
||||
nsIDOMNode *aLeftNode,
|
||||
nsIDOMNode *aRightNode)
|
||||
{
|
||||
mEditor = do_QueryInterface(aEditor);
|
||||
mEditor = aEditor;
|
||||
mLeftNode = do_QueryInterface(aLeftNode);
|
||||
mRightNode = do_QueryInterface(aRightNode);
|
||||
mOffset=0;
|
||||
|
||||
@ -87,7 +87,7 @@ protected:
|
||||
|
||||
/** the parent node containing mLeftNode and mRightNode */
|
||||
nsCOMPtr<nsIDOMNode> mParent;
|
||||
nsCOMPtr<nsIEditor> mEditor;
|
||||
nsIEditor* mEditor;
|
||||
|
||||
friend class TransactionFactory;
|
||||
|
||||
|
||||
@ -39,7 +39,7 @@ NS_IMETHODIMP SplitElementTxn::Init(nsIEditor *aEditor,
|
||||
nsIDOMNode *aNode,
|
||||
PRInt32 aOffset)
|
||||
{
|
||||
mEditor = do_QueryInterface(aEditor);
|
||||
mEditor = aEditor;
|
||||
mExistingRightNode = do_QueryInterface(aNode);
|
||||
mOffset = aOffset;
|
||||
return NS_OK;
|
||||
|
||||
@ -85,7 +85,7 @@ protected:
|
||||
|
||||
/** the parent shared by mExistingRightNode and mNewLeftNode */
|
||||
nsCOMPtr<nsIDOMNode> mParent;
|
||||
nsCOMPtr<nsIEditor> mEditor;
|
||||
nsIEditor* mEditor;
|
||||
|
||||
friend class TransactionFactory;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user