diff --git a/content/base/src/nsTreeWalker.cpp b/content/base/src/nsTreeWalker.cpp index 4413e8a4e41..7991a312b7c 100644 --- a/content/base/src/nsTreeWalker.cpp +++ b/content/base/src/nsTreeWalker.cpp @@ -638,7 +638,7 @@ nsresult nsTreeWalker::IndexOf(nsIDOMNode* aParent, if (possibleIndex >= 0) { nsCOMPtr tmp; - contParent->ChildAt(possibleIndex, *getter_AddRefs(tmp)); + docParent->ChildAt(possibleIndex, *getter_AddRefs(tmp)); if (tmp == child) { *_childNum = possibleIndex; return NS_OK;