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

This commit is contained in:
Andrea Marchesini 2018-01-05 14:36:47 +01:00
parent 489e9ad994
commit e771eaea7c

View File

@ -1293,9 +1293,9 @@ void nsPresContext::SetImgAnimations(nsIContent *aParent, uint16_t aMode)
SetImgAnimModeOnImgReq(imgReq, aMode);
}
uint32_t count = aParent->GetChildCount();
for (uint32_t i = 0; i < count; ++i) {
SetImgAnimations(aParent->GetChildAt_Deprecated(i), aMode);
for (nsIContent* childContent = aParent->GetFirstChild();
childContent; childContent = childContent->GetNextSibling()) {
SetImgAnimations(childContent, aMode);
}
}