Bug 1463889 part 3. Get rid of nsIDOMWindowCollection. r=qdot

This commit is contained in:
Boris Zbarsky
2018-05-24 23:32:19 -04:00
parent 4ed0a9f56b
commit a4c9de02b0
8 changed files with 5 additions and 77 deletions

View File

@@ -26,20 +26,10 @@ nsDOMWindowList::~nsDOMWindowList()
{
}
NS_IMPL_ADDREF(nsDOMWindowList)
NS_IMPL_RELEASE(nsDOMWindowList)
NS_INTERFACE_MAP_BEGIN(nsDOMWindowList)
NS_INTERFACE_MAP_ENTRY(nsIDOMWindowCollection)
NS_INTERFACE_MAP_ENTRY(nsISupports)
NS_INTERFACE_MAP_END
NS_IMETHODIMP
void
nsDOMWindowList::SetDocShell(nsIDocShell* aDocShell)
{
mDocShellNode = aDocShell; // Weak Reference
return NS_OK;
}
void
@@ -71,13 +61,6 @@ nsDOMWindowList::GetLength()
return uint32_t(length);
}
NS_IMETHODIMP
nsDOMWindowList::GetLength(uint32_t* aLength)
{
*aLength = GetLength();
return NS_OK;
}
already_AddRefed<nsPIDOMWindowOuter>
nsDOMWindowList::IndexedGetter(uint32_t aIndex)
{
@@ -92,14 +75,6 @@ nsDOMWindowList::IndexedGetter(uint32_t aIndex)
return window.forget();
}
NS_IMETHODIMP
nsDOMWindowList::Item(uint32_t aIndex, mozIDOMWindowProxy** aReturn)
{
nsCOMPtr<nsPIDOMWindowOuter> window = IndexedGetter(aIndex);
window.forget(aReturn);
return NS_OK;
}
already_AddRefed<nsPIDOMWindowOuter>
nsDOMWindowList::NamedItem(const nsAString& aName)
{
@@ -116,11 +91,3 @@ nsDOMWindowList::NamedItem(const nsAString& aName)
nsCOMPtr<nsPIDOMWindowOuter> childWindow(do_GetInterface(item));
return childWindow.forget();
}
NS_IMETHODIMP
nsDOMWindowList::NamedItem(const nsAString& aName, mozIDOMWindowProxy** aReturn)
{
nsCOMPtr<nsPIDOMWindowOuter> item = NamedItem(aName);
item.forget(aReturn);
return NS_OK;
}