зеркало из https://github.com/mozilla/gecko-dev.git
fixed some broken asserts
This commit is contained in:
Родитель
dd6a0df6c3
Коммит
332345e744
|
@ -48,8 +48,8 @@ NS_IMETHODIMP DeleteTextTxn::Init(nsIEditor *aEditor,
|
|||
NS_ASSERTION(0!=aNumCharsToDelete, "bad arg, numCharsToDelete");
|
||||
PRUint32 count;
|
||||
aElement->GetLength(&count);
|
||||
NS_ASSERTION(count<aNumCharsToDelete, "bad arg, numCharsToDelete. Not enough characters in node");
|
||||
NS_ASSERTION(count<aOffset+aNumCharsToDelete, "bad arg, numCharsToDelete. Not enough characters in node");
|
||||
NS_ASSERTION(count>=aNumCharsToDelete, "bad arg, numCharsToDelete. Not enough characters in node");
|
||||
NS_ASSERTION(count>=aOffset+aNumCharsToDelete, "bad arg, numCharsToDelete. Not enough characters in node");
|
||||
mDeletedText = "";
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
|
@ -48,8 +48,8 @@ NS_IMETHODIMP DeleteTextTxn::Init(nsIEditor *aEditor,
|
|||
NS_ASSERTION(0!=aNumCharsToDelete, "bad arg, numCharsToDelete");
|
||||
PRUint32 count;
|
||||
aElement->GetLength(&count);
|
||||
NS_ASSERTION(count<aNumCharsToDelete, "bad arg, numCharsToDelete. Not enough characters in node");
|
||||
NS_ASSERTION(count<aOffset+aNumCharsToDelete, "bad arg, numCharsToDelete. Not enough characters in node");
|
||||
NS_ASSERTION(count>=aNumCharsToDelete, "bad arg, numCharsToDelete. Not enough characters in node");
|
||||
NS_ASSERTION(count>=aOffset+aNumCharsToDelete, "bad arg, numCharsToDelete. Not enough characters in node");
|
||||
mDeletedText = "";
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче