Bug 1415677 part 6. Remove nsIDOMHTMLCollection. r=qdot
MozReview-Commit-ID: E8P9o0bv63L
This commit is contained in:
@@ -10,7 +10,6 @@
|
|||||||
#include "DocAccessible-inl.h"
|
#include "DocAccessible-inl.h"
|
||||||
#include "Role.h"
|
#include "Role.h"
|
||||||
|
|
||||||
#include "nsIDOMHTMLCollection.h"
|
|
||||||
#include "nsIServiceManager.h"
|
#include "nsIServiceManager.h"
|
||||||
#include "nsIDOMElement.h"
|
#include "nsIDOMElement.h"
|
||||||
#include "nsIFrame.h"
|
#include "nsIFrame.h"
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
#include "nsIDOMRange.h"
|
#include "nsIDOMRange.h"
|
||||||
#include "nsISelectionPrivate.h"
|
#include "nsISelectionPrivate.h"
|
||||||
#include "nsIDOMNodeList.h"
|
#include "nsIDOMNodeList.h"
|
||||||
#include "nsIDOMHTMLCollection.h"
|
#include "nsIHTMLCollection.h"
|
||||||
#include "nsIDocument.h"
|
#include "nsIDocument.h"
|
||||||
#include "nsIMutableArray.h"
|
#include "nsIMutableArray.h"
|
||||||
#include "nsIPersistentProperties2.h"
|
#include "nsIPersistentProperties2.h"
|
||||||
|
|||||||
@@ -10,7 +10,6 @@
|
|||||||
#include "nsComputedDOMStyle.h"
|
#include "nsComputedDOMStyle.h"
|
||||||
#include "nsCycleCollectionParticipant.h"
|
#include "nsCycleCollectionParticipant.h"
|
||||||
#include "nsIDocument.h"
|
#include "nsIDocument.h"
|
||||||
#include "nsIDOMHTMLCollection.h"
|
|
||||||
#include "nsIFrame.h"
|
#include "nsIFrame.h"
|
||||||
#include "nsStyledElement.h"
|
#include "nsStyledElement.h"
|
||||||
#include "HTMLCanvasElement.h"
|
#include "HTMLCanvasElement.h"
|
||||||
|
|||||||
@@ -506,8 +506,7 @@ nsContentList::WrapObject(JSContext *cx, JS::Handle<JSObject*> aGivenProto)
|
|||||||
}
|
}
|
||||||
|
|
||||||
NS_IMPL_ISUPPORTS_INHERITED(nsContentList, nsBaseContentList,
|
NS_IMPL_ISUPPORTS_INHERITED(nsContentList, nsBaseContentList,
|
||||||
nsIHTMLCollection, nsIDOMHTMLCollection,
|
nsIHTMLCollection, nsIMutationObserver)
|
||||||
nsIMutationObserver)
|
|
||||||
|
|
||||||
uint32_t
|
uint32_t
|
||||||
nsContentList::Length(bool aDoFlush)
|
nsContentList::Length(bool aDoFlush)
|
||||||
|
|||||||
@@ -150,11 +150,9 @@ public:
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
// nsIDOMHTMLCollection
|
|
||||||
NS_DECL_ISUPPORTS_INHERITED
|
NS_DECL_ISUPPORTS_INHERITED
|
||||||
NS_DECL_CYCLE_COLLECTION_CLASS_INHERITED(nsEmptyContentList,
|
NS_DECL_CYCLE_COLLECTION_CLASS_INHERITED(nsEmptyContentList,
|
||||||
nsBaseContentList)
|
nsBaseContentList)
|
||||||
NS_DECL_NSIDOMHTMLCOLLECTION
|
|
||||||
// nsIDOMNodeList, which we also implement.
|
// nsIDOMNodeList, which we also implement.
|
||||||
NS_DECL_NSIDOMNODELIST
|
NS_DECL_NSIDOMNODELIST
|
||||||
|
|
||||||
@@ -337,8 +335,6 @@ protected:
|
|||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// nsIDOMHTMLCollection
|
|
||||||
NS_DECL_NSIDOMHTMLCOLLECTION
|
|
||||||
// nsIDOMNodeList, which we also implement.
|
// nsIDOMNodeList, which we also implement.
|
||||||
NS_DECL_NSIDOMNODELIST
|
NS_DECL_NSIDOMNODELIST
|
||||||
|
|
||||||
|
|||||||
@@ -585,9 +585,6 @@ public:
|
|||||||
|
|
||||||
NS_DECL_ISUPPORTS_INHERITED
|
NS_DECL_ISUPPORTS_INHERITED
|
||||||
|
|
||||||
// nsIDOMHTMLCollection
|
|
||||||
NS_DECL_NSIDOMHTMLCOLLECTION
|
|
||||||
|
|
||||||
virtual nsINode* GetParentObject() override
|
virtual nsINode* GetParentObject() override
|
||||||
{
|
{
|
||||||
return nsSimpleContentList::GetParentObject();
|
return nsSimpleContentList::GetParentObject();
|
||||||
@@ -668,7 +665,7 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
NS_IMPL_ISUPPORTS_INHERITED(SimpleHTMLCollection, nsSimpleContentList,
|
NS_IMPL_ISUPPORTS_INHERITED(SimpleHTMLCollection, nsSimpleContentList,
|
||||||
nsIHTMLCollection, nsIDOMHTMLCollection)
|
nsIHTMLCollection)
|
||||||
|
|
||||||
} // namespace dom
|
} // namespace dom
|
||||||
} // namespace mozilla
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -143,8 +143,7 @@ NS_IMPL_CYCLE_COLLECTION_TRACE_END
|
|||||||
NS_INTERFACE_TABLE_HEAD(HTMLFormControlsCollection)
|
NS_INTERFACE_TABLE_HEAD(HTMLFormControlsCollection)
|
||||||
NS_WRAPPERCACHE_INTERFACE_TABLE_ENTRY
|
NS_WRAPPERCACHE_INTERFACE_TABLE_ENTRY
|
||||||
NS_INTERFACE_TABLE(HTMLFormControlsCollection,
|
NS_INTERFACE_TABLE(HTMLFormControlsCollection,
|
||||||
nsIHTMLCollection,
|
nsIHTMLCollection)
|
||||||
nsIDOMHTMLCollection)
|
|
||||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE_CYCLE_COLLECTION(HTMLFormControlsCollection)
|
NS_INTERFACE_TABLE_TO_MAP_SEGUE_CYCLE_COLLECTION(HTMLFormControlsCollection)
|
||||||
NS_INTERFACE_MAP_END
|
NS_INTERFACE_MAP_END
|
||||||
|
|
||||||
@@ -153,7 +152,7 @@ NS_IMPL_CYCLE_COLLECTING_ADDREF(HTMLFormControlsCollection)
|
|||||||
NS_IMPL_CYCLE_COLLECTING_RELEASE(HTMLFormControlsCollection)
|
NS_IMPL_CYCLE_COLLECTING_RELEASE(HTMLFormControlsCollection)
|
||||||
|
|
||||||
|
|
||||||
// nsIDOMHTMLCollection interface
|
// nsIHTMLCollection interface
|
||||||
|
|
||||||
uint32_t
|
uint32_t
|
||||||
HTMLFormControlsCollection::Length()
|
HTMLFormControlsCollection::Length()
|
||||||
|
|||||||
@@ -35,9 +35,6 @@ public:
|
|||||||
|
|
||||||
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
||||||
|
|
||||||
// nsIDOMHTMLCollection interface
|
|
||||||
NS_DECL_NSIDOMHTMLCOLLECTION
|
|
||||||
|
|
||||||
virtual uint32_t Length() override;
|
virtual uint32_t Length() override;
|
||||||
virtual Element* GetElementAt(uint32_t index) override;
|
virtual Element* GetElementAt(uint32_t index) override;
|
||||||
virtual nsINode* GetParentObject() override;
|
virtual nsINode* GetParentObject() override;
|
||||||
|
|||||||
@@ -57,7 +57,6 @@
|
|||||||
#include "nsPresState.h"
|
#include "nsPresState.h"
|
||||||
#include "nsIDOMEvent.h"
|
#include "nsIDOMEvent.h"
|
||||||
#include "nsIDOMNodeList.h"
|
#include "nsIDOMNodeList.h"
|
||||||
#include "nsIDOMHTMLCollection.h"
|
|
||||||
#include "nsLinebreakConverter.h" //to strip out carriage returns
|
#include "nsLinebreakConverter.h" //to strip out carriage returns
|
||||||
#include "nsReadableUtils.h"
|
#include "nsReadableUtils.h"
|
||||||
#include "nsUnicharUtils.h"
|
#include "nsUnicharUtils.h"
|
||||||
|
|||||||
@@ -13,7 +13,6 @@
|
|||||||
#include "nsIFormControl.h"
|
#include "nsIFormControl.h"
|
||||||
#include "nsIForm.h"
|
#include "nsIForm.h"
|
||||||
#include "nsIDOMNode.h"
|
#include "nsIDOMNode.h"
|
||||||
#include "nsIDOMHTMLCollection.h"
|
|
||||||
#include "nsISelectControlFrame.h"
|
#include "nsISelectControlFrame.h"
|
||||||
|
|
||||||
// Notify/query select frame for selected state
|
// Notify/query select frame for selected state
|
||||||
|
|||||||
@@ -96,8 +96,7 @@ NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(HTMLOptionsCollection, mElements)
|
|||||||
NS_INTERFACE_TABLE_HEAD(HTMLOptionsCollection)
|
NS_INTERFACE_TABLE_HEAD(HTMLOptionsCollection)
|
||||||
NS_WRAPPERCACHE_INTERFACE_TABLE_ENTRY
|
NS_WRAPPERCACHE_INTERFACE_TABLE_ENTRY
|
||||||
NS_INTERFACE_TABLE(HTMLOptionsCollection,
|
NS_INTERFACE_TABLE(HTMLOptionsCollection,
|
||||||
nsIHTMLCollection,
|
nsIHTMLCollection)
|
||||||
nsIDOMHTMLCollection)
|
|
||||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE_CYCLE_COLLECTION(HTMLOptionsCollection)
|
NS_INTERFACE_TABLE_TO_MAP_SEGUE_CYCLE_COLLECTION(HTMLOptionsCollection)
|
||||||
NS_INTERFACE_MAP_END
|
NS_INTERFACE_MAP_END
|
||||||
|
|
||||||
|
|||||||
@@ -36,7 +36,6 @@ public:
|
|||||||
explicit HTMLOptionsCollection(HTMLSelectElement* aSelect);
|
explicit HTMLOptionsCollection(HTMLSelectElement* aSelect);
|
||||||
|
|
||||||
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
||||||
NS_DECL_NSIDOMHTMLCOLLECTION
|
|
||||||
|
|
||||||
// nsWrapperCache
|
// nsWrapperCache
|
||||||
using nsWrapperCache::GetWrapperPreserveColor;
|
using nsWrapperCache::GetWrapperPreserveColor;
|
||||||
|
|||||||
@@ -32,7 +32,6 @@ public:
|
|||||||
explicit TableRowsCollection(HTMLTableElement* aParent);
|
explicit TableRowsCollection(HTMLTableElement* aParent);
|
||||||
|
|
||||||
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
||||||
NS_DECL_NSIDOMHTMLCOLLECTION
|
|
||||||
|
|
||||||
NS_DECL_NSIMUTATIONOBSERVER_CONTENTAPPENDED
|
NS_DECL_NSIMUTATIONOBSERVER_CONTENTAPPENDED
|
||||||
NS_DECL_NSIMUTATIONOBSERVER_CONTENTINSERTED
|
NS_DECL_NSIMUTATIONOBSERVER_CONTENTINSERTED
|
||||||
@@ -218,8 +217,7 @@ NS_IMPL_CYCLE_COLLECTING_RELEASE_WITH_LAST_RELEASE(TableRowsCollection,
|
|||||||
|
|
||||||
NS_INTERFACE_TABLE_HEAD(TableRowsCollection)
|
NS_INTERFACE_TABLE_HEAD(TableRowsCollection)
|
||||||
NS_WRAPPERCACHE_INTERFACE_TABLE_ENTRY
|
NS_WRAPPERCACHE_INTERFACE_TABLE_ENTRY
|
||||||
NS_INTERFACE_TABLE(TableRowsCollection, nsIHTMLCollection,
|
NS_INTERFACE_TABLE(TableRowsCollection, nsIHTMLCollection, nsIMutationObserver)
|
||||||
nsIDOMHTMLCollection, nsIMutationObserver)
|
|
||||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE_CYCLE_COLLECTION(TableRowsCollection)
|
NS_INTERFACE_TABLE_TO_MAP_SEGUE_CYCLE_COLLECTION(TableRowsCollection)
|
||||||
NS_INTERFACE_MAP_END
|
NS_INTERFACE_MAP_END
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
#include "nsDocument.h"
|
#include "nsDocument.h"
|
||||||
#include "nsIHTMLDocument.h"
|
#include "nsIHTMLDocument.h"
|
||||||
#include "nsIDOMHTMLDocument.h"
|
#include "nsIDOMHTMLDocument.h"
|
||||||
#include "nsIDOMHTMLCollection.h"
|
#include "nsIHTMLCollection.h"
|
||||||
#include "nsIScriptElement.h"
|
#include "nsIScriptElement.h"
|
||||||
#include "nsTArray.h"
|
#include "nsTArray.h"
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
#ifndef nsIHTMLCollection_h___
|
#ifndef nsIHTMLCollection_h___
|
||||||
#define nsIHTMLCollection_h___
|
#define nsIHTMLCollection_h___
|
||||||
|
|
||||||
#include "nsIDOMHTMLCollection.h"
|
#include "nsISupports.h"
|
||||||
#include "nsStringFwd.h"
|
#include "nsStringFwd.h"
|
||||||
#include "nsTArrayForwardDeclare.h"
|
#include "nsTArrayForwardDeclare.h"
|
||||||
#include "nsWrapperCache.h"
|
#include "nsWrapperCache.h"
|
||||||
@@ -30,7 +30,7 @@ class Element;
|
|||||||
/**
|
/**
|
||||||
* An internal interface
|
* An internal interface
|
||||||
*/
|
*/
|
||||||
class nsIHTMLCollection : public nsIDOMHTMLCollection
|
class nsIHTMLCollection : public nsISupports
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IHTMLCOLLECTION_IID)
|
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IHTMLCOLLECTION_IID)
|
||||||
|
|||||||
@@ -59,7 +59,6 @@ interface nsIDOMEventListener;
|
|||||||
// HTML
|
// HTML
|
||||||
interface nsIDOMHTMLElement;
|
interface nsIDOMHTMLElement;
|
||||||
interface nsIDOMHTMLFormElement;
|
interface nsIDOMHTMLFormElement;
|
||||||
interface nsIDOMHTMLCollection;
|
|
||||||
interface nsIDOMHTMLHeadElement;
|
interface nsIDOMHTMLHeadElement;
|
||||||
|
|
||||||
// CSS
|
// CSS
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ with Files("**"):
|
|||||||
BUG_COMPONENT = ("Core", "DOM")
|
BUG_COMPONENT = ("Core", "DOM")
|
||||||
|
|
||||||
XPIDL_SOURCES += [
|
XPIDL_SOURCES += [
|
||||||
'nsIDOMHTMLCollection.idl',
|
|
||||||
'nsIDOMHTMLDocument.idl',
|
'nsIDOMHTMLDocument.idl',
|
||||||
'nsIDOMHTMLElement.idl',
|
'nsIDOMHTMLElement.idl',
|
||||||
'nsIDOMHTMLFormElement.idl',
|
'nsIDOMHTMLFormElement.idl',
|
||||||
|
|||||||
@@ -1,22 +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"
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The nsIDOMHTMLCollection interface is an interface to a collection
|
|
||||||
* of [X]HTML elements.
|
|
||||||
*
|
|
||||||
* This interface is trying to follow the DOM Level 2 HTML specification:
|
|
||||||
* http://www.w3.org/TR/DOM-Level-2-HTML/
|
|
||||||
*
|
|
||||||
* with changes from the work-in-progress WHATWG HTML specification:
|
|
||||||
* http://www.whatwg.org/specs/web-apps/current-work/
|
|
||||||
*/
|
|
||||||
|
|
||||||
[uuid(bb07f567-5b37-4172-92aa-7d00ceed4809)]
|
|
||||||
interface nsIDOMHTMLCollection : nsISupports
|
|
||||||
{
|
|
||||||
};
|
|
||||||
@@ -46,7 +46,6 @@ using mozilla::DefaultXDisplay;
|
|||||||
#include "nsIScrollableFrame.h"
|
#include "nsIScrollableFrame.h"
|
||||||
#include "nsIDocShell.h"
|
#include "nsIDocShell.h"
|
||||||
#include "ImageContainer.h"
|
#include "ImageContainer.h"
|
||||||
#include "nsIDOMHTMLCollection.h"
|
|
||||||
#include "GLContext.h"
|
#include "GLContext.h"
|
||||||
#include "EGLUtils.h"
|
#include "EGLUtils.h"
|
||||||
#include "nsIContentInlines.h"
|
#include "nsIContentInlines.h"
|
||||||
|
|||||||
@@ -25,7 +25,6 @@
|
|||||||
#include "nsIDOMAttr.h"
|
#include "nsIDOMAttr.h"
|
||||||
#include "nsIDOMComment.h"
|
#include "nsIDOMComment.h"
|
||||||
#include "nsIDOMDocument.h"
|
#include "nsIDOMDocument.h"
|
||||||
#include "nsIDOMHTMLCollection.h"
|
|
||||||
#include "nsIDOMHTMLDocument.h"
|
#include "nsIDOMHTMLDocument.h"
|
||||||
#include "nsIDOMHTMLInputElement.h"
|
#include "nsIDOMHTMLInputElement.h"
|
||||||
#include "nsIDOMHTMLMediaElement.h"
|
#include "nsIDOMHTMLMediaElement.h"
|
||||||
|
|||||||
@@ -21,7 +21,6 @@
|
|||||||
#include "nsIObserver.h"
|
#include "nsIObserver.h"
|
||||||
#include "nsIObserverService.h"
|
#include "nsIObserverService.h"
|
||||||
#include "nsIDOMElement.h"
|
#include "nsIDOMElement.h"
|
||||||
#include "nsIDOMHTMLCollection.h"
|
|
||||||
#include "nsIDOMNode.h"
|
#include "nsIDOMNode.h"
|
||||||
#include "nsIDOMNodeList.h"
|
#include "nsIDOMNodeList.h"
|
||||||
#include "nsTArray.h"
|
#include "nsTArray.h"
|
||||||
|
|||||||
@@ -45,7 +45,6 @@
|
|||||||
#include "nsIDOMFormData.h"
|
#include "nsIDOMFormData.h"
|
||||||
#include "nsIDOMGeoPositionError.h"
|
#include "nsIDOMGeoPositionError.h"
|
||||||
#include "nsIDOMHistory.h"
|
#include "nsIDOMHistory.h"
|
||||||
#include "nsIDOMHTMLCollection.h"
|
|
||||||
#include "nsIDOMHTMLDocument.h"
|
#include "nsIDOMHTMLDocument.h"
|
||||||
#include "nsIDOMHTMLElement.h"
|
#include "nsIDOMHTMLElement.h"
|
||||||
#include "nsIDOMHTMLFormElement.h"
|
#include "nsIDOMHTMLFormElement.h"
|
||||||
@@ -140,7 +139,6 @@
|
|||||||
#include "mozilla/dom/HTMLAnchorElementBinding.h"
|
#include "mozilla/dom/HTMLAnchorElementBinding.h"
|
||||||
#include "mozilla/dom/HTMLAreaElementBinding.h"
|
#include "mozilla/dom/HTMLAreaElementBinding.h"
|
||||||
#include "mozilla/dom/HTMLButtonElementBinding.h"
|
#include "mozilla/dom/HTMLButtonElementBinding.h"
|
||||||
#include "mozilla/dom/HTMLCollectionBinding.h"
|
|
||||||
#include "mozilla/dom/HTMLDocumentBinding.h"
|
#include "mozilla/dom/HTMLDocumentBinding.h"
|
||||||
#include "mozilla/dom/HTMLElementBinding.h"
|
#include "mozilla/dom/HTMLElementBinding.h"
|
||||||
#include "mozilla/dom/HTMLFormElementBinding.h"
|
#include "mozilla/dom/HTMLFormElementBinding.h"
|
||||||
@@ -290,7 +288,6 @@ const ComponentsInterfaceShimEntry kComponentsInterfaceShimMap[] =
|
|||||||
DEFINE_SHIM_WITH_CUSTOM_INTERFACE(nsIFrameLoader, FrameLoader),
|
DEFINE_SHIM_WITH_CUSTOM_INTERFACE(nsIFrameLoader, FrameLoader),
|
||||||
DEFINE_SHIM_WITH_CUSTOM_INTERFACE(nsIDOMGeoPositionError, PositionError),
|
DEFINE_SHIM_WITH_CUSTOM_INTERFACE(nsIDOMGeoPositionError, PositionError),
|
||||||
DEFINE_SHIM(History),
|
DEFINE_SHIM(History),
|
||||||
DEFINE_SHIM(HTMLCollection),
|
|
||||||
DEFINE_SHIM(HTMLDocument),
|
DEFINE_SHIM(HTMLDocument),
|
||||||
DEFINE_SHIM(HTMLElement),
|
DEFINE_SHIM(HTMLElement),
|
||||||
DEFINE_SHIM(HTMLFormElement),
|
DEFINE_SHIM(HTMLFormElement),
|
||||||
|
|||||||
Reference in New Issue
Block a user