зеркало из https://github.com/mozilla/gecko-dev.git
code cleanup, r=timeless, sr=kin, bug 209548
This commit is contained in:
Родитель
47c5c6c0c9
Коммит
3bad714491
|
@ -95,9 +95,9 @@ NS_IMETHODIMP InsertElementTxn::DoTransaction(void)
|
|||
if (!mNode || !mParent) return NS_ERROR_NOT_INITIALIZED;
|
||||
|
||||
nsCOMPtr<nsIDOMNodeList> childNodes;
|
||||
nsCOMPtr<nsIDOMNode>refNode;
|
||||
nsresult result = mParent->GetChildNodes(getter_AddRefs(childNodes));
|
||||
if (NS_FAILED(result)) return result;
|
||||
nsCOMPtr<nsIDOMNode>refNode;
|
||||
if (childNodes)
|
||||
{
|
||||
PRUint32 count;
|
||||
|
@ -146,14 +146,13 @@ NS_IMETHODIMP InsertElementTxn::UndoTransaction(void)
|
|||
if (!mNode || !mParent) return NS_ERROR_NOT_INITIALIZED;
|
||||
|
||||
nsCOMPtr<nsIDOMNode> resultNode;
|
||||
nsresult result = mParent->RemoveChild(mNode, getter_AddRefs(resultNode));
|
||||
return result;
|
||||
return mParent->RemoveChild(mNode, getter_AddRefs(resultNode));
|
||||
}
|
||||
|
||||
NS_IMETHODIMP InsertElementTxn::Merge(nsITransaction *aTransaction, PRBool *aDidMerge)
|
||||
{
|
||||
if (nsnull!=aDidMerge)
|
||||
*aDidMerge=PR_FALSE;
|
||||
if (aDidMerge)
|
||||
*aDidMerge = PR_FALSE;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче