Bug 853567 - Fix nsTArray::SetCapacity callers in nsContentIterator to not look at the return value; r=bzbarsky

--HG--
extra : rebase_source : ec485d86b13bfea3f27e51a793cdbb6937f83aee
This commit is contained in:
Ehsan Akhgari 2013-03-21 14:52:48 -04:00
parent e087548e06
commit bc42d0d0df

View File

@ -992,9 +992,7 @@ nsContentIterator::PositionAt(nsINode* aCurNode)
// fair bit. It's better to use Clone() if possible.
// we know the depth we're down (though we may not have started at the top).
if (!oldParentStack.SetCapacity(mIndexes.Length() + 1)) {
return NS_ERROR_FAILURE;
}
oldParentStack.SetCapacity(mIndexes.Length() + 1);
// We want to loop mIndexes.Length() + 1 times here, because we want to make
// sure we include mCommonParent in the oldParentStack, for use in the next