Bug 1455676 part 9. Mostly remove use of nsIDOMNode from mobile/. r=snorp

This commit is contained in:
Boris Zbarsky 2018-05-29 22:58:49 -04:00
Родитель 9748db120d
Коммит 4cf7b4f9a1
2 изменённых файлов: 6 добавлений и 5 удалений

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

@ -3153,7 +3153,7 @@ var NativeWindow = {
},
_getLink: function(aElement) {
if (aElement.nodeType == Ci.nsIDOMNode.ELEMENT_NODE &&
if (aElement.nodeType == aElement.ELEMENT_NODE &&
((ChromeUtils.getClassName(aElement) === "HTMLAnchorElement" && aElement.href) ||
(ChromeUtils.getClassName(aElement) === "HTMLAreaElement" && aElement.href) ||
ChromeUtils.getClassName(aElement) === "HTMLLinkElement" ||
@ -4891,7 +4891,7 @@ var BrowserEventHandler = {
},
_getLinkURI: function(aElement) {
if (aElement.nodeType == Ci.nsIDOMNode.ELEMENT_NODE &&
if (aElement.nodeType == aElement.ELEMENT_NODE &&
((ChromeUtils.getClassName(aElement) === "HTMLAnchorElement" && aElement.href) ||
(ChromeUtils.getClassName(aElement) === "HTMLAreaElement" && aElement.href))) {
try {

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

@ -5,7 +5,8 @@
#include "nsISupports.idl"
interface nsIDOMWindow;
interface nsIDOMNode;
webidl Node;
/**
* nsISessionStore keeps track of the current browsing state.
@ -41,13 +42,13 @@ interface nsISessionStore : nsISupports
* @param aCloseTabData is the data of the tab to be restored.
* @returns a reference to the reopened tab.
*/
nsIDOMNode undoCloseTab(in nsIDOMWindow aWindow, in jsval aCloseTabData);
Node undoCloseTab(in nsIDOMWindow aWindow, in jsval aCloseTabData);
/**
* @param aWindow is the browser window associated with the closed tab.
* @param aIndex is the index of the closed tab to be removed (FIFO ordered).
*/
nsIDOMNode forgetClosedTab(in nsIDOMWindow aWindow, in unsigned long aIndex);
Node forgetClosedTab(in nsIDOMWindow aWindow, in unsigned long aIndex);
/**
* Whether the "Undo close tab" message should be shown or not after a tab has been closed.