From 5aa0298e34ff3013a300761125e32373efb6b75c Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Tue, 30 Jan 2018 00:25:36 -0500 Subject: [PATCH] Bug 1418085 part 5. Remove nsIDOMHTMLInputElement::GetList. r=mystor MozReview-Commit-ID: JbWMti82q3R --- dom/html/HTMLInputElement.cpp | 14 -------------- dom/interfaces/html/nsIDOMHTMLInputElement.idl | 7 +++---- 2 files changed, 3 insertions(+), 18 deletions(-) diff --git a/dom/html/HTMLInputElement.cpp b/dom/html/HTMLInputElement.cpp index fa36eb612536..80d4002c5ca6 100644 --- a/dom/html/HTMLInputElement.cpp +++ b/dom/html/HTMLInputElement.cpp @@ -1887,20 +1887,6 @@ HTMLInputElement::GetList() const return static_cast(element); } -NS_IMETHODIMP -HTMLInputElement::GetList(nsIDOMHTMLElement** aValue) -{ - *aValue = nullptr; - - RefPtr element = GetList(); - if (!element) { - return NS_OK; - } - - element.forget(aValue); - return NS_OK; -} - void HTMLInputElement::SetValue(Decimal aValue, CallerType aCallerType) { diff --git a/dom/interfaces/html/nsIDOMHTMLInputElement.idl b/dom/interfaces/html/nsIDOMHTMLInputElement.idl index c5327a56b75b..681544c07d4c 100644 --- a/dom/interfaces/html/nsIDOMHTMLInputElement.idl +++ b/dom/interfaces/html/nsIDOMHTMLInputElement.idl @@ -3,11 +3,12 @@ * 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 "nsIDOMHTMLElement.idl" +#include "nsISupports.idl" interface nsIControllers; interface nsIDOMFileList; interface nsIDOMValidityState; +interface nsIDOMHTMLFormElement; /** * The nsIDOMHTMLInputElement interface is the interface to a [X]HTML @@ -30,11 +31,9 @@ interface nsIDOMHTMLInputElement : nsISupports attribute boolean indeterminate; - readonly attribute nsIDOMHTMLElement list; - attribute DOMString name; attribute boolean readOnly; - readonly attribute nsIControllers controllers; + readonly attribute nsIControllers controllers; };