Bug 1425440 - Get rid of GetChildAt_Deprecated in txMozillaXMLOutput, r=catalinb

This commit is contained in:
Andrea Marchesini 2018-01-03 16:29:59 +01:00
parent badda32851
commit b3f813ca74

View File

@ -625,15 +625,14 @@ txMozillaXMLOutput::createTxWrapper()
mDocument->CreateElem(nsDependentAtomString(nsGkAtoms::result),
nsGkAtoms::transformiix, namespaceID);
uint32_t i, j, childCount = mDocument->GetChildCount();
uint32_t j = 0;
#ifdef DEBUG
// Keep track of the location of the current documentElement, if there is
// one, so we can verify later
uint32_t rootLocation = 0;
#endif
for (i = 0, j = 0; i < childCount; ++i) {
nsCOMPtr<nsIContent> childContent = mDocument->GetChildAt_Deprecated(j);
for (nsCOMPtr<nsIContent> childContent = mDocument->GetFirstChild();
childContent; childContent = childContent->GetNextSibling()) {
#ifdef DEBUG
if (childContent->IsElement()) {
rootLocation = j;