I've landed bug 1143513 <https://bugzilla.mozilla.org/show_bug.cgi?id=1143513> which enables using range-based for loop on nsFrameList. Now, when you want to iterate nsFrameList, you no longer need nsFrameList::Enumerator. Just write:
for (nsIFrame* frame : mFrames) { } Also, with the reverse iterator landed (bug 1127044 <https://bugzilla.mozilla.org/show_bug.cgi?id=1127044>) before, if you need to reversely iterate the frame list, the Reversed function is also usable here: for (nsIFrame* frame : Reversed(mFrames)) { } - Xidorn _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform