Bug 1609662: part 14) Document some `ContentIterator*` methods. r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D60255

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Mirko Brodesser 2020-01-21 16:02:07 +00:00
Родитель 37eb82cb25
Коммит 9f2d95176c
1 изменённых файлов: 10 добавлений и 0 удалений

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

@ -31,7 +31,13 @@ class ContentIteratorBase {
NS_DECL_CYCLE_COLLECTION_NATIVE_CLASS(ContentIteratorBase) NS_DECL_CYCLE_COLLECTION_NATIVE_CLASS(ContentIteratorBase)
/**
* Allows to iterate over the inclusive descendants
* (https://dom.spec.whatwg.org/#concept-tree-inclusive-descendant) of
* aRoot.
*/
virtual nsresult Init(nsINode* aRoot); virtual nsresult Init(nsINode* aRoot);
virtual nsresult Init(nsRange* aRange); virtual nsresult Init(nsRange* aRange);
virtual nsresult Init(nsINode* aStartContainer, uint32_t aStartOffset, virtual nsresult Init(nsINode* aStartContainer, uint32_t aStartOffset,
nsINode* aEndContainer, uint32_t aEndOffset); nsINode* aEndContainer, uint32_t aEndOffset);
@ -174,7 +180,11 @@ class ContentSubtreeIterator final : public ContentIteratorBase {
ContentSubtreeIterator& operator=(const ContentSubtreeIterator&) = delete; ContentSubtreeIterator& operator=(const ContentSubtreeIterator&) = delete;
virtual ~ContentSubtreeIterator() = default; virtual ~ContentSubtreeIterator() = default;
/**
* Not supported.
*/
virtual nsresult Init(nsINode* aRoot) override; virtual nsresult Init(nsINode* aRoot) override;
virtual nsresult Init(nsRange* aRange) override; virtual nsresult Init(nsRange* aRange) override;
virtual nsresult Init(nsINode* aStartContainer, uint32_t aStartOffset, virtual nsresult Init(nsINode* aStartContainer, uint32_t aStartOffset,
nsINode* aEndContainer, uint32_t aEndOffset) override; nsINode* aEndContainer, uint32_t aEndOffset) override;