diff --git a/dom/base/NodeIterator.cpp b/dom/base/NodeIterator.cpp index d7bc69e53725..8fca891800ba 100644 --- a/dom/base/NodeIterator.cpp +++ b/dom/base/NodeIterator.cpp @@ -5,7 +5,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ /* - * Implementation of DOM Traversal's nsIDOMNodeIterator + * Implementation of DOM Traversal's NodeIterator */ #include "mozilla/dom/NodeIterator.h" @@ -171,9 +171,8 @@ NS_IMPL_CYCLE_COLLECTION_TRAVERSE_END // QueryInterface implementation for NodeIterator NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(NodeIterator) - NS_INTERFACE_MAP_ENTRY(nsIDOMNodeIterator) NS_INTERFACE_MAP_ENTRY(nsIMutationObserver) - NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsIDOMNodeIterator) + NS_INTERFACE_MAP_ENTRY(nsISupports) NS_INTERFACE_MAP_END NS_IMPL_CYCLE_COLLECTING_ADDREF(NodeIterator) diff --git a/dom/base/NodeIterator.h b/dom/base/NodeIterator.h index 6c61fd7fce17..8a2e3b9cecce 100644 --- a/dom/base/NodeIterator.h +++ b/dom/base/NodeIterator.h @@ -5,13 +5,12 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ /* - * Implementation of DOM Traversal's nsIDOMNodeIterator + * Implementation of DOM Traversal's NodeIterator */ #ifndef mozilla_dom_NodeIterator_h #define mozilla_dom_NodeIterator_h -#include "nsIDOMNodeIterator.h" #include "nsTraversal.h" #include "nsCycleCollectionParticipant.h" #include "nsStubMutationObserver.h" @@ -22,13 +21,11 @@ class nsIDOMNode; namespace mozilla { namespace dom { -class NodeIterator final : public nsIDOMNodeIterator, - public nsTraversal, - public nsStubMutationObserver +class NodeIterator final : public nsStubMutationObserver, + public nsTraversal { public: NS_DECL_CYCLE_COLLECTING_ISUPPORTS - NS_DECL_NSIDOMNODEITERATOR NodeIterator(nsINode *aRoot, uint32_t aWhatToShow, @@ -36,7 +33,7 @@ public: NS_DECL_NSIMUTATIONOBSERVER_CONTENTREMOVED - NS_DECL_CYCLE_COLLECTION_CLASS_AMBIGUOUS(NodeIterator, nsIDOMNodeIterator) + NS_DECL_CYCLE_COLLECTION_CLASS(NodeIterator) // WebIDL API nsINode* Root() const diff --git a/dom/interfaces/traversal/moz.build b/dom/interfaces/traversal/moz.build index a4d4e778f10c..f3099ca2cdd5 100644 --- a/dom/interfaces/traversal/moz.build +++ b/dom/interfaces/traversal/moz.build @@ -9,7 +9,6 @@ with Files("**"): XPIDL_SOURCES += [ 'nsIDOMNodeFilter.idl', - 'nsIDOMNodeIterator.idl', 'nsIDOMTreeWalker.idl', ] diff --git a/dom/interfaces/traversal/nsIDOMNodeIterator.idl b/dom/interfaces/traversal/nsIDOMNodeIterator.idl deleted file mode 100644 index 22375aac3684..000000000000 --- a/dom/interfaces/traversal/nsIDOMNodeIterator.idl +++ /dev/null @@ -1,15 +0,0 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- - * - * 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/. */ - -#include "domstubs.idl" - -interface nsIDOMNodeFilter; - -[uuid(a86bdac9-ff89-4c94-8160-4fe86733bab8)] -// Introduced in DOM Level 2, updated to DOM Level 4: -interface nsIDOMNodeIterator : nsISupports -{ -}; diff --git a/xpcom/reflect/xptinfo/ShimInterfaceInfo.cpp b/xpcom/reflect/xptinfo/ShimInterfaceInfo.cpp index 1bd136764821..271b08001866 100644 --- a/xpcom/reflect/xptinfo/ShimInterfaceInfo.cpp +++ b/xpcom/reflect/xptinfo/ShimInterfaceInfo.cpp @@ -46,7 +46,6 @@ #include "nsIDOMMouseScrollEvent.h" #include "nsIDOMMutationEvent.h" #include "nsIDOMNode.h" -#include "nsIDOMNodeIterator.h" #include "nsIDOMNodeList.h" #include "nsIDOMNotifyPaintEvent.h" #include "nsIDOMNSEvent.h" @@ -136,7 +135,6 @@ #include "mozilla/dom/MouseEventBinding.h" #include "mozilla/dom/MouseScrollEventBinding.h" #include "mozilla/dom/MutationEventBinding.h" -#include "mozilla/dom/NodeIteratorBinding.h" #include "mozilla/dom/NodeListBinding.h" #include "mozilla/dom/NodeBinding.h" #include "mozilla/dom/NotifyPaintEventBinding.h" @@ -272,7 +270,6 @@ const ComponentsInterfaceShimEntry kComponentsInterfaceShimMap[] = DEFINE_SHIM(MouseEvent), DEFINE_SHIM(MouseScrollEvent), DEFINE_SHIM(MutationEvent), - DEFINE_SHIM(NodeIterator), DEFINE_SHIM(NodeList), DEFINE_SHIM(Node), DEFINE_SHIM(NotifyPaintEvent),