mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
e087548e06
commit
bc42d0d0df
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user