зеркало из https://github.com/mozilla/gecko-dev.git
Change the transactions to have non-owning pointers to the editor.
This commit is contained in:
Родитель
7e7e1b3a66
Коммит
7e9989b7b9
|
@ -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;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче