Bug 1447389 - Remove nsIDOMNodeList. r=bz

MozReview-Commit-ID: 11szZP6dS6V

--HG--
extra : rebase_source : 9acfb352750e53d3b36684fa945a18e817c9b82e
This commit is contained in:
Adrian Wielgosik 2018-04-25 23:01:30 +02:00
parent 30abf8cc5d
commit b3c501adc4
48 changed files with 72 additions and 121 deletions

View File

@ -21,7 +21,6 @@
#include "nsIDOMElement.h"
#include "nsIDOMRange.h"
#include "nsISelectionPrivate.h"
#include "nsIDOMNodeList.h"
#include "nsIHTMLCollection.h"
#include "nsIDocument.h"
#include "nsIMutableArray.h"

View File

@ -17,9 +17,9 @@
#include "nsIAutoCompletePopup.h"
#include "nsIDOMXULMenuListElement.h"
#include "nsIDOMXULMultSelectCntrlEl.h"
#include "nsIDOMNodeList.h"
#include "nsIDOMXULSelectCntrlItemEl.h"
#include "nsIMutableArray.h"
#include "nsINodeList.h"
#include "nsIPersistentProperties2.h"
using namespace mozilla::a11y;
@ -271,14 +271,12 @@ XULListboxAccessible::SelectedCellCount()
NS_ASSERTION(control,
"Doesn't implement nsIDOMXULMultiSelectControlElement.");
nsCOMPtr<nsIDOMNodeList> selectedItems;
nsCOMPtr<nsINodeList> selectedItems;
control->GetSelectedItems(getter_AddRefs(selectedItems));
if (!selectedItems)
return 0;
nsINodeList* list = nsINodeList::FromDOMNodeList(selectedItems);
uint32_t selectedItemsCount = list->Length();
uint32_t selectedItemsCount = selectedItems->Length();
return selectedItemsCount * ColCount();
}
@ -322,16 +320,15 @@ XULListboxAccessible::SelectedCells(nsTArray<Accessible*>* aCells)
NS_ASSERTION(control,
"Doesn't implement nsIDOMXULMultiSelectControlElement.");
nsCOMPtr<nsIDOMNodeList> selectedItems;
nsCOMPtr<nsINodeList> selectedItems;
control->GetSelectedItems(getter_AddRefs(selectedItems));
if (!selectedItems)
return;
nsINodeList* list = nsINodeList::FromDOMNodeList(selectedItems);
uint32_t selectedItemsCount = list->Length();
uint32_t selectedItemsCount = selectedItems->Length();
for (uint32_t index = 0; index < selectedItemsCount; index++) {
nsIContent* itemContent = list->Item(index);
nsIContent* itemContent = selectedItems->Item(index);
Accessible* item = mDoc->GetAccessible(itemContent);
if (item) {
@ -353,13 +350,12 @@ XULListboxAccessible::SelectedCellIndices(nsTArray<uint32_t>* aCells)
NS_ASSERTION(control,
"Doesn't implement nsIDOMXULMultiSelectControlElement.");
nsCOMPtr<nsIDOMNodeList> selectedItems;
nsCOMPtr<nsINodeList> selectedItems;
control->GetSelectedItems(getter_AddRefs(selectedItems));
if (!selectedItems)
return;
nsINodeList* list = nsINodeList::FromDOMNodeList(selectedItems);
uint32_t selectedItemsCount = list->Length();
uint32_t selectedItemsCount = selectedItems->Length();
uint32_t colCount = ColCount();
aCells->SetCapacity(selectedItemsCount * colCount);
@ -368,7 +364,7 @@ XULListboxAccessible::SelectedCellIndices(nsTArray<uint32_t>* aCells)
for (uint32_t selItemsIdx = 0, cellsIdx = 0;
selItemsIdx < selectedItemsCount; selItemsIdx++) {
nsIContent* itemContent = list->Item(selItemsIdx);
nsIContent* itemContent = selectedItems->Item(selItemsIdx);
nsCOMPtr<nsIDOMXULSelectControlItemElement> item =
do_QueryInterface(itemContent);
@ -400,13 +396,12 @@ XULListboxAccessible::SelectedRowIndices(nsTArray<uint32_t>* aRows)
NS_ASSERTION(control,
"Doesn't implement nsIDOMXULMultiSelectControlElement.");
nsCOMPtr<nsIDOMNodeList> selectedItems;
nsCOMPtr<nsINodeList> selectedItems;
control->GetSelectedItems(getter_AddRefs(selectedItems));
if (!selectedItems)
return;
nsINodeList* list = nsINodeList::FromDOMNodeList(selectedItems);
uint32_t rowCount = list->Length();
uint32_t rowCount = selectedItems->Length();
if (!rowCount)
return;
@ -415,7 +410,7 @@ XULListboxAccessible::SelectedRowIndices(nsTArray<uint32_t>* aRows)
aRows->AppendElements(rowCount);
for (uint32_t rowIdx = 0; rowIdx < rowCount; rowIdx++) {
nsIContent* itemContent = list->Item(rowIdx);
nsIContent* itemContent = selectedItems->Item(rowIdx);
nsCOMPtr<nsIDOMXULSelectControlItemElement> item =
do_QueryInterface(itemContent);

View File

@ -321,7 +321,7 @@ WebConsoleCommands._registerOriginal("$", function(owner, selector) {
*
* @param string selector
* A string that is passed to window.document.querySelectorAll.
* @return nsIDOMNodeList
* @return NodeList
* Returns the result of document.querySelectorAll(selector).
*/
WebConsoleCommands._registerOriginal("$$", function(owner, selector) {

View File

@ -26,7 +26,6 @@
#include "nsPresContext.h"
#include "nsITooltipListener.h"
#include "nsIDOMNode.h"
#include "nsIDOMNodeList.h"
#include "nsIDOMElement.h"
#include "Link.h"
#include "mozilla/dom/Element.h"

View File

@ -14,7 +14,6 @@
#include "mozilla/Attributes.h"
#include "nsIAttribute.h"
#include "nsIDOMNode.h"
#include "nsIDOMNodeList.h"
#include "nsString.h"
#include "nsCOMPtr.h"
#include "nsCycleCollectionParticipant.h"

View File

@ -26,7 +26,6 @@
#include "mozilla/dom/NodeInfo.h"
#include "nsIDocumentInlines.h"
#include "mozilla/dom/DocumentTimeline.h"
#include "nsIDOMNodeList.h"
#include "nsIDOMDocument.h"
#include "nsIContentIterator.h"
#include "nsFlexContainerFrame.h"

View File

@ -34,7 +34,6 @@
#include "mozilla/dom/Event.h"
#include "nsIDocumentInlines.h"
#include "nsIDocumentEncoder.h"
#include "nsIDOMNodeList.h"
#include "nsIContentIterator.h"
#include "nsFocusManager.h"
#include "nsILinkHandler.h"
@ -496,7 +495,7 @@ NS_IMPL_CYCLE_COLLECTION_CAN_SKIP_THIS_END
NS_INTERFACE_TABLE_HEAD(nsAttrChildContentList)
NS_WRAPPERCACHE_INTERFACE_TABLE_ENTRY
NS_INTERFACE_TABLE(nsAttrChildContentList, nsINodeList, nsIDOMNodeList)
NS_INTERFACE_TABLE(nsAttrChildContentList, nsINodeList)
NS_INTERFACE_TABLE_TO_MAP_SEGUE_CYCLE_COLLECTION(nsAttrChildContentList)
NS_INTERFACE_MAP_END
@ -698,7 +697,7 @@ FragmentOrElement::nsDOMSlots::Traverse(nsCycleCollectionTraversalCallback& aCb)
aCb.NoteXPCOMChild(mAttributeMap.get());
NS_CYCLE_COLLECTION_NOTE_EDGE_NAME(aCb, "mSlots->mChildrenList");
aCb.NoteXPCOMChild(NS_ISUPPORTS_CAST(nsIDOMNodeList*, mChildrenList));
aCb.NoteXPCOMChild(NS_ISUPPORTS_CAST(nsINodeList*, mChildrenList));
NS_CYCLE_COLLECTION_NOTE_EDGE_NAME(aCb, "mSlots->mClassList");
aCb.NoteXPCOMChild(mClassList.get());
@ -788,7 +787,7 @@ FragmentOrElement::nsExtendedDOMSlots::Traverse(nsCycleCollectionTraversalCallba
aCb.NoteXPCOMChild(mControllers);
NS_CYCLE_COLLECTION_NOTE_EDGE_NAME(aCb, "mExtendedSlots->mLabelsList");
aCb.NoteXPCOMChild(NS_ISUPPORTS_CAST(nsIDOMNodeList*, mLabelsList));
aCb.NoteXPCOMChild(NS_ISUPPORTS_CAST(nsINodeList*, mLabelsList));
NS_CYCLE_COLLECTION_NOTE_EDGE_NAME(aCb, "mExtendedSlots->mShadowRoot");
aCb.NoteXPCOMChild(NS_ISUPPORTS_CAST(nsIContent*, mShadowRoot));

View File

@ -17,7 +17,6 @@
#include "nsISelection.h"
#include "nsISelectionController.h"
#include "nsIDOMNode.h"
#include "nsIDOMNodeList.h"
#include "nsPIDOMWindow.h"
#include "nsIDOMRange.h"
#include "nsIFormControl.h"

View File

@ -6,7 +6,6 @@
#include "mozilla/DebugOnly.h"
#include "nsISupports.h"
#include "nsIDOMNodeList.h"
#include "nsIContentIterator.h"
#include "nsRange.h"
#include "nsIContent.h"

View File

@ -78,7 +78,7 @@ NS_IMPL_CYCLE_COLLECTION_CAN_SKIP_THIS_END
// QueryInterface implementation for nsBaseContentList
NS_INTERFACE_TABLE_HEAD(nsBaseContentList)
NS_WRAPPERCACHE_INTERFACE_TABLE_ENTRY
NS_INTERFACE_TABLE(nsBaseContentList, nsINodeList, nsIDOMNodeList)
NS_INTERFACE_TABLE(nsBaseContentList, nsINodeList)
NS_INTERFACE_TABLE_TO_MAP_SEGUE_CYCLE_COLLECTION(nsBaseContentList)
NS_INTERFACE_MAP_END

View File

@ -19,7 +19,6 @@
#include "nsTArray.h"
#include "nsString.h"
#include "nsIHTMLCollection.h"
#include "nsIDOMNodeList.h"
#include "nsINodeList.h"
#include "nsStubMutationObserver.h"
#include "nsAtom.h"

View File

@ -136,7 +136,6 @@
#include "nsIDOMDocument.h"
#include "nsIDOMElement.h"
#include "nsIDOMNode.h"
#include "nsIDOMNodeList.h"
#include "nsIDOMWindowUtils.h"
#include "nsIDragService.h"
#include "nsIFormControl.h"

View File

@ -1372,7 +1372,7 @@ nsDOMWindowUtils::NodesFromRect(float aX, float aY,
float aBottomSize, float aLeftSize,
bool aIgnoreRootScrollFrame,
bool aFlushLayout,
nsIDOMNodeList** aReturn)
nsINodeList** aReturn)
{
nsCOMPtr<nsIDocument> doc = GetDocument();
NS_ENSURE_STATE(doc);

View File

@ -400,7 +400,7 @@ nsIdentifierMapEntry::Traverse(nsCycleCollectionTraversalCallback* aCallback)
{
NS_CYCLE_COLLECTION_NOTE_EDGE_NAME(*aCallback,
"mIdentifierMap mNameContentList");
aCallback->NoteXPCOMChild(static_cast<nsIDOMNodeList*>(mNameContentList));
aCallback->NoteXPCOMChild(static_cast<nsINodeList*>(mNameContentList));
if (mImageElement) {
NS_CYCLE_COLLECTION_NOTE_EDGE_NAME(*aCallback,
@ -3548,7 +3548,7 @@ nsIDocument::NodesFromRectHelper(float aX, float aY,
float aBottomSize, float aLeftSize,
bool aIgnoreRootScrollFrame,
bool aFlushLayout,
nsIDOMNodeList** aReturn)
nsINodeList** aReturn)
{
NS_ENSURE_ARG_POINTER(aReturn);

View File

@ -21,7 +21,6 @@
#include "mozilla/Encoding.h"
#include "nsIOutputStream.h"
#include "nsIDOMElement.h"
#include "nsIDOMNodeList.h"
#include "nsRange.h"
#include "nsIDOMDocument.h"
#include "nsGkAtoms.h"

View File

@ -95,7 +95,6 @@ class nsIDocumentEncoder;
class nsIDocumentObserver;
class nsIDOMDocument;
class nsIDOMElement;
class nsIDOMNodeList;
class nsIHTMLCollection;
class nsILayoutHistoryState;
class nsILoadContext;
@ -2367,7 +2366,7 @@ public:
float aBottomSize, float aLeftSize,
bool aIgnoreRootScrollFrame,
bool aFlushLayout,
nsIDOMNodeList** aReturn);
nsINodeList** aReturn);
/**
* See FlushSkinBindings on nsBindingManager

View File

@ -62,7 +62,6 @@
#include "nsIDocument.h"
#include "nsIDOMDocument.h"
#include "nsIDOMEventListener.h"
#include "nsIDOMNodeList.h"
#include "nsILinkHandler.h"
#include "mozilla/dom/NodeInfo.h"
#include "mozilla/dom/NodeInfoInlines.h"

View File

@ -43,7 +43,6 @@ class nsIAnimationObserver;
class nsIContent;
class nsIDocument;
class nsIDOMElement;
class nsIDOMNodeList;
class nsIFrame;
class nsIMutationObserver;
class nsINode;
@ -1182,8 +1181,8 @@ public:
nsAutoTObserverArray<nsIMutationObserver*, 1> mMutationObservers;
/**
* An object implementing nsIDOMNodeList for this content (childNodes)
* @see nsIDOMNodeList
* An object implementing NodeList for this content (childNodes)
* @see NodeList
* @see nsGenericHTMLElement::GetChildNodes
*/
RefPtr<nsAttrChildContentList> mChildNodes;

View File

@ -7,7 +7,6 @@
#ifndef nsINodeList_h___
#define nsINodeList_h___
#include "nsIDOMNodeList.h"
#include "nsWrapperCache.h"
#include "nsIContent.h"
@ -22,7 +21,7 @@ class nsINode;
/**
* An internal interface for a reasonably fast indexOf.
*/
class nsINodeList : public nsIDOMNodeList,
class nsINodeList : public nsISupports,
public nsWrapperCache
{
public:
@ -48,11 +47,6 @@ public:
return item;
}
static nsINodeList* FromDOMNodeList(nsIDOMNodeList *list)
{
return static_cast<nsINodeList*>(list);
}
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsINodeList, NS_INODELIST_IID)

View File

@ -15,7 +15,6 @@ const nsIInputStream = I.nsIInputStream;
const nsIDOMDocument = I.nsIDOMDocument;
const nsIDOMElement = I.nsIDOMElement;
const nsIDOMNode = I.nsIDOMNode;
const nsIDOMNodeList = I.nsIDOMNodeList;
Cu.importGlobalProperties(["DOMParser", "XMLSerializer"]);

View File

@ -1,11 +1,6 @@
/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
function run_test()
{
/**
* NOTE: [i] is not allowed in this test, since it's done via classinfo and
* we don't have that in xpcshell.
*/
test_getElementsByTagName();
test_getElementsByTagNameNS();
@ -22,9 +17,11 @@ function test_getElementsByTagName()
var doc = ParseFile("nodelist_data_1.xml");
var root = doc.documentElement;
// Check that getElementsByTagName returns a nodelist.
Assert.ok(doc.getElementsByTagName("*") instanceof nsIDOMNodeList);
Assert.ok(root.getElementsByTagName("*") instanceof nsIDOMNodeList);
// Check that getElementsByTagName returns an HTMLCollection.
Assert.equal(ChromeUtils.getClassName(doc.getElementsByTagName("*")),
"HTMLCollection")
Assert.ok(ChromeUtils.getClassName(root.getElementsByTagName("*")),
"HTMLCollection");
// Check that getElementsByTagName excludes the element it's called on.
Assert.equal(doc.getElementsByTagName("*").length,
@ -49,16 +46,16 @@ function test_getElementsByTagName()
}
// Check that we handle tagnames containing ':' correctly
Assert.ok(doc.getElementsByTagName("foo:test")
instanceof nsIDOMNodeList);
Assert.equal(ChromeUtils.getClassName(doc.getElementsByTagName("foo:test")),
"HTMLCollection");
Assert.equal(doc.getElementsByTagName("foo:test").length, 2);
Assert.ok(doc.getElementsByTagName("foo2:test")
instanceof nsIDOMNodeList);
Assert.equal(ChromeUtils.getClassName(doc.getElementsByTagName("foo2:test")),
"HTMLCollection");
Assert.equal(doc.getElementsByTagName("foo2:test").length, 3);
Assert.ok(doc.getElementsByTagName("bar:test")
instanceof nsIDOMNodeList);
Assert.equal(ChromeUtils.getClassName(doc.getElementsByTagName("bar:test")),
"HTMLCollection");
Assert.equal(doc.getElementsByTagName("bar:test").length, 4);
}
@ -67,9 +64,11 @@ function test_getElementsByTagNameNS()
var doc = ParseFile("nodelist_data_1.xml");
var root = doc.documentElement;
// Check that getElementsByTagNameNS returns a nodelist.
Assert.ok(doc.getElementsByTagNameNS("*", "*") instanceof nsIDOMNodeList);
Assert.ok(root.getElementsByTagNameNS("*", "*") instanceof nsIDOMNodeList);
// Check that getElementsByTagNameNS returns an HTMLCollection.
Assert.equal(ChromeUtils.getClassName(doc.getElementsByTagNameNS("*", "*")),
"HTMLCollection");
Assert.equal(ChromeUtils.getClassName(root.getElementsByTagNameNS("*", "*")),
"HTMLCollection");
// Check that passing "" and null for the namespace URI gives the same result
var list1 = doc.getElementsByTagNameNS("", "test");
@ -129,22 +128,22 @@ function test_getElementsByTagNameNS()
2);
// Check that we handle tagnames containing ':' correctly
Assert.ok(doc.getElementsByTagNameNS(null, "foo:test")
instanceof nsIDOMNodeList);
Assert.equal(ChromeUtils.getClassName(doc.getElementsByTagNameNS(null, "foo:test")),
"HTMLCollection");
Assert.equal(doc.getElementsByTagNameNS(null, "foo:test").length, 0);
Assert.equal(doc.getElementsByTagNameNS("foo", "foo:test").length, 0);
Assert.equal(doc.getElementsByTagNameNS("bar", "foo:test").length, 0);
Assert.equal(doc.getElementsByTagNameNS("*", "foo:test").length, 0);
Assert.ok(doc.getElementsByTagNameNS(null, "foo2:test")
instanceof nsIDOMNodeList);
Assert.equal(ChromeUtils.getClassName(doc.getElementsByTagNameNS(null, "foo2:test")),
"HTMLCollection");
Assert.equal(doc.getElementsByTagNameNS(null, "foo2:test").length, 0);
Assert.equal(doc.getElementsByTagNameNS("foo2", "foo2:test").length, 0);
Assert.equal(doc.getElementsByTagNameNS("bar", "foo2:test").length, 0);
Assert.equal(doc.getElementsByTagNameNS("*", "foo2:test").length, 0);
Assert.ok(doc.getElementsByTagNameNS(null, "bar:test")
instanceof nsIDOMNodeList);
Assert.equal(ChromeUtils.getClassName(doc.getElementsByTagNameNS(null, "bar:test")),
"HTMLCollection");
Assert.equal(doc.getElementsByTagNameNS(null, "bar:test").length, 0);
Assert.equal(doc.getElementsByTagNameNS("bar", "bar:test").length, 0);
Assert.equal(doc.getElementsByTagNameNS("*", "bar:test").length, 0);
@ -177,8 +176,8 @@ function test_getElementsByAttribute()
Assert.equal(ChromeUtils.getClassName(root), "XULElement");
Assert.ok(root.getElementsByAttribute("foo", "foo") instanceof
nsIDOMNodeList);
Assert.equal(ChromeUtils.getClassName(root.getElementsByAttribute("foo", "foo")),
"HTMLCollection");
var master1 = doc.getElementById("master1");
var master2 = doc.getElementById("master2");
@ -294,9 +293,9 @@ function test_getElementsByAttributeNS()
Assert.equal(ChromeUtils.getClassName(root), "XULElement");
// Check that getElementsByAttributeNS returns a nodelist.
Assert.ok(root.getElementsByAttributeNS("*", "*", "*") instanceof
nsIDOMNodeList);
// Check that getElementsByAttributeNS returns an HTMLCollection.
Assert.equal(ChromeUtils.getClassName(root.getElementsByAttributeNS("*", "*", "*")),
"HTMLCollection");
var master1 = doc.getElementById("master1");
var master2 = doc.getElementById("master2");

View File

@ -14,7 +14,6 @@
#include "nsGenericHTMLElement.h" // nsGenericHTMLFormElement
#include "nsIDocument.h"
#include "nsIDOMNode.h"
#include "nsIDOMNodeList.h"
#include "nsIFormControl.h"
#include "RadioNodeList.h"
#include "jsfriendapi.h"

View File

@ -55,7 +55,6 @@
#include "nsDateTimeControlFrame.h"
#include "mozilla/PresState.h"
#include "nsIDOMNodeList.h"
#include "nsLinebreakConverter.h" //to strip out carriage returns
#include "nsReadableUtils.h"
#include "nsUnicharUtils.h"

View File

@ -23,7 +23,6 @@
#include "nsIPresShell.h"
#include "nsPresContext.h"
#include "nsIDOMNode.h" // for Find
#include "nsIDOMNodeList.h"
#include "nsIDOMElement.h"
#include "nsPIDOMWindow.h"
#include "nsDOMString.h"

View File

@ -19,7 +19,6 @@ typedef unsigned long long nsViewID;
interface nsIDOMDocument;
interface nsIDOMElement;
interface nsIDOMNode;
interface nsIDOMNodeList;
// Needed for raises() in our IDL
%{C++

View File

@ -32,7 +32,6 @@ native nscolor(nscolor);
interface nsIArray;
interface nsICycleCollectorListener;
interface nsIDOMNode;
interface nsIDOMNodeList;
interface nsIDOMElement;
interface nsIPreloadedStyleSheet;
interface nsITransferable;
@ -48,6 +47,7 @@ interface nsIObserver;
interface nsIDOMStorage;
webidl DOMRect;
webidl NodeList;
webidl EventTarget;
webidl Event;
@ -763,14 +763,14 @@ interface nsIDOMWindowUtils : nsISupports {
* null for coordinates outside of the viewport.
* @param aFlushLayout flushes layout if true. Otherwise, no flush occurs.
*/
nsIDOMNodeList nodesFromRect(in float aX,
in float aY,
in float aTopSize,
in float aRightSize,
in float aBottomSize,
in float aLeftSize,
in boolean aIgnoreRootScrollFrame,
in boolean aFlushLayout);
NodeList nodesFromRect(in float aX,
in float aY,
in float aTopSize,
in float aRightSize,
in float aBottomSize,
in float aLeftSize,
in boolean aIgnoreRootScrollFrame,
in boolean aFlushLayout);
/**

View File

@ -11,7 +11,6 @@ XPIDL_SOURCES += [
'nsIDOMDocument.idl',
'nsIDOMElement.idl',
'nsIDOMNode.idl',
'nsIDOMNodeList.idl',
'nsIDOMNSEditableElement.idl',
]

View File

@ -5,7 +5,7 @@
#include "nsIDOMXULSelectCntrlEl.idl"
interface nsIDOMNodeList;
webidl NodeList;
[scriptable, uuid(40654a10-8204-4f06-9f21-7baa31c7b1dd)]
interface nsIDOMXULMultiSelectControlElement : nsIDOMXULSelectControlElement
@ -15,7 +15,7 @@ interface nsIDOMXULMultiSelectControlElement : nsIDOMXULSelectControlElement
attribute nsIDOMXULSelectControlItemElement currentItem;
attribute long currentIndex;
readonly attribute nsIDOMNodeList selectedItems;
readonly attribute NodeList selectedItems;
void addItemToSelection(in nsIDOMXULSelectControlItemElement item);
void removeItemFromSelection(in nsIDOMXULSelectControlItemElement item);
@ -29,7 +29,7 @@ interface nsIDOMXULMultiSelectControlElement : nsIDOMXULSelectControlElement
void clearSelection();
// XXX - temporary, pending implementation of scriptable,
// mutable nsIDOMNodeList for selectedItems
// mutable NodeList for selectedItems
readonly attribute long selectedCount;
[binaryname(MultiGetSelectedItem)]
nsIDOMXULSelectControlItemElement getSelectedItem(in long index);

View File

@ -15,14 +15,14 @@
.getInterface(Ci.nsIDOMWindowUtils);
/*
nsIDOMNodeList nodesFromRect(in float aX,
in float aY,
in float aTopSize,
in float aRightSize,
in float aBottomSize,
in float aLeftSize,
in boolean aIgnoreRootScrollFrame,
in boolean aFlushLayout);
NodeList nodesFromRect(in float aX,
in float aY,
in float aTopSize,
in float aRightSize,
in float aBottomSize,
in float aLeftSize,
in boolean aIgnoreRootScrollFrame,
in boolean aFlushLayout);
*/

View File

@ -32,7 +32,6 @@
#include "nsIContent.h"
#include "nsIDOMDocument.h"
#include "nsIDOMNode.h"
#include "nsIDOMNodeList.h"
#include "nsIDOMWindowUtils.h"
#include "nsIDocShell.h"
#include "nsIDocument.h"

View File

@ -83,7 +83,7 @@ NS_IMPL_CYCLE_COLLECTING_RELEASE(nsAnonymousContentList)
NS_INTERFACE_TABLE_HEAD(nsAnonymousContentList)
NS_WRAPPERCACHE_INTERFACE_TABLE_ENTRY
NS_INTERFACE_TABLE(nsAnonymousContentList, nsINodeList, nsIDOMNodeList)
NS_INTERFACE_TABLE(nsAnonymousContentList, nsINodeList)
NS_INTERFACE_TABLE_TO_MAP_SEGUE_CYCLE_COLLECTION(nsAnonymousContentList)
NS_INTERFACE_MAP_END

View File

@ -27,7 +27,6 @@
#include "nsGkAtoms.h"
#include "nsIMemory.h"
#include "nsIObserverService.h"
#include "nsIDOMNodeList.h"
#include "nsXBLContentSink.h"
#include "nsXBLBinding.h"
#include "nsXBLPrototypeBinding.h"

View File

@ -11,7 +11,6 @@
#include "nsIDOMElement.h"
#include "nsIDocument.h"
#include "nsIDOMDocument.h"
#include "nsIDOMNodeList.h"
#include "nsIIOService.h"
#include "nsILoadGroup.h"
#include "nsIStringBundle.h"

View File

@ -12,7 +12,6 @@
#include "nsIDOMDocument.h"
#include "nsIDOMElement.h"
#include "nsIDOMEventListener.h"
#include "nsIDOMNodeList.h"
#include "nsIDOMXULCommandDispatcher.h"
#include "nsIDOMXULSelectCntrlItemEl.h"
#include "nsIDocument.h"

View File

@ -53,7 +53,6 @@
#include "nsIDOMDocument.h"
#include "nsIDOMElement.h"
#include "nsIDOMNode.h"
#include "nsIDOMNodeList.h"
#include "nsGenericHTMLElement.h"
#include "nsRange.h"
#include "nsIPlaintextEditor.h"

View File

@ -62,7 +62,6 @@
#include "nsGkAtoms.h"
#include "nsIDOMDocument.h"
#include "nsIDOMNode.h"
#include "nsIDOMNodeList.h"
#include "nsIDOMElement.h"
#include "nsRange.h"
#include "nsWindowSizes.h"

View File

@ -27,7 +27,6 @@
#include "nsIPresShell.h"
#include <algorithm>
#include "nsIDOMNodeList.h" //for selection setting helper func
#include "nsRange.h" //for selection setting helper func
#include "nsINode.h"
#include "nsPIDOMWindow.h" //needed for notify selection changed to update the menus ect.

View File

@ -9,7 +9,6 @@
#include "nsString.h"
#include "nsIDOMDocument.h"
#include "nsIDOMNodeList.h"
#include "nsServiceManagerUtils.h"
#include "nsIContent.h"
#include "ChildIterator.h"

View File

@ -6,7 +6,6 @@
#include "nsCOMPtr.h"
#include "nsButtonBoxFrame.h"
#include "nsIContent.h"
#include "nsIDOMNodeList.h"
#include "nsIDOMXULButtonElement.h"
#include "nsGkAtoms.h"
#include "nsNameSpaceManager.h"

View File

@ -17,7 +17,6 @@
#include "nsNameSpaceManager.h"
#include "nsIDocument.h"
#include "nsIDOMElement.h"
#include "nsIDOMNodeList.h"
#include "nsCSSFrameConstructor.h"
#include "nsIScrollableFrame.h"
#include "nsScrollbarFrame.h"

View File

@ -10,7 +10,6 @@
#include "nsResizerFrame.h"
#include "nsIContent.h"
#include "nsIDocument.h"
#include "nsIDOMNodeList.h"
#include "nsGkAtoms.h"
#include "nsNameSpaceManager.h"

View File

@ -8,7 +8,6 @@
#include "nsTitleBarFrame.h"
#include "nsIContent.h"
#include "nsIDocument.h"
#include "nsIDOMNodeList.h"
#include "nsGkAtoms.h"
#include "nsIWidget.h"
#include "nsMenuPopupFrame.h"

View File

@ -35,7 +35,6 @@
#include "mozilla/ComputedStyle.h"
#include "nsIBoxObject.h"
#include "nsIDOMElement.h"
#include "nsIDOMNodeList.h"
#include "nsIDocument.h"
#include "nsCSSRendering.h"
#include "nsString.h"

View File

@ -21,7 +21,6 @@
#include "nsIDOMDocument.h"
#include "nsIDOMElement.h"
#include "nsIDOMNode.h"
#include "nsIDOMNodeList.h"
#include "nsIDTD.h"
#include "nsIDocument.h"
#include "nsIDocumentEncoder.h"

View File

@ -10,7 +10,6 @@
#include "nsContentCID.h"
#include "nsIContent.h"
#include "nsIDOMNode.h"
#include "nsIDOMNodeList.h"
#include "nsISelection.h"
#include "nsISelectionController.h"
#include "nsIFrame.h"

View File

@ -21,7 +21,6 @@
#include "nsIObserverService.h"
#include "nsIDOMElement.h"
#include "nsIDOMNode.h"
#include "nsIDOMNodeList.h"
#include "nsTArray.h"
#include "nsXULAppAPI.h"
#include "nsIXULAppInfo.h"

View File

@ -24,7 +24,6 @@
#include "nsIDOMChromeWindow.h"
#include "nsIDOMNode.h"
#include "nsIDOMElement.h"
#include "nsIDOMNodeList.h"
#include "nsIXULBrowserWindow.h"
#include "mozilla/dom/Element.h"

View File

@ -16,7 +16,6 @@
// Interfaces needed to be included
#include "nsIDOMNode.h"
#include "nsIDOMElement.h"
#include "nsIDOMNodeList.h"
#include "nsIDOMWindow.h"
#include "nsIDOMChromeWindow.h"
#include "nsIBrowserDOMWindow.h"