зеркало из https://github.com/mozilla/gecko-dev.git
Bug 771983 - Re-add non-debug null check to nsEditor::GetNodeLocation; r=ehsan
This commit is contained in:
Родитель
6ef3102fab
Коммит
6e530b797a
|
@ -3111,6 +3111,7 @@ already_AddRefed<nsIDOMNode>
|
|||
nsEditor::GetNodeLocation(nsIDOMNode* aChild, PRInt32* outOffset)
|
||||
{
|
||||
MOZ_ASSERT(aChild && outOffset);
|
||||
NS_ENSURE_TRUE(aChild && outOffset, nsnull);
|
||||
*outOffset = -1;
|
||||
|
||||
nsCOMPtr<nsIDOMNode> parent;
|
||||
|
|
Загрузка…
Ссылка в новой задаче