Bug 1455674 part 11. Remove nsIDOMElement use from xpidl in toolkit. r=mossop

This commit is contained in:
Boris Zbarsky 2018-04-26 23:36:30 -04:00
Родитель 914f11a6d2
Коммит 786ad6bda7
7 изменённых файлов: 18 добавлений и 15 удалений

Просмотреть файл

@ -2590,8 +2590,7 @@ TabParent::GetAuthPrompt(uint32_t aPromptReason, const nsIID& iid,
nsCOMPtr<nsILoginManagerPrompter> prompter = do_QueryInterface(prompt);
if (prompter) {
nsCOMPtr<nsIDOMElement> browser = do_QueryInterface(mFrameElement);
prompter->SetBrowser(browser);
prompter->SetBrowser(mFrameElement);
}
*aResult = prompt.forget().take();

Просмотреть файл

@ -4,9 +4,10 @@
#include "nsISupports.idl"
interface nsIDOMElement;
interface nsIAutoCompleteInput;
webidl Element;
[scriptable, uuid(bd3c2662-a988-41ab-8c94-c15ed0e6ac7d)]
interface nsIAutoCompletePopup : nsISupports
{
@ -37,7 +38,7 @@ interface nsIAutoCompletePopup : nsISupports
* @param input - The input object that the popup will be bound to
* @param element - The element that the popup will be aligned with
*/
void openAutocompletePopup(in nsIAutoCompleteInput input, in nsIDOMElement element);
void openAutocompletePopup(in nsIAutoCompleteInput input, in Element element);
/*
* Close the popup and detach from the bound input

Просмотреть файл

@ -6,9 +6,9 @@
#include "nsISupports.idl"
interface nsIURI;
interface nsIDOMElement;
webidl DocumentFragment;
webidl Element;
/**
* nsIFeedTextConstructs represent feed text fields that can contain
@ -53,6 +53,6 @@ interface nsIFeedTextConstruct : nsISupports
/**
* Return an nsIDocumentFragment containing the text and markup.
*/
DocumentFragment createDocumentFragment(in nsIDOMElement element);
DocumentFragment createDocumentFragment(in Element element);
};

Просмотреть файл

@ -6,9 +6,10 @@
#include "nsISupports.idl"
interface nsILoginInfo;
interface nsIDOMElement;
interface nsIDOMWindow;
webidl Element;
[scriptable, uuid(425f73b9-b2db-4e8a-88c5-9ac2512934ce)]
interface nsILoginManagerPrompter : nsISupports {
/**
@ -34,7 +35,7 @@ interface nsILoginManagerPrompter : nsISupports {
* The browser this prompter is being created for.
* This is required if the init function received a chrome window as argument.
*/
attribute nsIDOMElement browser;
attribute Element browser;
/**
* The opener that was used to open the window passed to init.

Просмотреть файл

@ -6,7 +6,7 @@
/********************************* #includes *********************************/
#include "domstubs.idl" // nsIDOMElement, nsIDOMWindow
#include "domstubs.idl" // nsIDOMRange
#include "nsISupports.idl" // nsISupports

Просмотреть файл

@ -4,10 +4,11 @@
#include "nsISupports.idl"
interface nsIDOMElement;
interface nsIURI;
interface nsIVariant;
webidl Element;
/**
* amIWebInstallPrompt is used, if available, by the default implementation of
* amIWebInstallInfo to display a confirmation UI to the user before running
@ -28,7 +29,7 @@ interface amIWebInstallPrompt : nsISupports
* @param aCount
* The number of AddonInstalls
*/
void confirm(in nsIDOMElement aBrowser, in nsIURI aUri,
void confirm(in Element aBrowser, in nsIURI aUri,
[array, size_is(aCount)] in nsIVariant aInstalls,
[optional] in uint32_t aCount);
};

Просмотреть файл

@ -5,14 +5,15 @@
#include "nsISupports.idl"
interface nsIDOMDocument;
interface nsIDOMElement;
interface nsIDOMWindow;
interface nsIRequest;
interface nsIRequestObserver;
interface nsISimpleEnumerator;
interface nsIFile;
webidl Element;
webidl Document;
/**
* An interface that describes an object representing a patch file that can
* be downloaded and applied to a version of this application so that it
@ -70,7 +71,7 @@ interface nsIUpdatePatch : nsISupports
* The document to serialize into
* @returns The DOM Element created by the serialization process
*/
nsIDOMElement serialize(in nsIDOMDocument updates);
Element serialize(in Document updates);
};
/**
@ -222,7 +223,7 @@ interface nsIUpdate : nsISupports
* The document to serialize into
* @returns The DOM Element created by the serialization process
*/
nsIDOMElement serialize(in nsIDOMDocument updates);
Element serialize(in Document updates);
};
/**