Bug 1650245 Part 1 - Move begin() and end() into private section in CSSOrderAwareFrameIterator. r=dholbert

Both methods are implementation details specific to this iterator, not
public interfaces that can be cooperated with C++ standard library, so
move them into private section.

Differential Revision: https://phabricator.services.mozilla.com/D82117
This commit is contained in:
Ting-Yu Lin 2020-07-03 16:55:04 +00:00
Родитель b69a25acce
Коммит b88227c0a6
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -125,8 +125,6 @@ class CSSOrderAwareFrameIteratorT {
}
bool IsForward() const;
Iterator begin(const nsFrameList& aList);
Iterator end(const nsFrameList& aList);
nsIFrame* operator*() const {
MOZ_ASSERT(!AtEnd());
@ -241,6 +239,9 @@ class CSSOrderAwareFrameIteratorT {
nsIFrame* const& b);
private:
Iterator begin(const nsFrameList& aList);
Iterator end(const nsFrameList& aList);
nsFrameList mChildren;
// Used if child list is already in ascending 'order'.
Maybe<Iterator> mIter;