Bug 1418078 - Remove nsIDOMHTMLInputElement. r?bz draft
authorAdrian Wielgosik <adrian.wielgosik@gmail.com>
Wed, 18 Apr 2018 22:35:32 +0200
changeset 787991 08bd8b4c28d6986a9acf0bd0c80111f37a13716c
parent 787990 be6e55347d37c65d9547949a5caf4b6d2ee8c7f4
push id107868
push userbmo:adrian.wielgosik@gmail.com
push dateWed, 25 Apr 2018 20:14:11 +0000
reviewersbz
bugs1418078
milestone61.0a1
Bug 1418078 - Remove nsIDOMHTMLInputElement. r?bz MozReview-Commit-ID: Gun4oxg1NJZ
dom/html/HTMLInputElement.cpp
dom/html/HTMLInputElement.h
dom/interfaces/html/moz.build
dom/interfaces/html/nsIDOMHTMLInputElement.idl
--- a/dom/html/HTMLInputElement.cpp
+++ b/dom/html/HTMLInputElement.cpp
@@ -1111,17 +1111,16 @@ NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN_IN
   if (tmp->mFileData) {
     tmp->mFileData->Unlink();
   }
   //XXX should unlink more?
 NS_IMPL_CYCLE_COLLECTION_UNLINK_END
 
 NS_IMPL_ISUPPORTS_CYCLE_COLLECTION_INHERITED(HTMLInputElement,
                                              nsGenericHTMLFormElementWithState,
-                                             nsIDOMHTMLInputElement,
                                              nsITextControlElement,
                                              imgINotificationObserver,
                                              nsIImageLoadingContent,
                                              nsIDOMNSEditableElement,
                                              nsIConstraintValidation)
 
 // nsIDOMNode
 
--- a/dom/html/HTMLInputElement.h
+++ b/dom/html/HTMLInputElement.h
@@ -5,17 +5,16 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #ifndef mozilla_dom_HTMLInputElement_h
 #define mozilla_dom_HTMLInputElement_h
 
 #include "mozilla/Attributes.h"
 #include "nsGenericHTMLElement.h"
 #include "nsImageLoadingContent.h"
-#include "nsIDOMHTMLInputElement.h"
 #include "nsITextControlElement.h"
 #include "nsITimer.h"
 #include "nsIDOMNSEditableElement.h"
 #include "nsCOMPtr.h"
 #include "nsIConstraintValidation.h"
 #include "mozilla/UniquePtr.h"
 #include "mozilla/dom/BindingDeclarations.h"
 #include "mozilla/dom/HTMLFormElement.h" // for HasEverTriedInvalidSubmit()
@@ -120,17 +119,16 @@ public:
     nsCOMPtr<nsIFilePicker> mFilePicker;
     nsCOMPtr<nsIFilePickerShownCallback> mFpCallback;
     nsCOMPtr<nsIContentPref> mResult;
   };
 };
 
 class HTMLInputElement final : public nsGenericHTMLFormElementWithState,
                                public nsImageLoadingContent,
-                               public nsIDOMHTMLInputElement,
                                public nsITextControlElement,
                                public nsIDOMNSEditableElement,
                                public nsIConstraintValidation
 {
   friend class AfterSetFilesOrDirectoriesCallback;
   friend class DispatchChangeEventCallback;
   friend class ::InputType;
 
@@ -161,19 +159,16 @@ public:
 #endif
 
   // Element
   virtual bool IsInteractiveHTMLContent(bool aIgnoreTabindex) const override;
 
   // EventTarget
   virtual void AsyncEventRunning(AsyncEventDispatcher* aEvent) override;
 
-  // nsIDOMHTMLInputElement
-  NS_DECL_NSIDOMHTMLINPUTELEMENT
-
   // nsIDOMNSEditableElement
   NS_IMETHOD GetEditor(nsIEditor** aEditor) override
   {
     nsCOMPtr<nsIEditor> editor = GetEditor();
     editor.forget(aEditor);
     return NS_OK;
   }
 
--- a/dom/interfaces/html/moz.build
+++ b/dom/interfaces/html/moz.build
@@ -3,15 +3,14 @@
 # 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/.
 
 with Files("**"):
     BUG_COMPONENT = ("Core", "DOM")
 
 XPIDL_SOURCES += [
-    'nsIDOMHTMLInputElement.idl',
     'nsIDOMMozBrowserFrame.idl',
     'nsIMozBrowserFrame.idl',
 ]
 
 XPIDL_MODULE = 'dom_html'
 
deleted file mode 100644
--- a/dom/interfaces/html/nsIDOMHTMLInputElement.idl
+++ /dev/null
@@ -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 "nsISupports.idl"
-
- /**
-  * The nsIDOMHTMLInputElement interface is the interface to a [X]HTML
-  * input element.
-  *
-  * 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/
-  */
-
-[shim(HTMLInputElement), uuid(64aeda0b-e9b5-4868-a4f9-e4776e32e733)]
-interface nsIDOMHTMLInputElement : nsISupports
-{
-};