mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
fixing problem with undo of join txn
This commit is contained in:
parent
6035561262
commit
f32cb5f466
@ -140,7 +140,7 @@ NS_IMETHODIMP JoinElementTxn::Undo(void)
|
||||
if (NS_FAILED(result)) {return result;}
|
||||
if (!child) {return NS_ERROR_NULL_POINTER;}
|
||||
child->GetNextSibling(getter_AddRefs(nextSibling));
|
||||
result = mRightNode->RemoveChild(child, getter_AddRefs(resultNode));
|
||||
result = mLeftNode->AppendChild(child, getter_AddRefs(resultNode));
|
||||
child = do_QueryInterface(nextSibling);
|
||||
}
|
||||
}
|
||||
|
@ -140,7 +140,7 @@ NS_IMETHODIMP JoinElementTxn::Undo(void)
|
||||
if (NS_FAILED(result)) {return result;}
|
||||
if (!child) {return NS_ERROR_NULL_POINTER;}
|
||||
child->GetNextSibling(getter_AddRefs(nextSibling));
|
||||
result = mRightNode->RemoveChild(child, getter_AddRefs(resultNode));
|
||||
result = mLeftNode->AppendChild(child, getter_AddRefs(resultNode));
|
||||
child = do_QueryInterface(nextSibling);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user