mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-16 06:54:00 +00:00
Bug 771983 - Re-add non-debug null check to nsEditor::GetNodeLocation; r=ehsan
This commit is contained in:
parent
6ef3102fab
commit
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user