Files
sousa-gecko/dom/base/ScriptableContentIterator.h
Keith Cirkel d9bdf49a45 Bug 2044293 - Use _FINAL macros & clean up virtual methods for Final classes in dom/base, dom/html, r=dom-core,places-reviewers,smaug
This cleans up pointless `virtual ` prefixes on methods in a `final`
class, and uses the correct `_FINAL` macros for them

Differential Revision: https://phabricator.services.mozilla.com/D304030
2026-06-03 01:01:53 +00:00

33 lines
966 B
C++

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef mozilla_scriptablecontentiterator_h
#define mozilla_scriptablecontentiterator_h
#include "mozilla/ContentIterator.h"
#include "mozilla/UniquePtr.h"
#include "nsCOMPtr.h"
#include "nsIScriptableContentIterator.h"
namespace mozilla {
class ScriptableContentIterator final : public nsIScriptableContentIterator {
public:
ScriptableContentIterator();
NS_DECL_CYCLE_COLLECTING_ISUPPORTS_FINAL
NS_DECL_CYCLE_COLLECTION_CLASS(ScriptableContentIterator)
NS_DECL_NSISCRIPTABLECONTENTITERATOR
protected:
~ScriptableContentIterator() = default;
void EnsureContentIterator();
IteratorType mIteratorType;
UniquePtr<SafeContentIteratorBase> mContentIterator;
};
} // namespace mozilla
#endif // #ifndef mozilla_scriptablecontentiterator_h