mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 21:05:36 +00:00
Bug 1425440 - Get rid of GetChildAt_Deprecated in nsPresContext, r=catalinb
This commit is contained in:
parent
489e9ad994
commit
e771eaea7c
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user